1. Go to this page and download the library: Download joomla/linkedin 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/ */
joomla / linkedin example snippets
use Joomla\Linkedin\Linkedin;
$linkedin = new Linkedin;
use Joomla\Linkedin\Linkedin;
use Joomla\Linkedin\OAuth;
use Joomla\Registry\Registry;
$options = new Registry;
$options->set('consumer_key', $consumer_key);
$options->set('consumer_secret', $consumer_secret);
$options->set('callback', $callback_url);
$options->set('sendheaders', true);
$oauth = new OAuth($options);
$linkedin = new Linkedin($oauth);
// Set the stored access token.
$oauth->setToken($token);
$access_token = $oauth->authenticate();
$people = $linkedin->people->getConnections();
use Joomla\Linkedin\Linkedin;
use Joomla\Linkedin\OAuth;
use Joomla\Registry\Registry;
$app_id = "app_id";
$app_secret = "app_secret";
$my_url = 'http://localhost/linkedin_test.php';
$options = new Registry;
$options->set('consumer_key', $key);
$options->set('consumer_secret', $secret);
$options->set('callback', $my_url);
$options->set('sendheaders', true);
$oauth = new OAuth($options);
$oauth->authenticate();
$linkedin = new Linkedin($oauth);
$people = $linkedin->people;
$response = $people->getProfile();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.