如何从YouTube频道ID获取用户的Google+ ID [英] How to get a user's Google+ ID from a YouTube channel ID

查看:402
本文介绍了如何从YouTube频道ID获取用户的Google+ ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一项服务,人们可以使用oauth 2.0连接他们的Google帐户,并且拥有YouTube权限,我可以管理其频道/访问其YouTube频道ID.

I'm running a service where people can connect their Google account using oauth 2.0, and with YouTube permissions I can manage their channels/access their YouTube Channel ID.

但是,我的问题是你是否可以倒退.即如何从给定的YouTube频道ID确定Google帐户所有者?

However, my question is whether or not you can go backwards. i.e. How can you determine the Google Account Owner from a given YouTube channel ID?

推荐答案

googlePlusUserId已弃用

googlePlusUserId is now deprecated from

https://developers.google.com/youtube/v3/docs/channels#properties

contentDetails.googlePlusUserId不再是contentDetails部分的一部分.

contentDetails.googlePlusUserId no longer exists as part of the contentDetails part.

基于他们摘录的更改日志

2016年6月13日

June 13, 2016

此更新包含以下更改:

  • channel资源的contentDetails.googlePlusUserId属性具有 不推荐使用.以前,只有在 频道与Google+个人资料相关联.继 弃用,该属性将不再包含在任何channel中 资源.
  • comment资源的snippet.authorGoogleplusProfileUrl 物业已弃用.以前,该物业仅 如果该频道与Google+个人资料相关联,则显示. 弃用后,该属性将不再包含在 任何comment资源.
  • The channel resource's contentDetails.googlePlusUserId property has been deprecated. Previously, the property was only present if the channel was associated with a Google+ profile. Following the deprecation, the property will no longer be included in any channel resources.
  • The comment resource's snippet.authorGoogleplusProfileUrl property has been deprecated. Previously, the property was only present if the channel was associated with a Google+ profile. Following the deprecation, the property will no longer be included in any comment resources.

由于这些属性都不是 弃用后返回,两个属性均已删除 从相应的资源文档中获取.

Since neither of these properties will be returned following the deprecation, both properties have been removed from the corresponding resource documentation.

这篇关于如何从YouTube频道ID获取用户的Google+ ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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