PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Retrieving a list of a user's subscriptions

A user can have several types of subscriptions: channel subscription, tag subscription, or favorites subscription. A Zend_Gdata_YouTube_SubscriptionEntry is used to represent individual subscriptions.

To retrieve all subscriptions for the user 'liz':

Example 467. Retrieving all subscriptions for a user

<?php
$yt 
= new Zend_Gdata_YouTube();
$subscriptionFeed $yt->getSubscriptionFeed('liz');

foreach (
$subscriptionFeed as $subscriptionEntry) {
    echo 
$subscriptionEntry->title->text "\n";
}

Zend Framework