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
Metadata
Release files for atrest 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atrest-1.0.2.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atrest-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / atrest-1.0.2.tar.gz
| Download URL | atrest-1.0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa91617d94646db465f2b47e9bf241fd627941bdd41b66278919fc54abac17e5
|
|
BLAKE2b-256 checksum How to use checksums |
aea32041b2d2c0db9d1ef1b5430afc4465bd8e2887dc0f9ddc4651a1a9ba414e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / atrest-1.0.2-py3-none-any.whl
| Download URL | atrest-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62752e62b4c5e0def4b1ecb198b816426bd4d2209caee9ff6deefb14b3eefac3
|
|
BLAKE2b-256 checksum How to use checksums |
3ed088751402cf25b56ee742dc4e1fa1e77b742491fe563fa242da39a9ef9a8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|