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.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'

Changelog

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.

Files for teamsupport, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size teamsupport-0.1.0.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page