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:
- Autotask Base URL (e.g. https://webservices15.autotask.net/atservicesrest/v1.0)
- Autotask API Integration Code
- Autotask API User
- Autotask API Secret
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 details)
Built Distribution
File details
Details for the file atrest-1.0.2.tar.gz
.
File metadata
- Download URL: atrest-1.0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa91617d94646db465f2b47e9bf241fd627941bdd41b66278919fc54abac17e5 |
|
MD5 | 49954874bdf410716f69d11cd8fc5176 |
|
BLAKE2b-256 | aea32041b2d2c0db9d1ef1b5430afc4465bd8e2887dc0f9ddc4651a1a9ba414e |
File details
Details for the file atrest-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: atrest-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62752e62b4c5e0def4b1ecb198b816426bd4d2209caee9ff6deefb14b3eefac3 |
|
MD5 | c767674905804107012a3c357a14facb |
|
BLAKE2b-256 | 3ed088751402cf25b56ee742dc4e1fa1e77b742491fe563fa242da39a9ef9a8f |