Skip to main content

Python library for interfacing with the TeamSupport API

Project description

Python TeamSupport Client

Build Status Latest Version

Python library for interfacing with the TeamSupport XML API, using demands.

Free software: MIT license

Features

  • Client methods parse response content in order to return LXML Element objects

  • Converting Python dictionaries into XML for POST and PUT calls

  • Simple models for Tickets and Actions.

Usage

from teamsupport import Ticket, init

init(<org_id>, <auth_key>)

# Get ticket with given ID/Number.
ticket = Ticket(<ticket_number_or_ticket_id>)

# Create new ticket.
ticket = Ticket.create(
    contact_email, contact_first_name, contact_last_name,
    ticket_name, ticket_text)

# Get Ticket description.
descr = ticket.get_description()

# Update ticket description.
ticket.set_decription('New description')

To run integration tests please set correct values in `teamsupport/config.py`
and run: `nosetests integration_tests`

Changelog

0.2.1 (2015-11-27)

  • Trying to fix README.rst formatting.

0.2.0 (2015-11-26)

  • Add create class method to the Ticket model; Add Contact model;

  • Remove User model.

  • Change models constructors to not require client param.

0.1.3 (2015-09-13)

  • Fix bug in update_ticket method

0.1.2 (2015-09-12)

  • Bump version to fix PyPI upload issue

0.1.1 (2015-09-12)

  • Add User model and TeamSupportService.get_user method.

0.1.0 (2015-09-10)

  • First release on PyPI.

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

teamsupport-0.2.1.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file teamsupport-0.2.1.tar.gz.

File metadata

  • Download URL: teamsupport-0.2.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for teamsupport-0.2.1.tar.gz
Algorithm Hash digest
SHA256 05f24b2ef7dc20f17be97551b89ecd7f35dc770b7b5ce980e437167b743e14bb
MD5 58d8f09949505bc119ec4c24164c9613
BLAKE2b-256 f71f0d14b92eb3f6da6b2991f667c7d80aca1657d42fd202138078eae14406a4

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