Description

The PostLinkedIn processor is used to post data to the LinkedIn using API.

Tags

Syncfusion, LinkedIn, Post.

Properties

PostLinkedIn processor has the following properties:

Name

Default Value

Allowable Values

Description

API Method

Share via a comment. * Share via a comment.
* Share with specific values.
Specifies API method used to share the data in LinkedIn account.

Access Token

Access the token to access an API.

Sensitive Property: true

Response Type

JSON * JSON
* XML
Select the format in which the response should be retrieved.

Message

* JSON
* XML
Specify the message to be shared.

Supports Expression Language: true

In the above list, the required properties appear in bold. Other properties (not in bold) are considered as optional.



Relationships

Name

Description

failure All created FlowFiles are routed to this relationship, if data is shared successfully.
success All created FlowFiles are routed to this relationship, if data sharing fails.


How to create application and generate Access Token



LinkedIn API requires authentication, specifically the requests are made on behalf of the user. Authenticated requests require an “access_token”.

The following steps are used to generate an access token:

  • Create new application.
  • Generate access token.
  • Fetch data from LinkedIn.

Create new application

The following steps are used to register a new application in LinkedIn,

  • Click the Create Application button.

  • In the Website URL field enter your website URL. Then complete all the required fields on the form and click Submit.

  • The authentication keys get generated. Copy the Client ID and Client Secret.



Generate access token



The following steps are used to generate an access token for accessing the rest API of the LinkedIn.

  • Open the postman rest client and select the authentication type from the authorization tab.

  • Click the Get New Access Token button and enter the required details.


Property Value
Token Name Give sample name
Auth URL https://www.linkedin.com/uas/oauth2/authorization
Access Token URL https://www.linkedin.com/uas/oauth2/accessToken
Client ID Generated Client ID
Client Secret Generated Client Secret
Grant Type Authorization Code
  • Click the Request Token button which generates the access token.



Post data into LinkedIn using Data Integration Platform

PostLinkedIn processor is used to post data in LinkedIn.
Here is the overview template to post data into LinkedIn and store the response in a file.

Step 1: Configure PostLinkedIn processor

Drag and drop the PostLinkedIn processor into the canvas.

Double click the processor to configure it.

Select the API method, enter access token generated, message to be shared, and response type in which the response data should be retrieved.

Step 2: Configure PutFile processor

Drag and drop the PutFile processor.

Double click the processor to configure and enter the directory where the response should be stored in file.