[Rails] How to write an outgoing URL call and get the XML response ?
I have to write a call from my rails app to an external URL :
http://999:madmax@api.bingostore.com/apis/media.php?action=createCollection&collection_id=123
then I should get back an XML answer , to be parsed (I need to reuse
these info into my web app)
<collection>
<id>180</id>
<partner_id>2</partner_id>
<name>myNewCollection</name>
<description>this is my new sports collection</description>
<collection_type>static</collection_type>
<thumbnail_media_id/>
<token>7fd77f35ba63b07a19d8eb995d66215f</token>
<parent_collection_id>123</parent_collection_id>
<path>/123/180</path>
</collection>
where should I look for info on it ?
as I don't supply a return URL, I don't know how to handle the answer
in Rails ...
thanks for your help..
yves
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home