redco / linkedin

LinkedIn API cover which allows to cache response to some store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

LinkedIn API cover which allows to cache response to some store

License:MIT License


Languages

Language:PHP 100.0%