Skip to main content

Build Status


SDK OOTI

Explore the docs »
ooti.co

Table of Contents
  1. About The Project
  2. Getting Started
  3. How to use
  4. License

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

  1. Import
    import ooti.ooti as ooti
    
  2. Connect to the API
    my_account = ooti.OotiAPI('email', 'password')
    my_account.connect()
    
  3. Do a request
    invoices = my_account.get_invoices_list()
    

Example

import ooti.ooti as ooti
import pprint


###### Connect ######
my_account = ooti.OotiAPI('email', 'password')
my_account.connect()


###### Invoice ######
invoices = my_account.Invoices.get_invoices_list()  # Get the list of invoices
for invoice in invoices['data']:
    pprint.pp(invoice)  # Print each invoice

invoice = my_account.Invoices.get_invoice_details(pk='invoice_pk')  # Get the details of one invoice
if(invoice['status']==404):
    print('check the pk as it must be false')
else:
    pprint.pp(invoice['data'])  #Print details of the invoice

payload = {
    "amount": 1000,
}
invoice = my_account.Invoices.create_invoice(1499, payload)  # Create an invoice
pprint.pp(invoice)

payload = {
    "amount": 3000,
}
invoice = my_account.Invoices.update_invoice(pk='invoice_pk', payload)  # update an invoice
pprint.pp(invoice)

###### Payment ######
payments = my_account.Payments.get_payments_list()  # Get the list of payments
for payment in payments['data']:
    pprint.pp(payment)  # Print each payment

payment = my_account.Payments.get_payment_details(pk='payment_pk')  # Get the details of one payment
if(payment['status']==404):
    print('check the pk as it must be false')
else:
    pprint.pp(payment['data'])  #Print details of the payment

payload = {
    "amount": 1000,
}
payment = my_account.Payments.create_payment(1499, payload)  # Create a payment
pprint.pp(payment)

payload = {
    "amount": 3000,
}
payment = my_account.Payments.update_payment(pk='payment_pk', payload)  # update a payment
pprint.pp(payment)

###### Project ######
projects = my_account.Projects.get_projects_list()  # Get the list of projects
for project in projects['data']:
    pprint.pp(project)  # Print each project

project = my_account.Projects.get_project_details(id='project_id')  # Get the details of one project
if(project['status']==404):
    print('check the id as it must be false')
else:
    pprint.pp(project['data'])  #Print details of the project

data = {
    'business_title': 'new_title'
}
project = my_account.Projects.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.Phases.get_phases_list(project_pk='project_id')  # Get the list of phases for one project
for phase in phases['data']:
    pprint.pp(phase)  # Print each phase

phase = my_account.Phases.get_phase_details(pk='phase_id')  # Get the details of one phase
if(phase['status']==404):
    print('check the id as it must be false')
else:
    pprint.pp(phase['data']) #Print details of the phase

data = {'progress': 66}
phase = my_account.Phases.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-2022 AxonePro S.A.S. info@ooti.co All Rights Reserved

This file is part of ooti.co.

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.

Metadata

Release files for ooti-api 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ooti-api 1.0.3
File Size Uploaded Provenance
ooti-api-1.0.3.tar.gz 37.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ooti-api 1.0.3
File Interpreter ABI Platform
ooti_api-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 104.5 kB

Release files / ooti-api-1.0.3.tar.gz

Download URL ooti-api-1.0.3.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
48b91a7260759252ab77df171d98ff07303fa6fc2823d18b5e4fd9224220fbb8
BLAKE2b-256 checksum
How to use checksums
d6688df8f9ebc9ef9535b7355f334ea301c2e6f96d78ae67673a4188020f0b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.2

Release files / ooti_api-1.0.3-py3-none-any.whl

Download URL ooti_api-1.0.3-py3-none-any.whl
Size 66.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
928493b5cdc35221157d8ffadf8a8d39e0ae07cdcb48fe4f3d85a0576fbed928
BLAKE2b-256 checksum
How to use checksums
fcb7b7bf782a5108039749baf3b8f27007c715efccb1a97ba3f11af9e0025d00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.2

Security for ooti-api 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page