Right now, I am using a library java library:
<dependency>
<groupId>com.googlecode.linkedin-j</groupId>
<artifactId>linkedin-j-core</artifactId>
<version>1.0.429</version>
</dependency>
bUT this does not work anymore. I the library is using deprecated API :
/v1/people/~/current-status
and whenever ran it throws exception as follows:
Exception in thread "main" com.google.code.linkedinapi.client.LinkedInApiClientException: Unsupported PUT target {/v1/people/~/current-status}
So I look-up at LinkedIn documentation for new updates, BUT could NOT find the appropriate documentation for publishing user current profile status...
https://developer.linkedin.com/documents/profile-api
Current code that stopped working is similar as follows using LinkedInJ:
LinkedInApiClientFactory factory = LinkedInApiClientFactory.newInstance(getApiKey(), getSecretApiKey());
LinkedInAccessToken accessToken = new LinkedInAccessToken(promotion.getAccessToken(), promotion.getSecretAccessToken());
LinkedInApiClient client = factory.createLinkedInApiClient(accessToken);
client.updateCurrentStatus("my status message");
How to post STATUS UPDATES on LinkedIn via its api?