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

时间:2015-09-30 12:40:21

标签: php youtube-api youtube-data-api

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

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

感谢。

1 个答案:

答案 0 :(得分:0)

从文档Videos: insert可以看出,它需要使用以下范围进行身份验证和授权。

  

授权
  
  此请求需要至少具有以下之一的授权   范围(read more about authentication and authorization)。

     

范围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密钥仅用于访问公共数据。

相关问题