Skip to content

KOBASSoftware/api-client-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KOBAS API Client

Signs API requests and allows interaction via cURL methods.

Example

# Setup

from kobas.Client import Client
from kobas.auth.Signer import Signer

signer = Signer(company_id=0, identifier='sid:?/imid:?', secret='...')
client = Client(signer=signer)

# Usage

customers = client.get('customer/search', {'email': '[email protected]'}, {})

print(customers)

Client Functions

client.get(route = '', params = {}, headers = {})

cURL Get Request

client.post(route = '', params = {}, headers = {})

cURL Post Request

client.put(route = '', params = {}, headers = {})

cURL Put Request

client.delete(route = '', params = {}, headers = {})

cURL Delete Request

client.api_base_url = ''

Allows over-riding the base URL (only really needed for development)

client.api_version = ''

Allows over-riding of the API version. Might be useful in future?

ssl_verify_peer = false

Disables SSL Verify Peer. Needed for development, should never be used in production

Releases

No releases published

Packages

No packages published

Languages