A PHP client for the Pocket API.
Via Composer
$ composer require arianrashidi/pocketapi
$pocket = new ArianRashidi\PocketApi\Pocket($consumerKey);
$pocket->setConsumerKey($consumerKey);
$pocket->getConsumerKey();
$pocket->setAccessToken($accessToken); // Required for addApi(), modifyApi() and retrieveApi().
$pocket->getAccessToken();
$pocket->setHttpClient(new GuzzleHttp\Client());
$pocket->getHttpClient();
$pocket->authenticationApi()->obtainRequestToken($redirectUrl);
$pocket->authenticationApi()->authorizationUrl($requestToken, $redirectUrl);
$pocket->authenticationApi()->obtainAccess($requestToken);
$pocket->addApi()->single($url);
$pocket->modifyApi()->send($actions);
$pocket->retrieveApi()->get();
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
- Arian Rashidi
- All Contributors
The MIT License (MIT). Please see License File for more information.