This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
I have an api key for my node js application to access google spreadsheets. Now I would like to access also Gmail API. So I activated the Gmail API in the cloud console but when I add the scope
'https://www.googleapis.com/auth/gmail' to my google.auth() request I get an error message "invalid credentials'. What else is required to use the Gmail API with that api key?