gabyrdzlobaton
07/18/2022, 8:59 PMfunction callRestlet(body, script, deploy){
var myRestletResponse = https.requestRestlet({
body: 'My Restlet body',
deploymentId: deploy,
headers: myRestletHeaders,
scriptId: script
});
var myRestletHeaders = {
myHeaderType: 'Test',
myHeaderStuff: 'This is my header',
myHeaderId: 7
};
var myUrlParameters = {
myFirstParameter: 'firstparam',
mySecondParameter: 'secondparam'
}
var myRestletResponse = https.requestRestlet({
body: 'My Restlet body',
deploymentId: deploy,
headers: myRestletHeaders,
method: 'GET',
scriptId: script,
urlparams: myUrlParameters
});
This is the doGet function:
An this how the logs looks like: