0
//Linkedin API 
 public AuthHandler(OAuthService serviceProvider)
 {
Scanner in = new Scanner(System.in);
Token requestToken = serviceProvider.getRequestToken();
System.out.println(serviceProvider.getAuthorizationUrl(requestToken));
System.out.println("And paste the verifier here");
System.out.print(">>");
Verifier verifier = new Verifier(in.nextLine()); //no errors in the code
accessToken = serviceProvider.getAccessToken(requestToken, verifier);
}

// Here iam requesting the accesstoken // I got the url

4

1 回答 1

1

我认为指定回调 url 选项可以做到这一点,并且复制粘贴代码是用于桌面应用程序而不是 Web 应用程序的 oauth 集成

于 2012-05-04T09:00:33.987 回答