Easy SuiteSpot authentication.
Project description
SuiteSpot Auth
Introduction
This package is a light wrapper for the SuiteSpot authentication API to provide easy generation of an access token to be used in SuiteSpot data API calls.
Disclaimer: This package is unofficial and is not affiliated with SuiteSpot. The official SuiteSpot authentication API docs can be found at: https://auth.suitespot.io/api#/.
Suitespot data API requests require Bearer Authorization including an access token. This package provides an abstraction layer to easily generate an access token.
Installation
$ pip install suitespotauth
Usage
- Set your SuiteSpot credentials (username and password)
$ suitespotauth-configure
- In your Python program, import the authenticator class
from suitespotauth import SuiteSpotAuth
- Create a class instance
# Optionally, provide a name string variable to the instantiation. This is stored in the SuiteSpot API token object.
auth = SuiteSpotAuth()
- Use the
access_token
attribute in your data API request header
"Authorization": f"Bearer {auth.access_token}"
Official SuiteSpot data API docs should be retrieved directly from your SuiteSpot representative.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
suitespotauth-0.1.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for suitespotauth-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16057a6bc63929a10c7007237c47cd8af100298821b1ee3c1cfbdec35adfc015 |
|
MD5 | 4348c66abd93376bfcecfe929ca7b89b |
|
BLAKE2b-256 | d91f52b3e963af2b43fd02661d344447dd66efffc7f446554050d130fd6052b7 |