google-api-nodejs-client
google-api-nodejs-client copied to clipboard
google.drivelabels is not a function
- Is this a client library issue or a product issue?: This is a client library issue.
- Did someone already solve this?: Appears not
- Do you have a support contract?: No
Environment details
- OS: Windows 10 64bit
- Node.js version: 16.15.0
- npm version: 8.12.1
googleapisversion: 39.2.0 (as used in the documentation), also tried 105.0.0 (latest)
Steps to reproduce
- run
npm install googleapis@39 --save(note you can also trynpm install googleapis@latest) - use the following code according to the quickstart:
const {google} = require('googleapis');
const auth = new GoogleAuth(); // uses env variable for path to json credential file
const service = google.drivelabels({version: 'v2', auth: auth});
- You will get the error:
TypeError: google.drivelabels is not a function
Hi @lewis-cobry,
Thanks for submitting this issue. We haven't merged the code for drivelabels yet, it's in this PR, that is being held back by an unrelated issue. I will work to get this PR merged ASAP.