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.
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
auth = SuiteSpotAuth()
# Optionally, provide a name variable, which is stored in the SuiteSpot API token object
auth = SuiteSpotAuth("My Company")
- 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.
Configuration
You must have a SuiteSpot username and password to use this package. When you run suitespotauth-configure
from the command line, your credentials will be securely stored on your computer using keyring
.
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#/
- The SuiteSpot authentication API may change at any time, which can cause breaking changes to this package. Please contact
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
Built Distribution
Hashes for suitespotauth-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a921bcca86e5d7b2ffc365a24c0595f32b9fefc389dd2a1afd01127bad2d365 |
|
MD5 | abe1bab69e75b4dd8a0d7658696aabdc |
|
BLAKE2b-256 | 922084c73602888ee091a5f0fcf61e1a3b8a1d3fae1ebda1145b582ed7220fb1 |