Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/redco/linkedin

LinkedIn API cover which allows to cache response to some store
https://github.com/redco/linkedin

Last synced: 8 days ago
JSON representation

LinkedIn API cover which allows to cache response to some store

Awesome Lists containing this project

README

        

LinkedIn API with caching
========
This library implements ability of caching all requests to LinkedIn API.

## Installation ##
- Add to you composer.json file the line:
```json
"redcode/linkedin-api": "*",
```
- Update composer with command:
```shell
composer update redcode/linkedin-api
```

## Usage ##

```php
// lifeTime of cache in seconds
$lifeTimeInSeconds = 60 * 60;

// any writable dir
$cacheDir = '',

$api = new RedCode\LinkedIn\LinkedIn([
'api_key' => '',
'api_secret' => '',
'callback_url' => ''
],
new Cache\FilesystemCache($cacheDir),
$lifeTimeInSeconds
);
```