Skip to main content

Suppuo SDK — typed Python client for the suppuo.com REST API. Sister to the JS + Go SDKs.

Project description

forjio-suppuo

Typed Python client for the suppuo.com helpdesk REST API.

pip install forjio-suppuo
from forjio_suppuo import SuppuoClient

# Bearer token from token= or the SUPPUO_TOKEN env var.
client = SuppuoClient(token="...")

# Agent workspace surface
page = client.tickets.list(status="open")
ticket = client.tickets.get(page["tickets"][0]["id"])
client.tickets.reply(ticket["id"], body="On it!", is_internal=False)
client.tickets.update(ticket["id"], status="resolved")

# Canned replies
client.canned_replies.create(title="Refund policy", body="...")

# Public (requester) surface — no token required
out = client.public.submit_ticket(
    account_id="acc_...",
    subject="Order question",
    body="Where is my order?",
    email="customer@example.com",
)
view = client.public.get_ticket(out["accessToken"])
client.public.reply_ticket(out["accessToken"], body="Any update?")

Errors raise SuppuoError carrying the API envelope's error.code (NOT_FOUND, VALIDATION_ERROR, AUTH_REQUIRED, ...), the HTTP status, and the meta.requestId.

Family

Sister to:

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

forjio_suppuo-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forjio_suppuo-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file forjio_suppuo-0.1.0.tar.gz.

File metadata

  • Download URL: forjio_suppuo-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for forjio_suppuo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4868876ced5c06c5ba981a47e8069842b326108866c78d5abdb08ba2e1b65d2
MD5 cca1bd8f20a1f26b516f03132d008356
BLAKE2b-256 6cb5573609a88cd9ee33daea590be4a56c5d4fa9c0576339d08def8c6b030999

See more details on using hashes here.

File details

Details for the file forjio_suppuo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: forjio_suppuo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for forjio_suppuo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06aef08ad3f58eeeb36884d33e318d2368098ac60422b7b5d59d05f0870d9720
MD5 84a62d129b09a50b2255fe7a6af91a80
BLAKE2b-256 cc588cfe7bb1d67591a0da38b6214592c4d112d9d2b8f9914ff1615b242c5426

See more details on using hashes here.

Supported by

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