Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Maven Central License


What it is

ebx-linkedin-sdk is a pure Java LinkedIn API client. It implements the v2 API as described here.

It is created and maintained by Echobox.


ebx-linkedin-sdk itself is open source software released under the terms of the Apache 2.0 License.

Installation (Recommended)

Recommended installation is via maven (or gradle etc.). For our latest stable release (recommended) use:


Installation (Most Up To Date)

Build Status

If you'd like to use the latest SNAPSHOT build please ensure you have snapshots enabled in your pom:


and then include the snapshot dependency, replacing x.x.x with the latest snapshot version:


alternatively just drop the JAR into your app and you're ready to go.

Building it Yourself

Just type

mvn package

and the jars will be built and can be found in the target folder.

Usage and examples

Please see the tests for examples of API calls that are supported and the expected JSON responses

To get the access token to begin to make requests (See documentation):

DefaultLinkedInClient client = new DefaultLinkedInClient(Version.DEFAULT_VERSION);
LinkedInClient.AccessToken accessToken = client.obtainUserAccessToken(clientId, clientSecret, redirectURI, code);

To create a LinkedIn Share (See documentation):

ShareConnection shareConnection = new ShareConnection(new DefaultLinkedInClient(authToken));

ShareRequestBody shareRequestBody = new ShareRequestBody(URN);

ShareContent shareContent = new ShareContent();

ContentEntity contentEntity = new ContentEntity();
shareContent.setTitle("Test Share with Content");
shareRequestBody.setSubject("Test share subject");
ShareText shareText = new ShareText();
shareText.setText("test share");
Share share = shareConnection.postShare(shareRequestBody);

Retrieve an organization from LinkedIn (See documentation):

Organization organization = connection.retrieveOrganization(organizationURN, Parameter
            "(elements*(*,roleAssignee~(localizedFirstName, localizedLastName),"
                + "organizationalTarget~(localizedName)))"));

Getting in touch

  • GitHub Issues: If you have ideas, bugs, or problems with our library, just open a new issue.


If you would like to get involved please follow the instructions here


We use semantic versioning.

All merges into DEV will automatically get released as a maven central snapshot, which can be easily included in any downstream dependencies that always desire the latest changes (see above for 'Most Up To Date' installation).

Each merge into the MASTER branch will automatically get released to Maven central and github releases, using the current library version. As such, following every merge to master, the version number of the dev branch should be incremented and will represent 'Work In Progress' towards the next release.

Please use a merge (not rebase) commit when merging dev into master to perform the release.

To create a full release to Maven central please follow these steps:

  1. Ensure the is up to date with all the changes in the release, if not please raise a suitable PR into DEV. Typically the change log should be updated as we go.
  2. Create a PR from DEV into MASTER. Ensure the version in the pom.xml is the correct version to be released. Merging this PR into MASTER will automatically create the maven and github releases. Please note that a release is final, it can not be undone/deleted/overwritten.
  3. Once the public release has been successful create a final PR into DEV that contains an incremented pom.xml version to ensure the correct snapshot gets updated on subsequent merges into DEV. This PR should also include:
    • An update to the latest stable release version number.
    • A 'Work In Progress' entry for the next anticipated release in
You can’t perform that action at this time.