Mar 26, 2019
5629
Prerequisites:
Examples:
Read Tickets
url = https://<subdomain>.happyfox.com/api/1.1/json/tickets/
auth = ('<apli_key>','<auth_code>')
res = requests.get(url,auth=auth)
Create a New ticket
import requests
import json
url = https://<subdomain>.happyfox.com/api/1.1/json/tickets/
auth = ('<apli_key>','<auth_code>')
headers = {'Content-Type': 'application/json'}
payload = {'subject': 'test subject', 'text': 'This is a test ticket', 'category': 1, 'priority': 2, 'email': 'test@example.com', 'name': 'Test Customer'}
res = requests.post(url,auth=auth,data=json.dumps(payload), headers=headers)