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 user's profile

You can retrieve the public profile information for any YouTube user. To retrieve the profile for the user 'liz':

Example 468. Retrieving a user's profile

<?php
$yt 
= new Zend_Gdata_YouTube();
$userProfile $yt->getUserProfile('liz');
echo 
"username: " $userProfile->username->text "\n";
echo 
"age: " $userProfile->age->text "\n";
echo 
"hometown: " $userProfile->hometown->text "\n";

Zend Framework