I m trying to create a new ticket with API (am noob)
OS ticket installed dir = http://happytohelptech.com/myhelpangels
hosting = godaddy
osTicket (v1.16.3)
php = 8.0
Please guide me to a working example something like below:
http://happytohelptech.com/myhelpangels/api/tickets.json?"{"alert": true, "autorespond": true, "source": "API", "topicId": 1, "name": "testUser", "email": "111@MyHelpAngels.com", "phone": "8074123456", "subject": "Testing API", "Summary": "Testing API", "Details": "Testing API", "topicId": 10, "ip": "206.189.205.251", "message": "data:text/html,MESSAGE <b>HERE</b>"}" -H "X-API-Key: D373CD64FE46E8F88D234B309963B9AD"
I tried below also doesn't work
curl -d "{"alert": true, "autorespond": true, "source": "API", "topicId": 1, "name": "testUser", "email": "111@MyHelpAngels.com", "phone": "8074123456", "subject": "Testing API", "Summary": "Testing API", "Details": "Testing API", "topicId": 10, "ip": "206.189.205.251", "message": "data:text/html,MESSAGE <b>HERE</b>"}" -H "X-API-Key: D373CD64FE46E8F88D234B309963B9AD" http://happytohelptech.com/myhelpangels/api/tickets.json
I am getting below error
API Error (400)
Syntax error, malformed JSON [D373CD64FE46E8F88D234B309963B9AD]
Log Date: Monday, August 29, 2022 at 1:17 AM IP Address: 206.189.205.251