This library allows you to create tickets on Gorgas and send several user messages into it
Usage
Create a new ticket
A ticket is composed of informations related to the ticket itself and a list of messages
When creating a ticket you need to pass as parameters the ticket informations as well as its messages
In the exemple below, a single ticket containing three user messages will be created
do ticket = {
"subject": "checkout issue",
"messages": [
{
"body_text": "Hello, The checkout doesnt work",
"sender": {
"name": "antoine",
"email": "antoined3r0j4@gmail.com",
}
},
{
"body_text": "I really tried hard",
"sender": {
"name": "antoine",
"email": "antoined3r0j4@gmail.com",
}
}
]
}
do newTicket = App("gorgias", method="createTicket", ticket=ticket)