LinkedIn API cover which allows to cache response to some store
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/RedCode/LinkedIn
.gitignore
LICENSE
README.md
composer.json

README.md

LinkedIn API with caching

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

Installation

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

Usage

// 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
);