YouTube 数据 API Node.js quickstart.js 问题

YouTube Data API Node.js quickstart.js problem

我目前 运行 quickstart.js 代码由 https://developers.google.com/youtube/v3/quickstart/nodejs

提供

在我的终端上 运行 node quickstart.js 之后,访问提供的 link,并使用我的 Google 开发人员控制台项目授权我的应用程序,似乎我应该已获得某种类型的代码:

Authorize this app by visiting this url: *provided url*
Enter the code from that page here:

在哪里可以找到上面提到的代码?我好像找不到。它反而将我重定向到我的网络应用程序。

请指教

根据您已经引用的文档页面:

Step 4: Run the sample

Run the sample using the following command:

$ node quickstart.js

The first time you run the sample, it will prompt you to authorize access:

a. Browse to the provided URL in your web browser.

If you are not already logged into your Google account, you will be prompted to log in. If you are logged into multiple Google accounts, you will be asked to select one account to use for the authorization.

b. Click the Accept button.

c. Copy the code you're given, paste it into the command-line prompt, and press Enter.

那就是你必须复制浏览器地址栏中给出的代码(在URL参数code=...下)并在quickstart.js给出的提示处粘贴。