com.github.scribejava.apis.KaixinApi20 Maven / Gradle / Ivy
package com.github.scribejava.apis;
import com.github.scribejava.core.builder.api.DefaultApi20;
import com.github.scribejava.core.builder.api.OAuth2SignatureType;
import com.github.scribejava.core.model.Verb;
/**
* Kaixin(http://www.kaixin001.com/) open platform api based on OAuth 2.0.
*/
public class KaixinApi20 extends DefaultApi20 {
protected KaixinApi20() {
}
private static class InstanceHolder {
private static final KaixinApi20 INSTANCE = new KaixinApi20();
}
public static KaixinApi20 instance() {
return InstanceHolder.INSTANCE;
}
@Override
public Verb getAccessTokenVerb() {
return Verb.GET;
}
@Override
public String getAccessTokenEndpoint() {
return "https://api.kaixin001.com/oauth2/access_token";
}
@Override
protected String getAuthorizationBaseUrl() {
return "http://api.kaixin001.com/oauth2/authorize";
}
@Override
public OAuth2SignatureType getSignatureType() {
return OAuth2SignatureType.BEARER_URI_QUERY_PARAMETER;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy