Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package ru.hh.oauth.subscribe.apis;
 
OAuth API for Skyrock.

Author(s):
Nicolas QuiƩnot
See also:
Skyrock.com API
public class SkyrockApi extends DefaultApi10a {
    private static final String API_ENDPOINT = "https://api.skyrock.com/v2";
    private static final String REQUEST_TOKEN_RESOURCE = "/oauth/initiate";
    private static final String AUTHORIZE_URL = "/oauth/authorize?oauth_token=%s";
    private static final String ACCESS_TOKEN_RESOURCE = "/oauth/token";
    @Override
    public String getAccessTokenEndpoint() {
        return  + ;
    }
    @Override
    public String getRequestTokenEndpoint() {
        return  + ;
    }
    @Override
    public String getAuthorizationUrl(Token requestToken) {
        return String.format( + requestToken.getToken());
    }
New to GrepCode? Check out our FAQ X