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+'', {

  method: 'get',

  headers: {

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

   'application': 'application/json',


  payload: JSON.stringify(),

  muteHttpExceptions: true



 return res;

Somebody knows what is going wrong?


Sign In or Register to comment.