Dear Kevin,
If you are purposefully using the “Sheets.Spreadsheets.values” call - you will need to provide an API key for the project via GCP (I believe - I haven’t done much with this, but it’s required)
If you are only trying to get your sheet information you can use the regular
SpreadsheetApp.getActiveSpreadsheet().getSheetByName(’Teacher Info’).getRange(‘A2:Y100’).getValues();
And do the same for your teacher availability sheet as well.
Then you won’t need to go through the whole create API etc and it will still work fine.
Laurie
------ Original Message ------
Date 12/5/2022 12:48:24 AM
Subject [Apps-Script] Google Sheet can't use the function that I developed in App Script due to Missing API Key