Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Zendesk API

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Zendesk API

Hello! Please take a look at the screenshots
Image

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

Return to “Issues”