=========================================================================================
Python Zendesk is wrapper for the Zendesk API. This library provides an
easy and flexible way for developers to communicate with their Zendesk
account in their application.
Requirements
-----------------------------------------------------------------------------------------------------
httplib2 is used for authentication and requests
(pip install | easy_install) httplib2
simplejson is used to serialze and deserialze requests and responses
(pip install | easy_install) simplejson
Installation
-----------------------------------------------------------------------------------------------------
Zendesk Python Library is available on pypi, so installation should be fairly simple:
(pip install | easy_install) zendesk
Example Use
-----------------------------------------------------------------------------------------------------
from zendesk import Zendesk, get_id_from_url
################################################################
## NEW CONNECTION CLIENT
################################################################
zendesk = Zendesk('https://yourcompany.zendesk.com', 'you@yourcompany.com', 'passwd')
################################################################
## TICKETS
################################################################
# List
zendesk.list_tickets(view_id=1) # Must have a view defined
# Create
new_ticket = {
'ticket': {
'requester_name': 'Howard Schultz',
'requester_email': 'howard@starbucks.com',
'subject':'My Starbucks coffee is cold!',
'description': 'please reheat my coffee',
'set_tags': 'coffee drinks',
'ticket_field_entries': [
{
'ticket_field_id': 1,
'value': 'venti'
},
{
'ticket_field_id': 2,
'value': '$10'
}
]
}
}
ticket_url = zendesk.create_ticket(data=new_ticket)
ticket_id = get_id_from_url(ticket_url)
# Show
zendesk.show_ticket(ticket_id=ticket_id)
# Delete
zendesk.delete_ticket(ticket_id=ticket_id)
# More examples in `examples` folder!
Metadata
Release files for Zendesk 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Zendesk-1.1.1.tar.gz | 8.7 kB | Without provenance | Details |
Release files / Zendesk-1.1.1.tar.gz
| Download URL | Zendesk-1.1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9524ec024cc344f64882e541a1aa423fdf3831a09c7ae9ae60bad2d443d13f24
|
|
BLAKE2b-256 checksum How to use checksums |
c2d17cc2c24f599473958a9522b9bd09fe00337447415487087da5fc67c2d359
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Zendesk 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.