public class WechatService
extends com.github.scribejava.core.oauth.OAuth20Service
| Constructor and Description |
|---|
WechatService(com.github.scribejava.core.builder.api.DefaultApi20 api,
java.lang.String apiKey,
java.lang.String apiSecret,
java.lang.String callback,
java.lang.String scope,
java.lang.String state,
java.lang.String responseType,
java.lang.String userAgent,
com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig,
com.github.scribejava.core.httpclient.HttpClient httpClient)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.github.scribejava.core.model.Response |
execute(com.github.scribejava.core.model.OAuthRequest request) |
<R> java.util.concurrent.Future<R> |
execute(com.github.scribejava.core.model.OAuthRequest request,
com.github.scribejava.core.model.OAuthAsyncRequestCallback<R> callback,
com.github.scribejava.core.model.OAuthRequest.ResponseConverter<R> converter) |
createAccessTokenClientCredentialsGrantRequest, createAccessTokenPasswordGrantRequest, createAccessTokenRequest, createAccessTokenRequest, createRefreshTokenRequest, createRevokeTokenRequest, extractAuthorization, getAccessToken, getAccessToken, getAccessToken, getAccessToken, getAccessTokenAsync, getAccessTokenAsync, getAccessTokenClientCredentialsGrant, getAccessTokenClientCredentialsGrant, getAccessTokenClientCredentialsGrantAsync, getAccessTokenPasswordGrant, getAccessTokenPasswordGrantAsync, getAccessTokenPasswordGrantAsync, getApi, getAuthorizationUrl, getAuthorizationUrl, getAuthorizationUrl, getAuthorizationUrl, getAuthorizationUrlWithPKCE, getAuthorizationUrlWithPKCE, getResponseType, getState, getVersion, refreshAccessToken, refreshAccessToken, refreshAccessTokenAsync, revokeToken, revokeToken, revokeToken, revokeToken, revokeTokenAsync, revokeTokenAsync, sendAccessTokenRequestAsync, sendAccessTokenRequestAsync, sendAccessTokenRequestSync, signRequest, signRequestpublic WechatService(com.github.scribejava.core.builder.api.DefaultApi20 api,
java.lang.String apiKey,
java.lang.String apiSecret,
java.lang.String callback,
java.lang.String scope,
java.lang.String state,
java.lang.String responseType,
java.lang.String userAgent,
com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig,
com.github.scribejava.core.httpclient.HttpClient httpClient)
api - OAuth2.0 api informationapiKey - the API keyapiSecret - the API secretcallback - the callback URLscope - the scopestate - the stateresponseType - the response typeuserAgent - the user agenthttpClientConfig - the HTTP client configurationhttpClient - the HTTP clientpublic <R> java.util.concurrent.Future<R> execute(com.github.scribejava.core.model.OAuthRequest request,
com.github.scribejava.core.model.OAuthAsyncRequestCallback<R> callback,
com.github.scribejava.core.model.OAuthRequest.ResponseConverter<R> converter)
execute in class com.github.scribejava.core.oauth.OAuthServicepublic com.github.scribejava.core.model.Response execute(com.github.scribejava.core.model.OAuthRequest request)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.io.IOException
execute in class com.github.scribejava.core.oauth.OAuthServicejava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionCopyright © 2019. All Rights Reserved.