问题描述
我正在尝试使用youtube api获取我拥有的频道的订阅者列表,然后查看用户的电子邮件以了解他是否已订阅.现在,我正在使用此页面来测试我的第一步 https://developers.google .com/youtube/v3/docs/subscriptions/list 并按如下所示插入数据,而所有其他字段均为空
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
如您所见,我收到此错误,并且零件标签中的值为"snippet"时包含错误.如何解决此问题,并且如果需要解决的话,是否可以获取订阅到我的频道的所有用户电子邮件列表作为列表?
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?
推荐答案
如果您要检查YouTube频道的订阅者,则需要使用资源 subscription.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
并使用OAuth2.0进行身份验证.
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频道订阅者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!