问题描述
我正在尝试使用 youtube api 获取我拥有的频道的订阅者列表,然后查看用户的电子邮件以了解他是否已订阅.现在我使用这个页面来测试我的第一步 :
部分:subscriberSnippet我的订阅者:真的
并使用 OAuth2.0 进行身份验证.
然后检查用户的电子邮件
邮箱属于隐私信息,需要频道所有者授权才能获取.
I'm trying to use youtube api to get a list of subscribers to a channel i own then check a user's Email to find out if he's subscribed or not. Now I'm using this page to test my first step https://developers.google.com/youtube/v3/docs/subscriptions/list and inserting data as follows and all other fields are empty
As you can see I get this error and the part label contains an error while the value is "snippet". how to solve this problem and if solved as I need is it available to get a list of all users' emails subscribed to my channel as a list?
If you want check the subscribers of your YouTube channel you need to use the resource subscription.list with these fields:
part: subscriberSnippet
mySubscribers: true
And authenticate with OAuth2.0.
Email is a private information, you can get it only if the owner of the channel give you the permission.
这篇关于通过 youtube API 获取 youtube 频道订阅者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!