Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.2 KB

README.rst

File metadata and controls

47 lines (30 loc) · 1.2 KB

travis pypi

sageone-api-client

A simple Python client for interacting with the Sage One API.

Installation

$ pip install sageone-api-client

Usage

  1. Register for a Sage One account and request an API key by following the instructions at https://accounting.sageone.co.za/Marketing/DeveloperProgram.aspx

  2. Review the supported Sage One API documentation at https://accounting.sageone.co.za/api/1.1.1/Help

  3. Use the Python API client to interact with the API:

    >>> from sageone.client import APIClient
    >>> c = APIClient(
    ...     'https://accounting.sageone.co.za',
    ...     '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}',
    ...     'your-sage-one-username',
    ...     'your-password')
    >>> r = c('get', 'Company', 'Get')
    >>> print(r)

Testing

$ python setup.py test