<?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>Wed, 22 May 2013 21:20:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: Using the Stack Exchange API with PHP (part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/15785</guid>
      <link>http://www.phpdeveloper.org/news/15785</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted the <a href="http://devzone.zend.com/article/12943-Using-the-Stack-Exchange-API-with-PHP-part-2">second part</a> of a series from <i>Vikram Vaswani</i> about using the <a href="http://api.stackoverflow.com/">Stack Exchange API</a> to pull questions and comments users have posted to the site. In this second part of the series he shows how to get more information about those users and their activities.
</p>
<blockquote>
The thing to remember about questions, answers and comments, though, is that they don't exist in a vacuum. They're created by users, and it's the users that make the site tick. That's why the Stack Exchange API includes a large number of methods designed to let developers access user profiles and timelines, and unearth the relationships between users and their posts. This article will focus primarily on this dimension of the Stack Exchange API, illustrating how to search for users, obtain user profiles and timelines, and retrieve information on a user's questions, answers, comments, badges and tags. 
</blockquote>
<p>
You'll need to get the <a href="http://pear.php.net/pepr/pepr-proposal-show.php?id=647">StackPHP PEAR package</a> to follow along with the code examples (it does some of the hard work for you). He shows how to:
</p>
<ul>
<li>Grab a list of users ordered by reputation
<li>Search for usernames matching a string
<li>Get badge information (in general and for a user)
<li>Finding a user's activity timeline
</ul>
<p>
Near the end he also includes an example of using the Zend_Paginator component of the <a href="http://framework.zend.com">Zend Framework</a> to filter down the results to a more manageable size.
</p>]]></description>
      <pubDate>Fri, 21 Jan 2011 11:12:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Using the Stack Exchange API with PHP (part 1)]]></title>
      <guid>http://www.phpdeveloper.org/news/15659</guid>
      <link>http://www.phpdeveloper.org/news/15659</link>
      <description><![CDATA[<p>
On the Zend Developer Zone today the <a href="http://devzone.zend.com/article/12829-Using-the-Stack-Exchange-API-with-PHP-part-1">first part of a series</a> from <i>Vikram Vaswani</i> has been posted. This new set of articles will look at how to use the Stack Exchange API from your PHP applications.
</p>
<blockquote>
The thing about Stack Overflow, though, is that it has a geeky secret of its own. Like many Web 2.0 applications, it exposes its data to the public via the Stack Exchange Web service API, making it possible to develop customized applications that run on top of the base service. This API allows access to a number of important functions, including searching for questions, retrieving answers and comments, accessing user profiles, and working with tags and badges. It's also pretty easy to integrate this API into a PHP application - and this two-part article will show you how!
</blockquote>
<p>
In <a href="http://devzone.zend.com/article/12829-Using-the-Stack-Exchange-API-with-PHP-part-1">part one</a> he introduces you to some of the conventions and tips you'll need to know when reading through the article. He shows how to get and parse a sample response (with <a href="http://php.net/json_decode">json_decode</a>). He also uses the proposed <a href="http://pear.php.net/pepr/pepr-proposal-show.php?id=647">StackPHP</a> PEAR package to make requests for general question information, specific details, tags, comments and search results.
</p>]]></description>
      <pubDate>Thu, 30 Dec 2010 13:04:02 -0600</pubDate>
    </item>
  </channel>
</rss>
