com.github.scribejava.apis.SinaWeiboApi20 Maven / Gradle / Ivy
package com.github.scribejava.apis;
import com.github.scribejava.core.builder.api.DefaultApi20;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignature;
import com.github.scribejava.core.oauth2.bearersignature.BearerSignatureURIQueryParameter;
/**
* SinaWeibo OAuth 2.0 api.
*/
public class SinaWeiboApi20 extends DefaultApi20 {
protected SinaWeiboApi20() {
}
private static class InstanceHolder {
private static final SinaWeiboApi20 INSTANCE = new SinaWeiboApi20();
}
public static SinaWeiboApi20 instance() {
return InstanceHolder.INSTANCE;
}
@Override
public String getAccessTokenEndpoint() {
return "https://api.weibo.com/oauth2/access_token";
}
@Override
protected String getAuthorizationBaseUrl() {
return "https://api.weibo.com/oauth2/authorize";
}
@Override
public BearerSignature getBearerSignature() {
return BearerSignatureURIQueryParameter.instance();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy