Michael Pope
04/19/2019, 2:34 PMbattk
04/19/2019, 6:56 PMbattk
04/19/2019, 7:31 PMbattk
04/19/2019, 7:36 PMReceiving and Returning Data in the Restlet
to a different page.battk
04/19/2019, 7:38 PMCalling the Endpoint
with your first code examplebattk
04/19/2019, 7:46 PMbattk
04/19/2019, 7:50 PMMichael Pope
04/19/2019, 8:19 PMMichael Pope
04/19/2019, 8:20 PMMichael Pope
04/19/2019, 8:20 PMMichael Pope
04/19/2019, 8:22 PMMichael Pope
04/19/2019, 8:23 PMMichael Pope
04/19/2019, 8:23 PMMichael Pope
04/19/2019, 8:23 PMbattk
04/19/2019, 8:31 PMvar oauth = {
consumer_key: "",
consumer_secret: "",
token: "",
token_secret: "",
realm: account
};
var request = require("request-promise");
request("<https://rest.netsuite.com/rest/datacenterurls>", {
qs: { account: oauth.account },
json: true
})
.then(function(response) {
return request(response.restDomain + "/app/site/hosting/restlet.nl", {
qs: { script: "", deploy: "" },
oauth: oauth,
json: true,
method: "POST",
body: { param0: "" }
}).then(function(response) {
console.log(response);
});
})
.catch(function(e) {
console.error(e);
});
battk
04/19/2019, 8:32 PMMichael Pope
04/19/2019, 8:37 PMMichael Pope
04/19/2019, 8:37 PMbattk
04/19/2019, 8:38 PMMichael Pope
04/19/2019, 8:38 PMMichael Pope
04/19/2019, 8:38 PMMichael Pope
04/19/2019, 8:38 PMMichael Pope
04/19/2019, 8:38 PMMichael Pope
04/19/2019, 8:46 PMMichael Pope
04/19/2019, 8:46 PMMichael Pope
04/19/2019, 8:46 PMMichael Pope
04/19/2019, 8:46 PMbattk
04/19/2019, 8:48 PMMichael Pope
04/19/2019, 8:51 PMMichael Pope
04/19/2019, 8:51 PMMichael Pope
04/20/2019, 2:51 AMMichael Pope
04/20/2019, 2:51 AM