XavierForum.com
http://www.xavierforum.com/

The first application using our API
http://www.xavierforum.com/viewtopic.php?f=1&t=11158
Page 1 of 1

Author:  bylla [ Mon Oct 27, 2008 7:51 pm ]
Post subject:  The first application using our API

Today I got an email from Google Alerts telling me about a nice post over at geoff.evason.name called Simple Currency Conversion Rate API Consumption For Ruby / Rails.

The fantastic part about this post is that it's about our finance API and it's also giving the readers some example code to use in their own applications. This is something we really like. Someone wrote a piece of code using our API and they published the code on the Internet for anyone to use it :D :D

So if you're looking for a currency converter you should check out the code at geoff.evason.name.

In the example code Geoff is using AUD and USD, but you should be able to modify the script to use any of the 36 currencies available in the API. If you also change the URL from
Code:
url = URI.parse("http://api.finance.xaviermedia.com/api/#{date.year}/#{date.month}/#{date.day}.xml

to
Code:
url = URI.parse("http://api.finance.xaviermedia.com/api/latest.xml

You will always get the latest currency rates available in the API :D

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/