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.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.

BalaRaju V. 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).

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs