I need to return all videos from a certain youtube user, but my current function only returns 50, which is the maximum allowed by the API. is there any method to do this?
$cURL = curl_init(sprintf('http://gdata.youtube.com/feeds/api/users/%s/uploads?start-index=1&max-results=50&orderby=published', 'nerineitzke'));
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cURL, CURLOPT_FOLLOWLOCATION, true);
$return = curl_exec($cURL);
curl_close($cURL);
$xml = new SimpleXMLElement($return);
$i = 0;
foreach($xml->entry AS $video):
$titulo = (string)$video->title;
echo "$titulo <br/><br/>";
$i++;
endforeach;
echo $i; // i = 50