Curl to Rest API Implementation

37 views
Skip to first unread message

BalaRaju Vankala

unread,
Aug 20, 2015, 5:12:08 AM8/20/15
to rubyonra...@googlegroups.com

Hello All,

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


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

Could you please explain how to implement. 
 


--
----------------------------------------------------------------------------------------------------
Thank You.

Best Wishes,
 
BalaRaju Vankala,
8886565300.


Changjin Long

unread,
Aug 21, 2015, 10:26:30 PM8/21/15
to rubyonra...@googlegroups.com
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).

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages