SDK for ooti
Project description
SDK OOTI
Table of Contents
About The Project
This sdk is for all people wanting to use the ooti API
Built With
Getting Started
Prerequisites
Installation
In case you work with virtuel environment you could, add ooti-api in your requirements.
Run the following command to install package ooti-api:
pip install ooti-api
How to use
- Import
import sdk_ooti
- Connect to the API
my_account = sdk_ooti.OotiAPI('email', 'password') my_account.connect()
- Do a request
invoices = my_account.get_invoices_list()
Example
import ooti
import pprint
###### Connect ######
my_account = ooti.OotiAPI('email', 'password')
my_account.connect()
###### Invoice ######
invoices = my_account.get_invoices_list() # Get the list of invoices
for invoice in invoices:
pprint.pp(invoice) # Print each invoice
invoice = my_account.get_invoice_details(pk='invoice_pk') # Get the details of one invoice
for line in invoice['items']:
pprint.pp(line) # Print each lines of the invoice
payload = {
"amount": 1000,
}
invoice = my_account.create_invoice(1499, payload) # Create an invoice
pprint.pp(invoice)
payload = {
"amount": 3000,
}
invoice = my_account.update_invoice(pk='invoice_pk', payload) # updatee an invoice
pprint.pp(invoice)
###### Payment ######
payments = my_account.get_payments_list() # Get the list of payments
for payment in payments:
pprint.pp(payment) # Print each payment
payment = my_account.get_payment_details(pk='payment_pk') # Get the details of one payment
pprint.pp(payment)
payload = {
"amount": 1000,
}
payment = my_account.create_payment(1499, payload) # Create an payment
pprint.pp(payment)
payload = {
"amount": 3000,
}
payment = my_account.update_payment(pk='payment_pk', payload) # updatee an payment
pprint.pp(payment)
###### Project ######
projects = my_account.get_projects_list() # Get the list of projects
for project in projects:
pprint.pp(project) # Print each project
project = my_account.get_project_details(pk='invoice_pk') # Get the details of one project
pprint.pp(project) # Print details of the project
data = {
'business_title': 'new_title'
}
project = my_account.update_project_details(pk='invoice_pk', data=data) # Update the details of one project
pprint.pp(project) # Print details of the updated project
###### Phase ######
phases = my_account.get_phases_list(project_pk='invoice_pk') # Get the list of phases
for phase in phases:
pprint.pp(phase) # Print each phase
phase = my_account.get_phase_details(pk='phase_pk') # Get the details of one phase
pprint.pp(phase) # Print details of the phase
data = {'progress': 66}
phase = my_account.update_phase_details(pk='phase_pk', data=data) # Update the details of one phase
pprint.pp(phase) # Print details of the updated phase
License
Copyright (C) 2016-2021 AxonePro S.A.S. legal@ooti.co All Rights Reserved
This file is part of axonepro.com.
Unauthorized copying of any file in this project, via any medium is strictly prohibited. Proprietary and confidential
axonepro.com can not be copied and/or distributed without the express permission of AXONEPRO.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ooti-api-1.0.0.tar.gz.
File metadata
- Download URL: ooti-api-1.0.0.tar.gz
- Upload date:
- Size: 39.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.0 importlib_metadata/4.8.1 packaging/21.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e11690b59ce65d67782e1443f33aa789202d64403e28a339f5ebf0803f41f8f
|
|
| MD5 |
d005d82e8c77a0bc319a65e217aead41
|
|
| BLAKE2b-256 |
105bb3b169333c90ad5bac91cff05d60033f2cc1f7cbd789486ad4dee9589493
|
File details
Details for the file ooti_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ooti_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 67.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.0 importlib_metadata/4.8.1 packaging/21.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac283ce54790a883a21deb511f1cb27e94e886ce3f00a612686de974b8de1435
|
|
| MD5 |
7f0941b0a4ae42eaf24fadc5d1170b9d
|
|
| BLAKE2b-256 |
8887cd6d96040496b5053a69100cc09bf21801ca4063bdd2f6e7ba995392ed89
|