Friday, April 27, 2012

[YouTube-API] Re: subscription api

I'm trying to look in to this a bit more

my youtube user name is: STHayden

When I loop through the subscriptions returned in the feed I only get a hand full of subscriptions over the many pages

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=1&max-results=50&client=old
subscriptions returned: 8

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=51&max-results=50&client=old
subscriptions returned: 9

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=101&max-results=50&client=old
subscriptions returned: 8

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=151&max-results=50&client=old
subscriptions returned: 6

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=201&max-results=50&client=old
subscriptions returned: 4

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=251&max-results=50&client=old
subscriptions returned: 10

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=301&max-results=50&client=old
subscriptions returned: 6

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=351&max-results=50&client=old
subscriptions returned: 8

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=401&max-results=50&client=old
subscriptions returned: 14

http://gdata.youtube.com/feeds/api/users/sthayden/subscriptions?start-index=451&max-results=50&client=old
subscriptions returned: 7


super weird


so in php I'm just doing (basicly):

$subscriptionFeed = APP::$yt->getSubscriptionFeed(null,$query);

foreach($subscriptionFeed as $subscriptionEntry) {
$mysubs[] = $subscriptionEntry->getUsername()->text;
}


thanks for looking in to this Jeff. I really appreciate it.

Stefan



On Thursday, April 26, 2012 3:49:11 PM UTC-4, Jeffrey Posnick wrote:
Hello Stefan,

 I'm not sure why this would be the case. What's your account name?

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Apr 26, 1:12 am, Stefan Hayden <alt...@gmail.com> wrote:
> I know the subscriptions call has a hard limit at 500 (ick)... my sub hover
> around 470ish. But suddenly it says I only have 79 subscriptions? I feel
> like every couple of months it randomly start returning partial
> subscriptions lists. How can I better handle this kind of partial data
> return?

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/CR5Ktkpeo5kJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment