Curl to Rest API Implementation

Hello All,

I am using rest api for one of my projects, I am using httparty gem.

$ curl --data-binary @mytickets.pdfhttps://brokerapi.ticketcity.com/orders/{SALEID}/uploadticket?api={APIKEY}

I don’t know how to call above link in the httparty gem.

Could you please explain how to implement.

BalaRaju Vankala wrote in post #1177929:

Hello All,

I am using rest api for one of my projects, I am using httparty gem.

$ curl --data-binary @mytickets.pdf "
https://brokerapi.ticketcity.com/orders/{SALEID}/uploadticket?api={APIKEY}"

I don't know how to call above link in the httparty gem.

Could you please explain how to implement.

--

If you need upload some files,maybe you should use HTTMultiParty instead
of HTTParty(https://github.com/jwagener/httmultiparty).