<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 26 May 2013 00:00:03 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[WaxJelly Blog: Simple PHP script using the YouTube API (with pagination)]]></title>
      <guid>http://www.phpdeveloper.org/news/6158</guid>
      <link>http://www.phpdeveloper.org/news/6158</link>
      <description><![CDATA[<p>
On the WaxJelly blog today, there's a <a href="http://waxjelly.wordpress.com/2006/08/28/create-a-simple-results-page-with-the-youtube-api-with-pagination/">new tutorial</a> showing how to combine PHP and the YouTube API interface to grab the information and a thumbnail of videos matching your search.
</p>
<blockquote>
For the purposes of this tutorial, you'll only need to change one variable to actually see the script in action. If you don't have a youtube API developer ID, <a href="http://youtube.com/my_profile_dev">you can get one for free here</a>. Other than that, this is a primative script that grabs the info, styles it into manageable chunks, and displays the first 4 pages of results.
</blockquote>
<p>
First, they <a href="http://waxjelly.wordpress.com/2006/08/28/create-a-simple-results-page-with-the-youtube-api-with-pagination/">set up the values</a> they're defaulting to in the script (GET vars). The call to the REST API is next, passing along the method, developer ID, page, number to show per page, and the tag to search on. The results of this are pulled in with teh file_get_contents and parsed with SimpleXML and looped through, combined with HTML, and outputted into a page looking <a href="http://waxjelly.wordpress.com/files/2006/08/mute_math_youtube_results.jpg">something like this</a>.
</p>]]></description>
      <pubDate>Mon, 28 Aug 2006 15:33:16 -0500</pubDate>
    </item>
  </channel>
</rss>
