'YouTube' is not defined
See original GitHub issueI’m trying to use the YouTube Data API and getting this error when trying to deploy :
error 'YouTube' is not defined no-undef
I have included the following on my manifest file, but to no avail :
{ "userSymbol": "YouTube", "serviceId": "youtube", "version": "v3" }
And the line that throws the error is the following:
const results = YouTube.Search.list('id,snippet', options);
Not sure what else I should be doing, can someone help?
Here’s my manifest file :
{ "timeZone": "Europe/London", "dependencies": { "enabledAdvancedServices": [{ "userSymbol": "Gmail", "serviceId": "gmail", "version": "v1" }, { "userSymbol": "Drive", "serviceId": "drive", "version": "v2" }, { "userSymbol": "YouTube", "serviceId": "youtube", "version": "v3" } ], "libraries": [{ "userSymbol": "OAuth1", "libraryId": "1CXDCY5sqT9ph64fFwSzVtXnbjpSfWdRymafDrtIZ7Z_hwysTY7IIhi7s", "version": "16" }, { "userSymbol": "OAuth2", "libraryId": "1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF", "version": "33" } ] }, "webapp": { "access": "ANYONE", "executeAs": "USER_ACCESSING" }, "exceptionLogging": "STACKDRIVER", "oauthScopes": [ "https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/script.external_request", "https://www.googleapis.com/auth/script.scriptapp", "https://www.googleapis.com/auth/script.storage", "https://www.googleapis.com/auth/script.webapp.deploy", "https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/script.container.ui" ] }
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
Thank you, its working now.
No longer required since the service is now part of the Eslint GAS plugin. The commit d65eba575d47abfec5190dc3de40c914e25062b9 closes this.