com.github.scribejava.apis.HHApi Maven / Gradle / Ivy
package com.github.scribejava.apis;
import com.github.scribejava.core.builder.api.ClientAuthenticationType;
import com.github.scribejava.core.builder.api.DefaultApi20;
public class HHApi extends DefaultApi20 {
protected HHApi() {
}
private static class InstanceHolder {
private static final HHApi INSTANCE = new HHApi();
}
public static HHApi instance() {
return InstanceHolder.INSTANCE;
}
@Override
public String getAccessTokenEndpoint() {
return "https://hh.ru/oauth/token";
}
@Override
protected String getAuthorizationBaseUrl() {
return "https://hh.ru/oauth/authorize";
}
@Override
public ClientAuthenticationType getClientAuthenticationType() {
return ClientAuthenticationType.REQUEST_BODY;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy