Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package ru.hh.oauth.subscribe.apis;
 
 
 public class GoogleApi extends DefaultApi10a {
 
     private static final String AUTHORIZATION_URL = "https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=%s";
    @Override
    public String getAccessTokenEndpoint() {
        return "https://www.google.com/accounts/OAuthGetAccessToken";
    }
    @Override
    public String getRequestTokenEndpoint() {
        return "https://www.google.com/accounts/OAuthGetRequestToken";
    }
    @Override
    public Verb getAccessTokenVerb() {
        return .;
    }
    @Override
    public Verb getRequestTokenVerb() {
        return .;
    }
    @Override
    public String getAuthorizationUrl(Token requestToken) {
        return String.format(requestToken.getToken());
    }
New to GrepCode? Check out our FAQ X