com.firefly.wechat.service.WechatAuthService Maven / Gradle / Ivy
package com.firefly.wechat.service;
import com.firefly.wechat.model.ErrorResponse;
import com.firefly.wechat.model.auth.*;
import java.util.concurrent.CompletableFuture;
/**
* @author Pengtao Qiu
*/
public interface WechatAuthService {
CompletableFuture getAccessToken(AccessTokenRequest request);
CompletableFuture refreshToken(RefreshTokenRequest request);
CompletableFuture verifyToken(VerifyTokenRequest request);
CompletableFuture getUserInfo(WechatUserInfoRequest request);
CompletableFuture getClientAccessToken(ClientAccessTokenRequest request);
CompletableFuture getJsApiTicket(String accessToken);
JsConfigResponse getJsConfig(JsConfigRequest request);
/**
* Get the wechat API access token
*
* @param request The access token request
* @return The wechat API access token
*/
CompletableFuture getApiAccessToken(ApiAccessTokenRequest request);
String buildAuthorizedUrl(AuthorizedUrlRequest request);
}