从 iOS 应用上传到自己的 YouTube 帐户 [英] Uploading to own YouTube account from iOS app

查看:35
本文介绍了从 iOS 应用上传到自己的 YouTube 帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该应用应将视频从 iOS 设备直接上传到我们自己的 YouTube 帐户(而不是用户的帐户).

The app should be uploading videos from iOS devices directly to our own YouTube account (not user's account).

在我遇到的每个场景中,您都需要一个访问令牌,您只能从通过 OAuth2(弹出窗口)登录的用户处获取该令牌.显然,我们不能从公司帐户中为每个人提供用户名和密码.我想象使用一些唯一标识要使用的应用和 YouTube 用户帐户的密钥.

In every scenario I came across you need an Access Token that you can get only from user logging in through OAuth2 (window popping up). Obviously, we can't give everyone username and password from company account. I was imagining using some key that uniquely identifies the app and YouTube user account to use.

任何解决方案/指针?谢谢.

Any solution / pointer? Thanks.

推荐答案

我最终使用了弃用的客户端登录.我们仍然需要确定在哪里存储密码(在客户端应用程序中,或者每次从后端获取密码),但这已经是一个巨大的进步.

I ended up using deprecated Client Login. We still need to figure where to store passwords (either in the client app, or fetch them from backend every time), but that's already a huge progress.

不幸的是,Google 表示将在 2015 年删除客户端登录.我们只能希望他们届时能提出不需要用户交互的非交互式身份验证方法.

Unfortunately, Google says Client Login will be removed in 2015. We can just hope they'll come up with non-interactive auth method requiring no user interaction by then.

这篇关于从 iOS 应用上传到自己的 YouTube 帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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