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

This package is not auto-updated.

Last update: 2021-04-03 02:28:57 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

Documentation

$pocket->authenticationApi()->obtainRequestToken($redirectUrl);
$pocket->authenticationApi()->authorizationUrl($requestToken, $redirectUrl);
$pocket->authenticationApi()->obtainAccess($requestToken);

Add API

Documentation

$pocket->addApi()->single($url);

Modify API

Documentation

$pocket->modifyApi()->send($actions);

Retrieve API

Documentation

$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

License

The MIT License (MIT). Please see License File for more information.