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.