Skip to main content

Python client for os ticket

Project description

PyOSTicket

Python client for os ticket

from pyosticket import OSTicketAPI, TicketModel

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

# XXX Custom endpoints
osticket.ticket.all("email@email.com")
osticket.ticket.get("XXXXXXXXXXX", "email@email.com")

# create ticket
ticket = TicketModel(**{
    "name": "John Doe",
    "email": "johndoe@lorem.com",
    "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"
    }]
})
osticket.ticket.create(ticket)

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 details)

Uploaded Source

File details

Details for the file pyosticket-0.1.0.tar.gz.

File metadata

  • Download URL: pyosticket-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.15rc1

File hashes

Hashes for pyosticket-0.1.0.tar.gz
Algorithm Hash digest
SHA256 11c843a34107dd96cd68f663f770f998e65e9cb2a1052597b20df9214b37b9f9
MD5 c48fda46fef479f421b8e79f5aa9bfc4
BLAKE2b-256 f8236947cbd28235df968c8c3a9155ef4b8ff6c55a74b511ded43d2dd1077ada

See more details on using hashes here.

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