HTTP Object
From Data Islands
The HTTP object is used to make HTTP requests to variosu web api's.
Examples:
Consuming a weather api
jint di
var req = HTTP();
req.Url="https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.405&hourly=temperature_2m";
req.Method="GET";
var response = req.Send();
var json = response.JSON;
//REM show the full response as a string
di.display(response.body);
//REM show the response as a formatted object
di.display(json.toString());
//REM show part of the respone
di.display(json.latitude);