dev-master
9999999-devPHP client for interacting with the snooth.com RESTful api.
dbad
The Requires
- php >=5.3.0
- ext-curl *
- ext-json *
The Development Requires
by Boris Verhaaff
api snooth
PHP client for interacting with the snooth.com RESTful api.
PHP client for interacting with the api.snooth.com RESTful api., (*1)
We encourage you to read the documentation carefully before proceeding., (*3)
U need to register to obtain an api key., (*4)
Install composer in your project:, (*5)
curl -s http://getcomposer.org/installer | php
Create a composer.json file in your project root:, (*6)
{ "require": { "websoftwares/snooth": "dev-master" } }
Install via composer, (*7)
php composer.phar install
Please read the documentation for a complete list of available methods and paramaters., (*8)
use Websoftwares\SnoothClient, Websoftwares\Snooth, Websoftwares\SnoothException; try { $snooth = new Snooth(new SnoothClient('123456789YourApiKey')); // Set parameters for method and get response $response = $snooth->setParameter('a', 0)->get('wines'); } catch (SnoothException $e) { echo $e->getMessage(); }
In the tests folder u can find several tests for online and offline., (*9)
PHP client for interacting with the snooth.com RESTful api.
dbad
api snooth