Using REST With The BMP

You can incorporate REST services into BMP Interactions

Input Arguement
<arg>
 <prefix>Latitude:</prefix>
 <preload>-33.42</preload>
</arg>
<arg>
 <prefix>{NL}Longitude:</prefix>
 <preload>151.34</preload>
</arg>
Sample Interaction Code
$debug = true;
$str = '';
$url = 'http://api.geonames.org/countryCode?lat=' . $args[0] . '&lng='
 . $args[1] . '&username=demo&type=JSON';
$t->fetch($url);
$data = json_decode($t->result, true);
if($debug)
 $str = "URL: {$url}<br /><br />

JSON: {$t->result}<br /><br />";

return $str . "Country name is {$data[countryName]}
<br />Country code is {$data[countryCode]}";