arianrashidi / pocketapi
This package is abandoned and no longer maintained.
No replacement package was suggested.
A simple PHP wrapper for the Pocket API.
v1.0.0
2017-01-19 19:04 UTC
Requires
- php: ~7.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2021-04-03 02:28:57 UTC
README
A PHP client for the Pocket API.
Install
Via Composer
$ composer require arianrashidi/pocketapi
Usage
$pocket = new ArianRashidi\PocketApi\Pocket($consumerKey);
Helpers
$pocket->setConsumerKey($consumerKey); $pocket->getConsumerKey(); $pocket->setAccessToken($accessToken); // Required for addApi(), modifyApi() and retrieveApi(). $pocket->getAccessToken(); $pocket->setHttpClient(new GuzzleHttp\Client()); $pocket->getHttpClient();
Authentication API
$pocket->authenticationApi()->obtainRequestToken($redirectUrl); $pocket->authenticationApi()->authorizationUrl($requestToken, $redirectUrl); $pocket->authenticationApi()->obtainAccess($requestToken);
Add API
$pocket->addApi()->single($url);
Modify API
$pocket->modifyApi()->send($actions);
Retrieve API
$pocket->retrieveApi()->get();
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Credits
- Arian Rashidi
- All Contributors
License
The MIT License (MIT). Please see License File for more information.