/zammad_py

Python API client for accessing zammad REST API

Primary LanguagePythonMIT LicenseMIT

Zammad API Client

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.