I've got a nearly complete demo for our Maintenance team, consisting of a web front end to create work orders, which uses the "Requests" API to create tickets in Zendesk.
The last bit I can't figure out is how to attach a photo, can you help me out with this CURL statement? It does work correctly on Windows, a ticket gets created on the helpdesk, but there is no photo attached, and nothing in the CURL response to indicate error in any way
curl https://MySiteHere.zendesk.com/api/v2/requests.json -u my.email@address.com/token:MyApiKeyHere -H "Content-Type: application/json" -v -X POST -d "{\"request\":{\"subject\":\"testing attachments\",\"priority\":\"low\",\"recipient\":\"my.email@address.com/\",\"comment\":{\"body\":\"testing attachments\",\"upload\":\"c:\test.jpg\"}}}"
If you can help me out with a sample for attaching files to a customer request that would be amazing, i can translate from Linux to windows if required, just can't find sample code online.
Cheers!