Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package ru.hh.oauth.subscribe.apis;
 

Author(s):
Julio Gutierrez Sep 6, 2012
public class UbuntuOneApi extends DefaultApi10a {
    private static final String AUTHORIZATION_URL = "https://one.ubuntu.com/oauth/authorize/?oauth_token=%s";
    @Override
    public String getAccessTokenEndpoint() {
        return "https://one.ubuntu.com/oauth/access/";
    }
    @Override
    public String getAuthorizationUrl(Token requestToken) {
        return String.format(requestToken.getToken());
    }
    @Override
    public String getRequestTokenEndpoint() {
        return "https://one.ubuntu.com/oauth/request/";
    }
    @Override
        return new PlaintextSignatureService();
    }
New to GrepCode? Check out our FAQ X