public abstract class OAuthService extends Object implements Closeable
| Constructor and Description |
|---|
OAuthService(String apiKey,
String apiSecret,
String callback,
String scope,
String userAgent,
HttpClientConfig httpClientConfig,
HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Response |
execute(OAuthRequest request) |
<R> Future<R> |
execute(OAuthRequest request,
OAuthAsyncRequestCallback<R> callback,
OAuthRequest.ResponseConverter<R> converter) |
Future<Response> |
execute(OAuthRequest request,
OAuthAsyncRequestCallback<Response> callback) |
Future<Response> |
executeAsync(OAuthRequest request) |
String |
getApiKey() |
String |
getApiSecret() |
String |
getCallback() |
String |
getScope() |
abstract String |
getVersion()
Returns the OAuth version of the service.
|
public OAuthService(String apiKey, String apiSecret, String callback, String scope, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getApiKey()
public String getApiSecret()
public String getCallback()
public String getScope()
public abstract String getVersion()
public Future<Response> executeAsync(OAuthRequest request)
public Future<Response> execute(OAuthRequest request, OAuthAsyncRequestCallback<Response> callback)
public <R> Future<R> execute(OAuthRequest request, OAuthAsyncRequestCallback<R> callback, OAuthRequest.ResponseConverter<R> converter)
public Response execute(OAuthRequest request) throws InterruptedException, ExecutionException, IOException
Copyright © 2018. All rights reserved.