无法获取 Youtube v3 API 的有效凭证

问题描述 投票:0回答:1

我正在学习 这个 Youtube v3 API 交互入门教程

我创建了新的沙箱项目并在其中使用(复制/粘贴)提供的代码。继续我们的 GCE 项目,创建凭据并将其粘贴到我的沙箱项目中。

我不断收到 youtube 服务的回复,说凭据无效。

...
File ".../python-sandbox/googleapiclient/http.py", line 842, in execute
    raise HttpError(resp, content, uri=self.uri)
HttpError: <HttpError 401 when requesting https://www.googleapis.com/youtube/v3/channels?alt=json&part=snippet%2CcontentDetails%2Cstatistics&forUsername=GoogleDevelopers returned "Invalid Credentials">

我错过了什么/做错了什么?

这是因为凭据是从不同的项目创建的而不是使用的吗?

python youtube-api youtube-data-api
1个回答
0
投票

企业帐户不允许使用 YouTube 服务

© www.soinside.com 2019 - 2024. All rights reserved.