使用 api 密钥通过 Oauth 上传 Youtube 视频 Api

Youtube Video Uploading Api With Oauth by using api key

当我搜索上传的 YouTube 视频时 API 我看到的所有示例都是基于 Oauth 及其使用的客户端 ID 和密钥。但是我已经看到使用 api 键,但是没有找到我希望它在核心 php 中使用的任何代码 .. 通过卷曲...

所以如果有人有代码和建议请帮助我..

谢谢。

正如您从文档中看到的那样 Videos: insert 它需要使用以下范围进行身份验证和授权。

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope https://www.googleapis.com/auth/youtube.upload
https://www.googleapis.com/auth/youtube
https://www.googleapis.com/auth/youtubepartner
https://www.googleapis.com/auth/youtube.force-ssl

API 键 仅用于访问 public 数据。