Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/websoftwares/snooth
PHP client for interacting with the snooth.com RESTful api.
https://github.com/websoftwares/snooth
Last synced: 29 days ago
JSON representation
PHP client for interacting with the snooth.com RESTful api.
- Host: GitHub
- URL: https://github.com/websoftwares/snooth
- Owner: websoftwares
- Created: 2013-07-26T12:45:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-29T07:08:12.000Z (over 11 years ago)
- Last Synced: 2024-10-12T13:16:57.694Z (3 months ago)
- Language: PHP
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snooth
PHP client for interacting with the [api.snooth.com](https://api.snooth.com/ "snooth.com") RESTful api.
[![Build Status](https://api.travis-ci.org/websoftwares/Snooth.png)](https://travis-ci.org/websoftwares/Snooth)
## Documentation
We encourage you to read the [documentation](https://api.snooth.com/ "api.snooth.com") carefully before proceeding.## Api Key
U need to [register](https://api.snooth.com/register/ "api.snooth.com") 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](https://api.snooth.com/ "api.snooth.com") for a complete list of available methods and paramaters.```php
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.