列出频道订阅 returns 只有我的频道
List channel subscriptions returns only my channel
所以,我有一个请求,应该列出我没有启用私人订阅选项的订阅者。我的要求是:
response = youtube.subscriptions().list(
part="snippet",
maxResults=50,
mySubscribers=True
).execute()
但是,在物品资源中,返回的每个频道都是我自己的频道。我的频道名称、ID 和个人资料图片。这是 API 的问题还是我提出了错误的请求?
我也尝试使用文档中的 Try this API 选项,但它也 returns 同样的结果。
https://developers.google.com/youtube/v3/docs/subscriptions/list
感谢您提供的任何帮助
根据您已经引用的官方文档,您应该将参数 part
传递给您的 API 调用:
part="snippet,subscriberSnippet"
.
subscriberSnippet
部分为您提供了所需的信息:
subscriberSnippet (object)
The subscriberSnippet
object contains basic details about the subscriber.
关于snippet
部分,官方文档确实有点模棱两可:
snippet (object)
The snippet
object contains basic details about the subscription, including its title and the channel that the user subscribed to.
然而,您从 part="snippet"
获得的信息只是正确的。
所以,我有一个请求,应该列出我没有启用私人订阅选项的订阅者。我的要求是:
response = youtube.subscriptions().list(
part="snippet",
maxResults=50,
mySubscribers=True
).execute()
但是,在物品资源中,返回的每个频道都是我自己的频道。我的频道名称、ID 和个人资料图片。这是 API 的问题还是我提出了错误的请求? 我也尝试使用文档中的 Try this API 选项,但它也 returns 同样的结果。 https://developers.google.com/youtube/v3/docs/subscriptions/list 感谢您提供的任何帮助
根据您已经引用的官方文档,您应该将参数 part
传递给您的 API 调用:
part="snippet,subscriberSnippet"
.
subscriberSnippet
部分为您提供了所需的信息:
subscriberSnippet (object)
ThesubscriberSnippet
object contains basic details about the subscriber.
关于snippet
部分,官方文档确实有点模棱两可:
snippet (object)
Thesnippet
object contains basic details about the subscription, including its title and the channel that the user subscribed to.
然而,您从 part="snippet"
获得的信息只是正确的。