To get the currency exchange info. Specify from (source currency) and to (target currency) and we give you the exchange rate.
The list of currency codes that we support:
Suppose you want to convert RM/MYR (source) to SGD (target), here comes the sample code:
[imgshow]q:name=currency,from=RM,to=SGD[/imgshow]
[imgshow q:name=currency,from=RM,to=SGD]
<?php
require_once 'class_imgshow.php';
$img = new imgshow();
echo $img->name('currency')->p('from', 'RM')->p('to', 'SGD')->load();
?>
var imgshow = require('imgshow');
imgshow().name('currency').p('from', 'RM').p('to', 'SGD').load(function(result) {
console.log(result);
});
var imgshow = require('./imgshow.js');
var win = Ti.UI.createWindow({title:'Imgshow Client'});
var btn = Ti.UI.createButton({left:5,top:5,right:5,bottom:5,title:'Show Me Result'});
btn.addEventListener('click', function() {
imgshow().name('currency').p('from', 'RM').p('to', 'SGD').load(function(result) {
alert(result);
});
});
include('imgshow.js');
if(session.ready()) {
session.answer();
util.say('Please hold while we querying');
imgshow().name('currency').p('from', 'RM').p('to', 'SGD').load(function(message) {
util.say('the result is ' + message);
});
}