PHP Pocket API
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
A PHP client for the Pocket API., (*2)
Install
Via Composer, (*3)
``` bash
$ composer require arianrashidi/pocketapi, (*4)
## Usage
``` php
$pocket = new ArianRashidi\PocketApi\Pocket($consumerKey);
Helpers
``` php
$pocket->setConsumerKey($consumerKey);
$pocket->getConsumerKey();
$pocket->setAccessToken($accessToken); // Required for addApi(), modifyApi() and retrieveApi().
$pocket->getAccessToken();
$pocket->setHttpClient(new GuzzleHttp\Client());
$pocket->getHttpClient();, (*5)
### Authentication API
[Documentation](https://getpocket.com/developer/docs/authentication)
``` php
$pocket->authenticationApi()->obtainRequestToken($redirectUrl);
$pocket->authenticationApi()->authorizationUrl($requestToken, $redirectUrl);
$pocket->authenticationApi()->obtainAccess($requestToken);
Add API
Documentation, (*6)
``` php
$pocket->addApi()->single($url);, (*7)
### Modify API
[Documentation](https://getpocket.com/developer/docs/v3/modify)
``` php
$pocket->modifyApi()->send($actions);
Retrieve API
Documentation, (*8)
``` php
$pocket->retrieveApi()->get();, (*9)
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
``` bash
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*10)
Credits
License
The MIT License (MIT). Please see License File for more information., (*11)