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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: spektrixpython-0.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 892327544b2f7a545b238d26c3a4f32ac412fb58e1fbb5bf1d7176486c951ade
MD5 714abd176b42c1b45ed0b54aeaf930ee
BLAKE2b-256 10d17fea728e230a725f2322642e3bd758ce1d4ff92f07933ad05391a92b4ca1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spektrixpython-0.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd447f314cc68cc4d80fbd648aef4c943d9cd2ab642d74d503a1dce659d7b36d
MD5 32a0fd6e47d61db8dc7d4c055b54126c
BLAKE2b-256 770160260a7ea3b6a1e53c1be29fced2cffd900a4ff1132127c9c9d0ec5985ab

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