Skip to main content

Unofficial AuthRocket API client

Project description

Unofficial AuthRocket API client. Extends the Requests library, provides a few helper functions.

See also

The Requests documentation.

Making a request

import authrocket

# Create an API object.
# Config values can be found on your realm's integration page.
api = authrocket.API(
    url="https://api-e1.authrocket.com/v1/",
    key="ko_XYZ", # Must start with `ko_`, rather than old-style `key_`
    realm_id="rl_ABC"
)

# Fetch the first page of users.
response = api.get("users")
print response.json()

Path variables

Some APIs take variables via the path, e.g “users/123”. Rather than use string interpolation, you should pass these via the variables argument - it’s more secure. For example:

response = api.get("user/{id}", variables={"id": "123"})
print response.json()

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 authrocket, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size authrocket-0.1.1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page