Skip to main content

Python API client for zammad

Project description

Zammad API Client

https://img.shields.io/pypi/v/zammad_py.svg https://img.shields.io/travis/joeirimpan/zammad_py.svg Documentation Status Updates

Python API client for zammad

Quickstart

from zammad_py import ZammadAPI
client = ZammadAPI(username='<USERNAME>', password='<PASSWORD>', host='<HOST>', is_secure=False)
print client.user.me()

User Resource

from zammad_py import ZammadAPI
client = ZammadAPI(username='<USERNAME>', password='<PASSWORD>', host='<HOST>', is_secure=False)

print client.user.me()
# all return a paginated response
this_page = client.user.all()
next_page = this_page.next_page()
prev_page = this_page.prev_page()
# Iterate through page object
for user in this_page:
    print user
print client.user.search({'firstname': 'Joe'})
print client.user.find(3)
print client.user.create({'firstname': 'Joe'})
print client.user.update(3, {'firstname': 'Paul'})
print client.user.destroy(3)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2017-10-24)

  • 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 zammad-py, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size zammad_py-0.1.6.tar.gz (38.6 kB) File type Source Python version None Upload date Hashes View

Supported by

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