You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies for the troubles here! The docs on http://google.github.io are wildly out of date. To get them updated, we need to complete a few things around the TypeScript transition.
On the
http://google.github.io
documentation pages this way ofrequest
ing the library is given:const google = require('googleapis'); const tagmanager = google.tagmanager('v2');
I found this didn't work, and went confirm that this was the same on the readme. I found that it differs slightly:
var {google} = require('googleapis'); var urlshortener = google.urlshortener('v1');
Interestingly, the use of
const
is more modern thanvar
, but the example withvar
is the one that works 😄It would be a good idea to update the
http://google.github.io
pages.Thanks!
The text was updated successfully, but these errors were encountered: