Skip to main content

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

  1. Set your SuiteSpot credentials (username and password)
$ suitespotauth-configure
  1. In your Python program, import the authenticator class
from suitespotauth import SuiteSpotAuth
  1. Create a class instance
auth = SuiteSpotAuth()

# Optionally, provide a name variable, which is stored in the SuiteSpot API token object
auth = SuiteSpotAuth("My Company")
  1. 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


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.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

suitespotauth-0.1.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page