Working with People in LinkedIn

This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Working with People in LinkedIn



Overview

The following operations allow you to work with People. Click an operation name to see details on how to use it.  

For a sample proxy service that illustrates how to work with people, see Sample configuration.

Operation

Description

getProfile

Returns details of LinkedIn profile

getMemberProfile

The Profile API returns a members profile info LinkedIn profile.

accessOutOfNetworkProfiles

Presents people resources that are outside of the current members' three degrees

getAdditionalProfileFields

The Profile API returns a members profile additional details of LinkedIn profile.

getProfiledataBasic

The Profile API returns a members profile basic info LinkedIn profile.

Operation details

This section provides details on each of the operations.

Getting profile information 

The Profile API returns a member's LinkedIn profile. This call returns one of two versions of the profile:

Standard: Displays the profile the requester is allowed to see. The specific content will depend on the privacy settings of the profile owner, the relationship (degree separation or groups in common) between the owner and the requester, and in rare cases, the privacy settings of the requester.

Public: Returns the public profile. The fields returned are only determined by the privacy settings of the profile owner.

getProfile - To get the LinkedInprofile via the public URL
<linkedin.getProfile> <memberId>{$ctx:memberId}</memberId> <publicUrl>{$ctx:publicUrl}</publicUrl> <fieldSelectors>{$ctx:fieldSelectors}</fieldSelectors> <secureUrls>{$ctx:secureUrls}</secureUrls> </linkedin.getProfile>

Properties

  • memberId: If you know the member token of the profile you want to display, you can use it as the key value for this API call. You cannot use a member token to get a public profile.

  • fieldSelectors:  Field selectors are specified after the resource identifiers and path components of a resource, prefixed by a colon, contained within parentheses, and separated by commas. Fields will be returned in the order specified. When URL-encodes your resource URLs, ensure that the parentheses used in selectors remain un-escaped. Remember, each field you select adds computation time to your API request. It's best to be very specific as to what fields you want returned in each API call you make. 

  • publicUrl: Using the Public Profile URL will return a profile from inside or outside the logged in member's three degree network. The Public Profile URL must be URL escaped.

  • secureUrls: By providing the secure URLs parameters, it could be indicated that the URLs in the response should be in HTTPS.

Sample request

Following is a sample REST request that can be handled by the getProfile operation.

Sample request for getProfile - To get the LinkedInprofile via the public URL
{ "accessToken":"AQVT5aduaKoUktPuqxFD-KdGny8NyVOxY_F7wH53F050uf6SzqyfOSdxoU3wLgxLtQAnuskio7wWJIO9bIhxtJgikQ0DCX6ckNAAhDIx1yBpMOZsPtt7UvU0kgaxTdMGLk3X9Q7G_9NvvRNiliWx6UBY3Y_wCIQSfpu0KJrGyRCcT9_RAkE", "apiUrl":"https://api.linkedin.com", "publicUrl":"", "fieldSelectors":"first-name,last-name", "secureUrls":"true"

Related LinkedIn documentation

https://developer.linkedin.com/docs/signin-with-linkedin

Retrieve Member Profile. 

This page is retrieves the informations about the member of the LinkedIn profile.

getMemberProfile
<linkedin.getMemberProfile> <basicProfileFields>{$ctx:basicProfileFields}</basicProfileFields> </linkedin.getMemberProfile>

Properties

  • basicProfileFields: Basic profile fields to retrieve.

sample request 

Following is a sample REST request that can be handled by the getMemberProfile operation.

Sample request for getMemberProfile
{ "apiUrl":"https://api.linkedin.com", "accessToken":"AQUDwVyNpxmDdVgdBB0V3yOrdyeEpbaPoZveoYH5jH5p-dIVBRyGZoeU2l0JaHv4LhLa0sOjZgBkS2TCN8V5ilZ3h3pKb_2Nkym2gvSXEWyvg-wqbExzXuLS1s9oMRB_jzmVHSFGDbQCLczvqpi_IwbPSfnKjw4ySISwI5T_W44Q1cWQ2eY", "basicProfileFields":"(id,num-connections,picture-url)" }

Related LinkedIn documentation

https://developer.linkedin.com/docs/signin-with-linkedin

Retrieving basic profile data

This page is basic profile data for the user. The getProfiledataBasic call returns basic details of profile.

getProfiledataBasic
<linkedin.getProfiledataBasic/>
Sample request 

Following is a sample REST request that can be handled by the getProfiledataBasic operation.

Sample request for getProfiledataBasic
{ "apiUrl":"https://api.linkedin.com", "accessToken":"AQUDwVyNpxmDdVgdBB0V3yOrdyeEpbaPoZveoYH5jH5p-dIVBRyGZoeU2l0JaHv4LhLa0sOjZgBkS2TCN8V5ilZ3h3pKb_2Nkym2gvSXEWyvg-wqbExzXuLS1s9oMRB_jzmVHSFGDbQCLczvqpi_IwbPSfnKjw4ySISwI5T_W44Q1cWQ2eY" }

Related LinkedIn documentation

https://developer.linkedin.com/docs/signin-with-linkedin

Retrieving additional profile fields

This page is additional profile data for the user. The LinkedIn getAdditionalProfileFields  call returns additional details of profile.

getAdditionalProfileFields
<linkedin.getAdditionalProfileFields> <additionalProfileFields>{$ctx:additionalProfileFields}</additionalProfileFields> </linkedin.getAdditionalProfileFields>

Properties

  • additionalProfileFields: Additional profile fields to retrieve.

Sample request 

Following is a sample REST request that can be handled by the getAdditionalProfileFields operation.

Sample request for getAdditionalProfileFields
{ "apiUrl":"https://api.linkedin.com", "accessToken":"AQUDwVyNpxmDdVgdBB0V3yOrdyeEpbaPoZveoYH5jH5p-dIVBRyGZoeU2l0JaHv4LhLa0sOjZgBkS2TCN8V5ilZ3h3pKb_2Nkym2gvSXEWyvg-wqbExzXuLS1s9oMRB_jzmVHSFGDbQCLczvqpi_IwbPSfnKjw4ySISwI5T_W44Q1cWQ2eY", "additionalProfileFields":"(id,num-connections,picture-url)" }