Restfulie and JSON-RPC

14 views
Skip to first unread message

anderson_leite

unread,
Sep 20, 2011, 10:40:14 PM9/20/11
to restfulie
In order to make a JSON-RPC call I need to set:

> the server url
> the method (GET/POST)
> set the content type to application/json
> pass the json data, i.e. { 'param' : 'a', 'param' : 'b'}

Can you help me to create this JSON RPC call ?

Thanks in advance


Lucas Cavalcanti

unread,
Sep 21, 2011, 8:13:34 AM9/21/11
to rest...@googlegroups.com
I think it is:

response = Restfulie.at(url).as("application/json").post(:param => 'a', :other => 'b')
Reply all
Reply to author
Forward
0 new messages