2017 © Pedro Peláez
 

library linkedin

PHP LinkedIn SDK

image

godpod/linkedin

PHP LinkedIn SDK

  • Monday, May 25, 2015
  • by godpod
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3,885 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 27 % Grown

The README.md

linkedin-php

Linkedin PHP SDK based on ashwinks/PHP-Linkedin-SDK, (*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)

use LinkedIn\LinkedIn;

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

The Versions

25/05 2015

dev-master

9999999-dev https://github.com/godpod/linkedin-php

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest sdk api client linkedin

25/05 2015

1.0.1

1.0.1.0 https://github.com/godpod/linkedin-php

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest sdk api client linkedin

17/11 2014

v1.0.0

1.0.0.0 https://github.com/godpod/linkedin-php

PHP LinkedIn SDK

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api rest sdk api client linkedin