News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso's Blog:
Building a client for a REST API with PHP
August 01, 2011 @ 11:57:40

Gonzalo Ayuso has a new post to his blog showing how to make a PHP-based client for a REST API with the help of his handy tool.

Today we're going to create a library to use a simple RESTfull API for a great project called Gzaas. [...] Ok. The API is a simple RESTfull API, 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.

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 reading the documentation and the client Gonzalo has written for it in github.

0 comments voice your opinion now!
rest api gzaas tdd curl request


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: How to Roll Your Own JavaScript Compressor with PHP and the Closure Compiler

Ilia Alshanetsky's Blog: MySQL Binaries and cURL/http extensions in PHP

William Durand: REST APIs with Symfony2: The Right Way

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2

Sara Golemon's Blog: Heads up, PHP 5.3's Module API is not Backward Compatible


Community Events





Don't see your event here?
Let us know!


api release interview install symfony community introduction language wordpress threedevsandamaybe series application bugfix podcast configure laravel developer code list library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework