Hi Federico,
Certainly looking forward to working with the API over the coming months!
Well, our particular use case is not very complex, since we will only be marketing to users in one country (for now). We will therefore only require one simple conversion from the USD value received in the JSON data to the current equivalent value in ZAR.
In terms of the actual API, perhaps a request for a particular currency could be appended to the URL via a parameter like:
The conversion is done on your side and returned as standard "sale_price/msrp_price" in the JSON data?
I definitely think it would have to reliable, accurate and up to date therefore would be best to use Yahoo! or Google.
In my experience, Yahoo! Finance does not seem to update as regularly as Google Calculator...
In the meantime, I doubt it will be a huge challenge to implement client side, I was trying to avoid it though as I had a feeling you might have something in the works...
A Google currency conversion URL:
{lhs: "1 U.S. dollar",rhs: "10.20252 South African rands",error: "",icc: true}
However I've discovered
http://rate-exchange.appspot.com/ where someone has implemented a very nice API that takes the Google data and returns nice, clean JSON:
{"to": "ZAR", "rate": 10.20252, "from": "USD", "v": 10.20252}
You would then implement some code and GET the whole thing running.