com.github.scribejava.apis.DoktornaraboteApi Maven / Gradle / Ivy
package com.github.scribejava.apis;
import com.github.scribejava.apis.service.DoktornaraboteOAuthServiceImpl;
import com.github.scribejava.core.builder.api.DefaultApi20;
import com.github.scribejava.core.model.OAuthConfig;
import com.github.scribejava.core.oauth.OAuth20Service;
public class DoktornaraboteApi extends DefaultApi20 {
protected DoktornaraboteApi() {
}
private static class InstanceHolder {
private static final DoktornaraboteApi INSTANCE = new DoktornaraboteApi();
}
public static DoktornaraboteApi instance() {
return InstanceHolder.INSTANCE;
}
@Override
public String getAccessTokenEndpoint() {
return "http://auth.doktornarabote.ru/OAuth/Token";
}
@Override
protected String getAuthorizationBaseUrl() {
return "http://auth.doktornarabote.ru/OAuth/Authorize";
}
@Override
public OAuth20Service createService(OAuthConfig config) {
return new DoktornaraboteOAuthServiceImpl(this, config);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy