Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package ru.hh.oauth.subscribe.apis;
 
 
 public class NeteaseWeibooApi extends DefaultApi10a {
 
     private static final String REQUEST_TOKEN_URL = "http://api.t.163.com/oauth/request_token";
     private static final String ACCESS_TOKEN_URL = "http://api.t.163.com/oauth/access_token";
    private static final String AUTHORIZE_URL = "http://api.t.163.com/oauth/authorize?oauth_token=%s";
    private static final String AUTHENTICATE_URL = "http://api.t.163.com/oauth/authenticate?oauth_token=%s";
    @Override
    public String getRequestTokenEndpoint() {
        return ;
    }
    @Override
    public String getAccessTokenEndpoint() {
        return ;
    }
    @Override
    
this method will ignore your callback if you're creating a desktop client please choose this url else your can call getAuthenticateUrl via http://open.t.163.com/wiki/index.php?title=%E8%AF%B7%E6%B1%82%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83Token(oauth/authorize)
    public String getAuthorizationUrl(final Token requestToken) {
        return String.format(requestToken.getToken());
    }

    
this method is for web client with callback url if you're creating a desktop client please call getAuthorizationUrl via http://open.t.163.com/wiki/index.php?title=%E8%AF%B7%E6%B1%82%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83Token(oauth/authenticate)

Parameters:
requestToken Token
Returns:
String
    public String getAuthenticateUrl(final Token requestToken) {
        return String.format(requestToken.getToken());
    }
New to GrepCode? Check out our FAQ X