Skip to main content

Basic Autotask REST Client

Project description

atrest

About

This library is a very basic tool to submit tickets to an Autotask help desk.


Usage

Initialize the Client class, providing the following parameters:

Here is an example implementation:

from atrest import Client

def submit_ticket():
    atclient = Client(
        "https://webservices15.autotask.net/atservicesrest/v1.0",
        "<api_integration_code>,
        "<api_user>",
        "<api_secret>"
    )

    ticket_title = "Major Issue!"
    ticket_desc = """
    There was a major issue.

    You should definitely check it out!
    """

    try:
        ticket_id = atclient.create_ticket(
            ticket_title,
            ticket_desc,
            status=1,
            priority=1,
            company_id=0,
            queue_id=29682833
        )
        print(f"Ticket successfully sent. Ticket ID: {ticket_id}")
    except Exception as e:
        raise e

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

atrest-1.0.2.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

atrest-1.0.2-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

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