// READ AND CONSUME JAVASCRIPT CODE
// CONVERT JAVASCRIPT CODE TO ZOHO DELUGE
// Name variables using snake_case
let data_variable = '';
let config_variable = Map();
// Use InvokeUrl[] function to send http request
// Create map() variable using to Map() function
config_variable.put('url', 'https://api.clickup.com/api/v2/folder/90080928679');
config_variable.put('method', 'GET');
config_variable.put('maxBodyLength', 'Infinity');
config_variable.put('headers', '{ "Content-Type": "application/json", "Authorization": "pk_3123586_HMVH3ENR0BUA5C730YO2XXPI63Z644PO" }');
InvokeUrl[config_variable];
// Use getJSON() function instead of get()
// Add code comments in UPPERCASE
getJSON(
url = 'https://api.clickup.com/api/v2/folder/90080928679',
headers = '{ "Content-Type": "application/json", "Authorization": "pk_3123586_HMVH3ENR0BUA5C730YO2XXPI63Z644PO" }',
maxBodyLength = 'Infinity'
) then {
info JSON.stringify(responseData); // LOG THE RESPONSE DATA TO THE CONSOLE
} catch(e) {
info e; // LOG ANY ERRORS TO THE CONSOLE
}