We should have a credentials.json file to use for the authentication process. You could obtain your credentials using google developer console
Using the same credentials you could specify all scopes you need, e.g:
- 'https://www.googleapis.com/auth/drive'
- 'https://www.googleapis.com/auth/script.projects'
- 'https://www.googleapis.com/auth/gmail.readonly'
- 'https://www.googleapis.com/auth/documents.readonly'
- 'https://www.googleapis.com/auth/spreadsheets.readonly'
As we did it in this examples/google-api-client/auth.py
.
Note that we are using python for this but you could try other programming languages
- quickstart
- enabling api
- api reference
- permissions level doc
- permissions used: "https://www.googleapis.com/auth/drive"
- quickstar
- enabling api
- api reference
- permissions level doc
- permissions used: "https://www.googleapis.com/auth/spreadsheets.readonly"
- quickstart
- enabling api
- api reference
- permissions level doc
- permissions used: "https://www.googleapis.com/auth/gmail.send"
- quickstart
- enabling api
- api reference
- permissions level doc
- permissions used: "https://www.googleapis.com/auth/drive.file"
- quickstart
- enabling api
- api reference
- permissions level doc
- permissions used: No permission right now
A shareable URL of a Google Form is of the form
https://docs.google.com/forms/d/{ID}/viewform
where id is the ID associated with the file containing the form. We can obtain that id via API.