0

I'm trying to get the number which is basically 116 into a cell on Google sheets with the following code, however I get the missing ; before statement error:

var copper = UrlFetchApp.fetch("https://api.diviscan.io/masternodes");


  var copperObject = JSON.parse(copper);
  Logger.log(copperObject.layers['copper'].getContentText());

  var fact3 = copperObject.layers['copper'].getContentText());
  var sheet3 = SpreadsheetApp.getActiveSheet();
  sheet3.getRange(2,5).setValue([fact3]);

Any help would be great!

1

There is an extra closing parens on this line:

var fact3 = copperObject.layers['copper'].getContentText());

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.