PHP code example of redcode / linkedin-api
1. Go to this page and download the library: Download redcode/linkedin-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
redcode / linkedin-api example snippets
// 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
);