Skip to main content

A Python 3 module for interacting with Spektrix API v3. This module is written by a third party and is not supported by or affiliated with Spektrix.

Project description

spektrixpython

A Python 3 module for interacting with Spektrix API v3. This module is written by a third party and is not supported by or affiliated with Spektrix.

For API v3 documentation, visit https://system.spektrix.com/<clientname>/api/v3/help, replacing <clientname> with your Spektrix system name.

Usage

Installation

pip install spektrixpython

Example

from spektrixpython import SpektrixCredentials, SpektrixRequest


credentials = SpektrixCredentials(client_name="SPEKTRIX CLIENT NAME",
                                  api_user="API USERNAME",
                                  api_key="API KEY")

# Get a list of events
events = SpektrixRequest(endpoint='events', credentials=credentials).get()
print(events)

# Create a new basket
basket = SpektrixRequest(endpoint='baskets', credentials=credentials).post()['id']

# Add a merchandise item to the newly created basket
endpoint = 'baskets/{}/merchandise'.format(basket)

# Replace this stockItem Id with one from your Spektrix system.
payload = {'stockItem':'1AHGJDSMMPLMPPGNLJBQVLBRSKVDLQRPP'}

SpektrixRequest(endpoint=endpoint, credentials=credentials).post(payload)

License

This module is licensed under the MIT License. Please see the LICENSE file for full details.

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

spektrixpython-0.6.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

spektrixpython-0.6.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file spektrixpython-0.6.0.tar.gz.

File metadata

  • Download URL: spektrixpython-0.6.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Darwin/22.2.0

File hashes

Hashes for spektrixpython-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2fba034a73504b6fd8fa54538eed91e8a1fa4aa9b226659ea55e3152ad696f7b
MD5 2302b3c76ad7ab33930251f49bf7d14a
BLAKE2b-256 3bcb2c19868c0ff0c2a63d00e897be3052ed9c3ae25437312d46becb0ebdf0eb

See more details on using hashes here.

File details

Details for the file spektrixpython-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: spektrixpython-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Darwin/22.2.0

File hashes

Hashes for spektrixpython-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c440f07739da55ccddd76bd72c18bcf4c44df25e56ac5781a5964b1c4c226a8
MD5 1aa6671d7013fe51184feffef44f06e4
BLAKE2b-256 96ae58afbbdcf0f4e6c2fc9afa96e2dfc88e2ad5ec30be3c01c6eb0206d769f9

See more details on using hashes here.

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