Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/redco/linkedin
- Owner: redco
- License: mit
- Created: 2014-03-23T10:47:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-10T21:10:27.000Z (almost 10 years ago)
- Last Synced: 2024-03-27T04:16:47.943Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 250 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
);
```