Installing the library

pip install --upgrade pongo-python

Authentication

Pongo uses secret keys for accessing the API. You can generate, rename, and delete keys on the API Key dashboard.

You can only see API keys once, when they’re generated. After that you can only rename or delete them.

Usage

You can authorize HTTP requests by passing the api key in via headers. The secret key goes in as the “secret” header.

With the client libraries, you can pass the key in once and then all requests are automatically authenticated.

import pongo

#Replace they keys with your actual API keys
pongo_client = pongo.PongoClient(PONGO_SECRET_KEY)

response = pongo_client.get_sub_orgs()
sub_organizations_data = response.json()