You're not providing any details about the type of failure you're
encountering (is there an exception thrown? If so, it should contain
some details about the failure) so I'd just have to guess here, but
you're probably running into quota issues. Please see
http://apiblog.youtube.com/2010/02/best-practices-for-avoiding-quota.html
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 15, 12:02 am, George Armah <sri...@gmail.com> wrote:
> Hello,
> I'm writing some code that loops through videos from a channel and updates
> them. It works for a channel with 11 videos but for some other channels
> with 900 or 400 videos, it doesn't do anything. Are there any restrictions
> on the api that would prevent me from running such code?
>
> I'm using the PHP client library and the code snippet is below:
> foreach ($allVideos as $video) {
> printVideoEntry($video);
> $video -> setVideoDescription($descriptionPrefix . " " . $video ->getVideoDescription
> ());
> $youTube -> updateEntry($video, $video -> getEditLink() -> getHref());
>
> // Verify
> $video = $youTube -> getFullVideoEntry($video -> getVideoId());
> printVideoEntry($video);
> }
>
> Thanks in advance for any help,
> George.
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
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