Page 1 of 1

Zendesk API

Posted: Tue Jan 14, 2014 9:20 am
by Dupdroid

How do I create a service from the following curl?

curl [url=https://{subdomain}.zendesk.com/api/v2/tickets.json]https://{subdomain}.zendesk.com/api/v...[/url] \
-d '{"ticket":{"subject":"My printer is on fire!", "comment": { "body": "The smoke is very colorful." }}}' \
-H "Content-Type: application/json" -v -u {email_address}:{password} -X POST

I have tried -v and -p as header parameters for the username and password and -d as non header parameter with '{"ticket":{"subject":"My printer is on fire!", "comment": { "body": "The smoke is very colorful." }}}' as the parameter value but it does not work.

I'm sure I'm interpreting the curl wrongly. Please advise.


Zendesk API

Posted: Tue Jan 14, 2014 10:23 am
by Maryna Brodina

Hello! Please take a look at the screenshots
Image

Image Here is how to form Authorization https://getsatisfaction.com/apperyio/...