Skip to main content

An Axosoft API Client

Project description

An unofficial Python module for the Axosoft (formerly OnTime) API.


  1. Import the module into your project

    from axosoft_api import Axosoft
  2. Create a new Axosoft instance

    The constructor accepts 4 arguments

    1. The client ID provided to you by Axosoft
    2. The client secret provide to you by Axosoft
    3. The domain you use to access Axosoft without the protocol. i.e. If your domain is you would use
    4. Optionally, a token from a previous session
    axosoft_client = Axosoft(
            'Your client ID',
            'Your client secret',
            'Your Axosoft domain'
  3. Authenticate

    The authentication methods return the token so it can be used for future sessions

    There are two ways to authenticate

    1. Username/Password authentication:

      token = axosoft_client.authenticate_by_password(
          "read write"
    2. Code based authentication:

      Pass the URL to begin_authentication_by_code() where you would like the access code sent
      redirect_uri = ""
      url = self.axosoft_client.begin_authentication_by_code(
          "read write"
      Send the user to the url returned by the method.
      Once they have authenticated they will be forwarded to the URL you provided.
      Exchanged to code for a token by passing the code and the redirect_uri to complete_authentication_by_code().
      code = code_from_redirect_url
      token = self.axosoft_client.complete_authentication_by_code(

    If you need to confirm that you’re successfully authenticated, you may use the is_authenticated method

    if axosoft_client.is_authenticated:
  4. Start interacting with your Axosoft API resources

    # These examples arbitrarily use the release resource
    Create a new release.
    The first argument is the resource type you're creating
    The second argument is the payload which should be a dictionary containing at minimum the required fields for the resource type
    r = axosoft_client.create('releases', payload={'name': 'testRelease', 'release_type': {'id': 1}})
    Get the content of a release
    The first argument is the resource type you want to get
    The second argument is optionally the ID of a specific resource
    The third argument is optionally a dictionary of parameters
    r = axosoft_client.get('releases', r['data']['id'])
    Update a release
    The first argument is the resource type you want to update
    The second argument is the ID of the resource you are updating
    The third arguments is a dictionary containing all the fields of your resource
    r = axosoft_client.update('releases', r['data']['id'], payload={'name': 'testRelease', 'release_type': {'id': 1}})
    Delete a release
    The first argument is the resource type you want to delete
    The second argument is the ID of the resource you want to delete
    Returns true if the delete was successful
    r = self.axosoft_client.delete('releases', r['data']['id'])

For info on using the various resources of the API see Axosoft’s documentation:

To Do

  • [STRIKEOUT:Implement code grant type authentication.]
  • Figure out an elegent way to access a resource’s children.
    • e.g. /features/{id}/emails
  • Handle binary attachments.


See the CONTRIBUTING file.


See the LICENSE file.

This project and its contributers are in no way affiliated with Axosoft. Axosoft is the trademark of Axosoft, LLC

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for axosoft_api, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size axosoft_api-0.1.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page