Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<?php
$provider = new stdClass;
$provider->disabled = FALSE; /* Edit this to true to make a default provider disabled initially */
$provider->name = 'linkedin';
$provider->title = 'LinkedIn';
$provider->url = 'https://api.linkedin.com';
$provider->consumer_advanced = array(
'signature method' => 'HMAC-SHA1',
'authentication realm' => '',
'request token endpoint' => '/uas/oauth/requestToken',
'authorization endpoint' => '/uas/oauth/authenticate',
'access token endpoint' => '/uas/oauth/accessToken',
);
$provider->mapping = array(
'fields' => array(
'uid' => array(
'resource' => 'https://api.linkedin.com/v1/people/~:(id,first-name,picture-url)',
'method post' => 0,
'field' => 'id',
),
'real name' => array(
'resource' => 'https://api.linkedin.com/v1/people/~:(id,first-name,picture-url)',
'method post' => 0,
'field' => 'first-name',
),
'avatar' => array(
'resource' => 'https://api.linkedin.com/v1/people/~:(id,first-name,picture-url)',
'method post' => 0,
'field' => 'picture-url',
),
),
'format' => 'xml',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.