I'm trying to get an access token for LinkedIn. Here is part of the code,
OAuthService service = new ServiceBuilder().provider(LinkedInApi.class).apiKey("My_Api_Key").apiSecret("My_secret_key").build(); System.out.println("LinkedIn Service created"); Token token = service.getRequestToken(); System.out.println("Got Request token"); System.out.println(service.getAuthorizationUrl(token)); //https://api.linkedin.com/uas/oauth/authorize?oauth_token=some_value Verifier verifier = new Verifier("verifier_you_got_previously");
I can get the request token and authorization URL https://api.linkedin.com/uas/oauth/authorize?oauth_token=some_value To get the Verifier object, I need to pass the value of the verifier to the constructor. How to get this value? This is an oob request, so the service does not require a callback. What should I do with Url authorization to get oauth_verifier ?
source share