com.github.scribejava.apis.Foursquare2Api 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;
public class Foursquare2Api extends DefaultApi20 {
protected Foursquare2Api() {
}
private static class InstanceHolder {
private static final Foursquare2Api INSTANCE = new Foursquare2Api();
}
public static Foursquare2Api instance() {
return InstanceHolder.INSTANCE;
}
@Override
public Verb getAccessTokenVerb() {
return Verb.GET;
}
@Override
public String getAccessTokenEndpoint() {
return "https://foursquare.com/oauth2/access_token";
}
@Override
protected String getAuthorizationBaseUrl() {
return "https://foursquare.com/oauth2/authenticate";
}
@Override
public OAuth2SignatureType getSignatureType() {
return OAuth2SignatureType.BEARER_URI_QUERY_PARAMETER;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy