Logo
Section 1 / 3

设置项目并获取客户端凭证

学习如何在 Google Cloud Platform 上设置项目并创建授权凭证。

导入

设置项目并获取客户端凭证

学习如何在 Google Cloud Platform 上设置项目并创建授权凭证。

1https://www.googleapis.com/auth/userinfo.email 2https://www.googleapis.com/auth/drive 3https://www.googleapis.com/auth/userinfo.profile 4https://www.googleapis.com/auth/drive.file 5https://www.googleapis.com/auth/drive.readonly 6https://www.googleapis.com/auth/drive.metadata.readonly 7https://www.googleapis.com/auth/drive.appdata 8https://www.googleapis.com/auth/drive.metadata 9https://www.googleapis.com/auth/drive.photos.readonly
1http://localhost:3000/callback
1console.log('{{CLIENT_ID_GOOGLE}}') 2console.log('{{CLIENT_SECRET_GOOGLE}}')
...
Error screen

简介

使用 OAuth 生成访问令牌