Skip to main content

nsupp REST SDK — Python

Typed, dependency-free client for the nsupp /cof/v1 REST API (Python 3.8+, stdlib only).

Handles HTTP Basic auth + X-Cof-Tier, unwraps the { error, data } envelope, raises NsuppError on failures, and gives you a website-scoped helper. Every endpoint is reachable — common ones as methods, the rest via request().

Install

pip install nsupp-rest

Quickstart

from nsupp import Client, NsuppError

nsupp = Client(
    identifier="nsupp_pk_…",
    secret="…",
    tier="plugin",
    website_id="8f3c1d…",
    # base_url="https://api.nsupp.com/cof",
)

site = nsupp.website()

website = site.get()
convos = site.list_conversations(page=1)
site.send_message("session_1", "Hi 👋 — how can we help?")

# Connected-channel delivering replies (ticket / mail / marketplace / review):
site.email_reply("session_1", "Thanks — your order ships today.")
site.marketplace_reply("session_2", "It ships within 24 hours.")
site.review_reply("session_3", "Thank you for the feedback!")

try:
    site.get_conversation("missing")
except NsuppError as e:
    print(e.status, e.code, str(e))

# Escape hatch — any endpoint:
site.request("POST", "/helpdesk/article/a_1/alternate", body={"alternate_article_id": "a_2"})

Run the self-test: python3 -m unittest discover -s tests.

License

Licensed under the Apache License 2.0.

"nsupp" and the nsupp logo are trademarks of Asindie, Inc. The license grants no trademark rights — see the trademark policy for what use is permitted.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nsupp_rest-0.1.0.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

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

nsupp_rest-0.1.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nsupp_rest-0.1.0.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nsupp_rest-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c90b6762bfcfc1b911154ba7b2a8d561bfc53c1f96eb890c0a4a4a40752a3237
MD5 e4e10d249bb39bd862fb39189dcbd067
BLAKE2b-256 38475c1b2b67c8e16d0426320da924a8f836881cb25463c554cc38dac4d3e34b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nsupp_rest-0.1.0.tar.gz:

Publisher: publish-sdks.yml on asindie-dev/nsupp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: nsupp_rest-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nsupp_rest-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb55cc630b54ff7836bdc9f17e3af68c5fd52936be71d68f1379113fd9a4eea6
MD5 ed6e71009c1ba569168b8269de887276
BLAKE2b-256 8d6efa5c84b21e611c935ad5b34db6a480dae343d4458cbf3197caf7a98baebe

See more details on using hashes here.

Provenance

The following attestation bundles were made for nsupp_rest-0.1.0-py3-none-any.whl:

Publisher: publish-sdks.yml on asindie-dev/nsupp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page