PHP client for interacting with the snooth.com RESTful api.

dev-master 2013-07-29 07:06 UTC

This package is auto-updated.

Last update: 2024-04-15 03:24:30 UTC


README

PHP client for interacting with the api.snooth.com RESTful api.

Build Status

Documentation

We encourage you to read the documentation carefully before proceeding.

Api Key

U need to register to obtain an api key.

Installing via Composer (recommended)

Install composer in your project:

curl -s http://getcomposer.org/installer | php

Create a composer.json file in your project root:

{
    "require": {
        "websoftwares/snooth": "dev-master"
    }
}

Install via composer

php composer.phar install

Example Usage

Please read the documentation for a complete list of available methods and paramaters.

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();
}

Testing

In the tests folder u can find several tests for online and offline.