<?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>Thu, 23 May 2013 04:53:05 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Building a client for a REST API with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16660</guid>
      <link>http://www.phpdeveloper.org/news/16660</link>
      <description><![CDATA[<p>
<i>Gonzalo Ayuso</i> has a new post to his blog showing how to <a href="http://gonzalo123.wordpress.com/2011/08/01/building-a-client-for-a-rest-api-with-php/">make a PHP-based client for a REST API</a> with the help of <a href="https://github.com/gonzalo123/GzaasApi">his handy tool</a>.
</p>
<blockquote>
Today we're going to create a library to use a simple RESTfull API for a great project called <a href="http://gzaas.com/">Gzaas</a>. [...] Ok. The API is a simple RESTfull <a href="http://gzaas.com/project/api-embed/api-general-overview/">API</a>, so we can use it with a simple curl interface. A few lines of PHP and it will run smoothly. But Gzaas is cool so we're going to create a cool interface too. This days I'm involved into TDD world, so we're going to create the API wrapper using TDD. Let's start.
</blockquote>
<p>
He starts with his tests, defining checks for fonts, patterns and styles and moves into a sample call that sets configuration options for background color, shadows and visibility. You can find out more about what the service has to offer by <a href="http://gzaas.com/project/api-embed">reading the documentation</a> and the client <i>Gonzalo</i> has written for it <a href="https://github.com/gonzalo123/GzaasApi">in github</a>.
</p>]]></description>
      <pubDate>Mon, 01 Aug 2011 11:57:40 -0500</pubDate>
    </item>
  </channel>
</rss>
