I tried to have a simple script below (yes the url is not valid) but I get This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.
. It's my own app script project (Google Sheet) yet I get this weird error message. I tried turned off 2-step verification and enable Less secure app access but still doesn't work (5mins ago, I'll give it another try later in case the config change hasn't propagate but I doubt it'll work).
function myFunction() {
var url = 'the URL of your spreadsheet'; // put URL here
var ss = SpreadsheetApp.openByUrl(url);
}
Does anyone have idea how to make it work?