YouTube数据API:OAuth认证使用V3无需用户干预服务 [英] YouTube Data API: OAuth Authentication for services using V3 without user intervention

查看:411
本文介绍了YouTube数据API:OAuth认证使用V3无需用户干预服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我采取一旦他们在不同的服务器上载的自动上传视频到YouTube频道的服务。

I'm implementing a service that automatically uploads videos to a YouTube channel once they are uploaded on a different server.

当我第一次开始我是用ClientLogin验证和的YouTube API 2.0版 - 直接上传,一切都完美。但是,由于是ClientLogin的德precated,我试图更新到V3.0使用

When I first started I was using ClientLogin authentication and YouTube API v2.0 – Direct Uploading and everything worked perfectly. However, since ClientLogin is deprecated, I'm trying to update to use v3.0.

我检查本文档并假定该文件存储在当地,这在我的情况是不是和这个服务将不是我的本地机器上运行,而且我不能够获得访问令牌的OAuth 2.0。

I checked this documentation and it assumes that the file is stored locally, which in my case is not, and this service will not be running on my local machine, and I'm not able to get the access token for OAuth 2.0.

任何人都可以提供指导?

Can anybody provide guidance?

推荐答案

您可以通过的的OAuth2游乐场并设置它。

You can do so by getting a refresh token from OAuth2 Playground and setting it in your youtube object.

这说明多一点。

而一步视频的一个步骤。

这篇关于YouTube数据API:OAuth认证使用V3无需用户干预服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆