YouTube Data API获取返回incorect数据的子列表

时间:2016-01-28 21:56:05

标签: google-api youtube-api youtube-data-api

Subscriptions: list

使用网站上的API资源管理器尝试获取我的订阅列表

channelid=UCi-Zy3O4CWziq9OZW-Al_9w

20个子网站的频道只获得1个结果,这是我的其他YouTube帐户

"channelId": "UCsOIinNuWBsSnJinahMj4zA" <-- other youtube channelid(i have 2 accounts)

我做错了什么?

我有一个从YouTube API中提取数据的PHP页面,它也得到了相同的结果我希望有人能够理解为什么这不能在dev网站上运行我可以解决它。

GET https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&channelId=UCi-Zy3O4CWziq9OZW-Al_9w&key={YOUR_API_KEY}

响应:

   200 OK
- SHOW HEADERS -
{
 "kind": "youtube#subscriptionListResponse",
 "etag": "\"abQHWywil_AkNqdqji7_FqiK-u4/Y43qe50CL23jmTwYBVjdLwyJYRg\"",
 "pageInfo": {
  "totalResults": 1,
  "resultsPerPage": 5
 },
 "items": [
  {

   "kind": "youtube#subscription",
   "etag": "\"abQHWywil_AkNqdqji7_FqiK-u4/PaB4qya_oeOGHQb8uJxncbv0u04\"",
   "id": "alguZF2ihtTJA3RmYICZ0VEKIsdsOa--vVjTTNEet0U",
   "snippet": {
    "publishedAt": "2016-01-24T17:18:55.000Z",
    "title": "Asaf David",
    "description": "",
    "resourceId": {
     "kind": "youtube#channel",
     "channelId": "UCsOIinNuWBsSnJinahMj4zA"
    },
    "channelId": "UCi-Zy3O4CWziq9OZW-Al_9w",
    "thumbnails": {
     "default": {
      "url": "https://yt3.ggpht.com/--cBdfTckJ8I/AAAAAAAAAAI/AAAAAAAAAAA/OsBikVPvwpk/s88-c-k-no/photo.jpg"
     },
     "high": {
      "url": "https://yt3.ggpht.com/--cBdfTckJ8I/AAAAAAAAAAI/AAAAAAAAAAA/OsBikVPvwpk/s240-c-k-no/photo.jpg"
     }
    }
   }
  }
 ]
}


编辑:
我不明白为什么但是如果我删除了channelid它似乎正在工作
GET https://www.googleapis.com/youtube/v3/subscriptions?part=subscriberSnippet&mySubscribers=true&fields=items%2CnextPageToken%2CpageInfo&key={YOUR_API_KEY}
 谁能解释一下呢?  还有最近排序的方法吗?

2编辑:
还有一个问题,输出是错误的,前5个名字很好并且跟随着  页面包含allrdy显示或具有少于5个名称的名称的副本
我在网站上测试它同样的输出我真的不知道什么是错误的channelid没有被使用/或被接受从子列表中随机输出名称
输出潜艇:

YouReNext HD
TheRealDocM88
King-Of-_Spades
2p Italy ahetalianperson
JackJapoolGaming
"nextPageToken": "CAUQAA",
2p Italy ahetalianperson <-- copy allrdy posted
JackJapoolGaming <-- copy allrdy posted
kiwi gaming ex
Jirou Namakii
SpiderGs
"nextPageToken": "CAoQAA",
JackJapoolGaming <-- copy allrdy posted
kiwi gaming ex <-- copy allrdy posted
Jirou Namakii <-- copy allrdy posted
"nextPageToken": "CA8QAA",
kiwi gaming ex <-- copy allrdy posted
Jirou Namakii <-- copy allrdy posted
SpiderGs  <-- copy allrdy posted

0 个答案:

没有答案