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
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
