This sample demonstrates how to connect to a Google Search Console API, which is
not available natively in Apps Script. The
script's manifest file
has been edited to include the additional scope that the
API requires. When a user authorizes the script they will also be asked to
approve that additional scope. We can then use the method
ScriptApp.getOAuthToken()
to access the OAuth2 access token the
script has acquired and pass it in the Authorization
header of a
UrlFetchApp.fetch()
call to the API.
NoLibrary
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||