Setup Google App Script With Additional Google Apis
Step 1 (optional)
Create new Google Script Project Click here
- To use other Google APIs with Google Script Project, you need to change the Google Script Project type from default to standard under Project Settings.
- To change project type you need to enter Google Cloud Project number.
Step 2
If you already creted one, get project from this link or Create a new Google Cloud Project visit
Step 3
- Update Concent Screen Deatils Click here
- Add desired Scopes. All Oauth Scope List : View
If you see “Needs verification”, don’t worry, On your login screen you will se “Not Verified by google”, but app will work fine.
Step 4
Add Scopes to Google App Script Project in appmanifest.json file See Refrence
Step 5 (Optional)
Add aditional scopes desired by app from this list
Step 6 (Optional)
If using UrlFetchApp, add "https://www.googleapis.com/auth/script.external_request"
to your appmanifest.json scopes.