Need to get data from another site well you can use cURL to get it.
widget.system("/usr/bin/curl http://api.asite.com/rates/rate.php?pair=EUR/CHF", null).outputString;
this will pull the rate as a json string, but as the site needs authentication it actually won’t, it will fall over. In php i would set this up with curl_opt but in dashcode i am not able to use php.
However run man curl and scrutinise the options and you see
-u/--user <user :password></user>
substitute the correct information and the string looks like this:-
widget.system("/usr/bin/curl --user johnh:aranaio http://api.worldfirst.com/rates/rate.php?pair=EUR/CHF", null).outputString;
and that does the trick.