Forum: Ruby on Rails How to write an outgoing URL call and get the XML response ?

Posted by Kad Kerforn (kadoudal)
on 2010-02-08 17:43
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.