Messtone Devices Enables open exchange,the API base path is https://openexchangerates.org/api/. API routes/endpoints path like so: HTTP https://openexchangerates.org/api/latest.json currencies.json historical/2013-02-16.json GET request parameters,for Example: HTTP I https://openexchangerates.org/api/latest.json?app_id=MESSTONE_APP_ID&base=GBP&callback=someCallbackFunction the latest rates relative to USD(default): HTTP https://openexchangerates.org/api/latest.json?app_id=MESSTONE_APP_ID symbol:value pairs,relative to the requested base currency: JSON-latest.json {disclaimer: “https://openexchangerates.org/terms/”,license: “https://openexchangerates.org/license/”,timestamp:1449877801,base:”USD”,rates:{AED: 3.,672538,AFN:66.809999,ALL:125.716501,AMD:484.902502,ANG:1.788575,AOA:135.295998,ARS:9.750101,AUD:1.390866,/* … */}} JSONP Response:JSON mycallbackFunction({“disclaimer”:”[…]”,”license”:”[…]”,”timestamp”:1346874992,”base”:”USD”,”rates”:{/*…*/} }) Etag is a unique identifier the data was last modified as follows: Date: Thu, 20 Dec 2012 14:48:28 ETag:”4e6acdd9fea30c21d9bdf1925 Messtone two request headers would look like this: If-None-Match: “4e6acdd9fea30c21d9bdf1925afbf846” If-modified-Since: Thu, 20 Dec 2012 14:48:28 GMT money.js //Simple syntax:fx.convert(1000,{from: “GBP”, to: “HKD”});//Method change: fx(1.99).from(“USD”).to(“AED”); //Basic parsing:fx(“$1.99 HKD”).to(“EUR”);//Default parameters: fx(5318008).convert( );//Supports nodeJS / AMD: var fx = require(‘money’);require([“money”],function(fx){ /*…*/ };

Leave a comment