An open API service indexing awesome lists of open source software.

https://github.com/mcmatters/pocket-api


https://github.com/mcmatters/pocket-api

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

## PHP library for Pocket API

### Installation
```shell
composer require mcmatters/pocket-api
```

### Usage

#### Authentication

```php
request($redirectUri);

$url = $authClient->getAuthorizeUrl($token['code'], $redirectUri);

// Redirect user to the url

// After that obtain access_token
$response = $authClient->authorize($token['code']);

$accessToken = $response['access_token'];

```

#### API usage

```php
add('https://example.com');

$articles = $client->retrieve();

```