googleapis / googleapis/google-api-nodejs-client

Docs don't match types

Open
#3,790 0 comments 0 reactions 0 assignees View on GitHub
size: s type: docs
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

### Please make sure you have searched for information in the following guides.

- [x] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
- [x] Check our Troubleshooting guide: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting
- [x] Check our FAQ: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq
- [x] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
- [x] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
- [x] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples

### Documentation Request

The npm docs at: https://www.npmjs.com/package/googleapis#oauth2-client

say to use the googleapi oauth client like:

`
const oauth2Client = new google.auth.OAuth2(
YOUR_CLIENT_ID,
YOUR_CLIENT_SECRET,
YOUR_REDIRECT_URL
);
`

But in VS code that is marked as deprecated in the types, in favor of using a config object. Maybe the docs on npm need to be updated?

Also, your checklist before submitting an issue says to go to this url:

https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting

But when I went there I got a 404.

I also got a 404 for this FAQ link:

https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq

At this URL they show using the config object. Maybe link to this from the npm docs?

https://github.com/googleapis/google-auth-library-nodejs

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.