Google Youtube Data API:带有 API 密钥的私人视频 [英] Google Youtube Data API: Private videos with API key

查看:38
本文介绍了Google Youtube Data API:带有 API 密钥的私人视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我们在 youtube 上有一些私人的培训视频.我们希望登录我们系统的人能够访问这些视频,但我不希望他们必须使用 oauth 登录.

So we have some training videos on youtube that are private. We want people that log into our system to be able to access those videos, but I don't want them to have to login with oauth.

我希望我们的应用程序对我们的帐户进行身份验证,并且当我们的应用程序使用 api 时,我希望它返回私人视频.(我可以使用 API 密钥并限制推荐)

I want our app to do the authentication to OUR account and when our app uses the api, I want it to return private videos. (I'm fine with using the API key and limiting the referral)

我玩过 api,但 api 密钥不返回私人视频.

I've played around with the api, but the api key does not return private videos.

它总是返回一个空的项目数组.

It always return an empty array of items.

我该怎么做?

推荐答案

为此,您需要对自己的帐户进行 OAuth.尽管您可以在不进行身份验证的情况下执行此操作.YouTube 数据 API:使用 V3 的服务的 OAuth 身份验证,无需用户干预

You need to OAuth to your own account for that. Though you can do this without authenticating all the time. YouTube Data API: OAuth Authentication for services using V3 without user intervention

这篇关于Google Youtube Data API:带有 API 密钥的私人视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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