Hi!
I’ve built a Macro that works great in development mode but when on production it doesn’t work.
It is currently reduce to this:
addon
.httpClient({
clientKey: clientKey,
userAccountId: userAccountId,
appKey: addon.key,
})
.get('/rest/api/content' + pageId + '/history/' + pageVersion + '/macro/id/' + macroId, function(
err,
response,
contents
) {
console.log('--------------------------------');
console.log(contents);
console.log("pageId:"+ pageId);
console.log("MacroId:"+ macroId);
console.log("pageVersion:"+ pageVersion);
console.log('--------------------------------');
});
which returns HTTP Status 403 – Forbidden <b>Message</b> Request not in an authorized API scope
The Macro uses user input to print a table.
Thanks
Joao