2017 © Pedro Peláez
 

library linkedin

PHP LinkedIn SDK

image

linkedinapi/linkedin

PHP LinkedIn SDK

  • Friday, September 29, 2017
  • by ashwinks
  • Repository
  • 16 Watchers
  • 92 Stars
  • 132,475 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 69 Forks
  • 15 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

**** Would someone like to take over this project? Unfortunatley I haven't worked on any projects that require LinkedIn data in a couple years. Because of that, it's hard to find the time to test pull requests and keep up to date w/ LI's API. ****, (*1)

PHP-LinkedIn-SDK

A PHP wrapper for the LinkedIn API, (*2)

Here's a quick way to get started with this wrapper:

Instantiate our class, (*3)

$li = new LinkedIn(
  array(
    'api_key' => 'yourapikey', 
    'api_secret' => 'yourapisecret', 
    'callback_url' => 'https://yourdomain.com/redirecthere'
  )
);

Get the login URL - this accepts an array of SCOPES, (*4)

$url = $li->getLoginUrl(
  array(
    LinkedIn::SCOPE_BASIC_PROFILE, 
    LinkedIn::SCOPE_EMAIL_ADDRESS, 
    LinkedIn::SCOPE_NETWORK
  )
);

LinkedIn will redirect to 'callback_url' with an access token as the 'code' parameter. You might want to store the token in your session so the user doesn't have to log in again, (*5)

$token = $li->getAccessToken($_REQUEST['code']);
$token_expires = $li->getAccessTokenExpiration();

Make a request to the API, (*6)

$info = $li->get('/people/~:(first-name,last-name,positions)');

Overwrite curl options :, (*7)

$li = new LinkedIn(
  array(
    'api_key' => 'yourapikey', 
    'api_secret' => 'yourapisecret', 
    'callback_url' => 'https://yourdomain.com/redirecthere',
    'curl_options' => array(
        CURLOPT_PROXY => '127.0.0.1:80',
    ),
  )
);

The Versions

29/09 2017

dev-master

9999999-dev https://github.com/ashwinks/PHP-LinkedIn-SDK

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest api client linkedin

03/03 2014

1.1.0

1.1.0.0 https://github.com/ashwinks/PHP-LinkedIn-SDK

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest api client linkedin

16/01 2014

1.0.2

1.0.2.0 https://github.com/ashwinks/PHP-LinkedIn-SDK

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest api client linkedin

18/11 2013

1.0.1

1.0.1.0 https://github.com/redinkdesign/PHP-LinkedIn-SDK

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest api client linkedin

18/11 2013

1.0

1.0.0.0 https://github.com/redinkdesign/PHP-LinkedIn-SDK

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest api client linkedin