final LinkedInOAuthService oauthService = LinkedInOAuthServiceFactory.getInstance().createLinkedInOAuthService(consumerKeyValue, consumerSecretValue);
LinkedInRequestToken requestToken = oauthService.getOAuthRequestToken();
I am using LinkedApi library,Yesterday this code was working but today I don’t know why,but its giving exception
LinkedInRequestToken requestToken = oauthService.getOAuthRequestToken();
Its giving :
com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceException: oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: https://api.linkedin.com/uas/oauth/requestToken
–Solved–
I am posting code so all my friends need not to struggle
Step 1)Get pin by using API
Step 2)webview will show pin after login to linked in now use your pin to got access token and using access token you can get profile and update status