任何弃用财产的替代品“ GooglepluserId”?

问题描述 投票:0回答:1
时,该属性才存在

您可以在YouTube API修订历史记录中看到:

频道资源的contentDetails.googlepluserid属性已被弃用。以前,仅当通道与Google+配置文件相关联时,该属性才存在。贬值之后,该物业将不再包括在任何渠道资源中。

因此,我如何了解哪个Google帐户与YouTube频道有关?

google-api youtube youtube-api
1个回答
0
投票
我能想到的唯一选择是打电话

PEOPLE:让我用我作为用户ID。 这将为您提供当前用户的ID。 人:get

获取一个人的个人资料。如果您的应用程序使用范围

https://www.googleapis.com/auth/plus.login

,则保证此方法返回Agerange和语言。立即尝试或查看示例。 If using the userId value "me", this method requires authentication using a token that has been granted the OAuth scope https://www.googleapis.com/auth/plus.login

or

https://www.googleapis.com/auth/plus.me.阅读有关Oauth的更多信息。 GET https://www.googleapis.com/plus/v1/people/me 这将需要附加的身份验证范围。

如果使用用户ID值“ ME”,则此方法需要身份验证
  使用已授予OAuth范围的令牌
  
https://www.googleapis.com/auth/plus.login

https://www.googleapis.com/auth/plus.me

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.