Log in to the LinkedIn Developer Portal, and click Create App.
You'll be asked to provide basic details about your app, including your:
- App name
- Business email
- App logo
You'll also need to select the products you'd like to add/integrate into your app. By default, you'll get the abilities to Share on LinkedIn and Sign In with LinkedIn. You can, however, also use the Marketing Developer Platform.
Indicate that you agree to LinkedIn's legal terms, and click Create App.
Finally, you need verify the app.
In the app settings tab you should see your company with a verify button. Clicking this will provide you a link which your LinkedIn Page Admin (whoever that might be) will use to verify the account.
6700 is the default port, adjust accordingly.
Client ID and Client Secret
These can be found in the Auth tab of the API app created in Step 1. While in the Auth tab you can enter in the Redirect URL at the bottom under OAuth 2.0 Settings.
Set Initiate OAuth to GETANDREFRESH
Next you need to build a URL to obtain the Authorization Code that you need to get the access token.
Copy and paste the first two URLs below into a text editor and fill in your Client ID, Secret, and Redirect. When the first URL is filled out, copy and paste it into a browser and hit enter and the URL will change and you will receive the Authorization Code.
For security reasons, the authorization code has a 30-minute lifespan and must be used immediately. Copy the code into the second URL below after code= and copy this URL into a browser and hit enter to receive your access token.
https://www.linkedin.com/oauth/v2/accessToken?grant_type=authorization_code&client_id=<YourClientId>&client_secret=<YourClientSecret>&code=<Your Auth Code Goes Here>&state=3jf893jd89&redirect_uri=<YourRedirectURI>
OAuth Access Token
Copy the URL below to a text editor and fill in your Access Token
jdbc:linkedin:Callback URL="<YourRedirectURI>";Initiate OAuth="GETANDREFRESH";OAuth Access Token="<Your Access Token Goes here>";
3. Creating the Data Source Connection
- Log into either the Datahub or the Admin console > Data Sources Tab > New
- Data Source Type: Generic JDBC
- Give the Data Source a name
- Database URL*: Enter in the URL you created previously with the access token
- JDBC Driver Class: cdata.jdbc.linkedin.LinkedInDriver
- In Optional Driver Properties enter OAuth Client Id="<Your Client ID>";OAuth Client Secret="<Your Client Secret>"; *Remove the bracket, leave the quotes.