Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Author(s):
Arieh "Vainolo" Bibliowicz
See also:
http://apidocs.mendeley.com/home/authentication
public class MendeleyApi extends DefaultApi10a {
    private static final String AUTHORIZATION_URL = "http://api.mendeley.com/oauth/authorize?oauth_token=%s";
    @Override
    public String getRequestTokenEndpoint() {
        return "http://api.mendeley.com/oauth/request_token/";
    }
    @Override
    public String getAccessTokenEndpoint() {
        return "http://api.mendeley.com/oauth/access_token/";
    }
    @Override
    public String getAuthorizationUrl(final Token requestToken) {
        return String.format(requestToken.getToken());
    }
    @Override
    public Verb getAccessTokenVerb() {
        return .;
    }
    @Override
    public Verb getRequestTokenVerb() {
        return .;
    }
New to GrepCode? Check out our FAQ X