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 <https://github.com/yola/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.services import TeamSupportService

client = TeamSupportService(TEAMSUPPORT_ORG_ID, TEAMSUPPORT_AUTH_KEY)

# Fetch all tickets without custom fields
tickets = client.get_tickets()

# Update description of a ticket
client.update_ticket_action(
ticket_id, action_id, data={'Description': 'New description'})

# Get an action using the model
from teamsupport.models import Action
action = Action(client, ticket_id, action_id)

print(action.Description) # Prints 'New description'

.. |Build Status| image:: https://img.shields.io/travis/yola/teamsupport-python.svg?style=flat-square
:target: https://travis-ci.org/yola/teamsupport-python
.. |Latest Version| image:: https://img.shields.io/pypi/v/teamsupport.svg?style=flat-square
:target: https://warehouse.python.org/project/teamsupport


Changelog
=========

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for teamsupport-0.1.3.tar.gz
Algorithm Hash digest
SHA256 86c2dde3cdf4642c9173e1b1d82965d8070b8d808c59d58d902210bd4d73678c
MD5 115a83757d8bd3c747798edd58323b9e
BLAKE2b-256 9041de2e1d5824cc342d636cdf8366943ac3dbd385d4e54e0c2326b76ff34d3c

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