Running GET Request from Google Script "Login not allowed"

JanPortheineJanPortheine Member Posts: 5
edited June 2020 in Development

I am running a simple GET request to Lightspeed but I get the following error:

"Inloggegevens niet toegestaan:"

My code:

  var res = UrlFetchApp.fetch('https://'+api_key+':'+api_secret+'@api.webshopapp.com/en/products.json', {

  method: 'get',

  headers: {

   'Content-Type': 'application/json',

   'application': 'application/json',

  },

  payload: JSON.stringify(),

  muteHttpExceptions: true

 });

 Browser.msgBox(res);

 return res;


Somebody knows what is going wrong?

3 comments

Sign In or Register to comment.