PowerDocs online help Help

http Static class

escapeDataString(string) Method

This method will escape a provided string to be used in a URL for example.

Returns
string The escaped string.

let text = "some text"; let escapedValue = http.escapeDataString(text);

getJson(string) Method

This method will perform a GET http request to retrieve json content.

Returns
Promise<string> A promise that returns the Json string.

let query = "https://public-url/data.json"; http.getJson(query).then((r) => { debug.log(r); });
Last modified: 08 avril 2024