com.github.scribejava.apis.MisfitApi 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;
public class MisfitApi extends DefaultApi20 {
protected MisfitApi() {
}
private static class InstanceHolder {
private static final MisfitApi INSTANCE = new MisfitApi();
}
public static MisfitApi instance() {
return InstanceHolder.INSTANCE;
}
@Override
public String getAccessTokenEndpoint() {
return "https://api.misfitwearables.com/auth/tokens/exchange";
}
@Override
protected String getAuthorizationBaseUrl() {
return "https://api.misfitwearables.com/auth/dialog/authorize";
}
@Override
public BearerSignature getBearerSignature() {
return BearerSignatureURIQueryParameter.instance();
}
}