Skip to main content

Python client for os ticket

Project description


Python client for os ticket

from pyosticket import OSTicketAPI, TicketModel

osticket = OSTicketAPI(url="URL", api_key="API-KEY")

# XXX Custom endpoints
osticket.ticket.get("XXXXXXXXXXX", "")

# create ticket
ticket = TicketModel(**{
    "name": "John Doe",
    "email": "",
    "subject": "Lorem Ipsum",
    "topicId": "1",
    "message": "data:text/html,Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam lobortis sagittis turpis vel bibendum. Nunc eget tincidunt leo. Suspendisse a nibh vulputate, ultrices leo mollis, maximus nisl.",
    "attachments": [{
        "filename.png": "data:image/png;base64,BASE64_ENCODED_IMAGE_HERE"

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

pyosticket-0.1.0.tar.gz (9.5 kB view hashes)

Uploaded Source

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