function myFunction() { console.log(“This is a tes...
# suitescript
d
function myFunction() { console.log(“This is a test”); var url = “https://xxxx-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=1”; const headers = { “client_id”:“”, “client_secret”:“xxx”, “token_id”:“xxx”, “token_secret”:“xxx”, “signature_method”:“HMAC-SHA256", “realm”:“xxx_SB2" }; const params = { “method”:“get”, “contentType”:“application/x-www-form-urlencoded”, “headers”: headers }; var response = UrlFetchApp.getRequest(url,params); for(i in response) { Logger.log(i + “: ” + response[i]); } Logger.log(“response is”); Logger.log(response); }