public class WxOpenOAuth2ServiceImpl extends WxOpenServiceImpl implements WxOAuth2Service
构造器和说明 |
---|
WxOpenOAuth2ServiceImpl(String appId,
String appSecret,
WxOpenConfigStorage openConfigStorage) |
限定符和类型 | 方法和说明 |
---|---|
String |
buildAuthorizationUrl(String redirectUri,
String scope,
String state) |
WxOAuth2AccessToken |
getAccessToken(String code) |
WxOAuth2AccessToken |
getAccessToken(String appId,
String appSecret,
String code) |
WxOAuth2UserInfo |
getUserInfo(WxOAuth2AccessToken token,
String lang) |
WxOAuth2AccessToken |
refreshAccessToken(String refreshToken) |
boolean |
validateAccessToken(WxOAuth2AccessToken token) |
get, getRequestHttpClient, getRequestHttpProxy, getRequestType, initHttp, post, uploadMinishopMediaFile
execute, getWxOpenComponentService, getWxOpenConfigStorage, setWxOpenConfigStorage
public WxOpenOAuth2ServiceImpl(String appId, String appSecret, WxOpenConfigStorage openConfigStorage)
public String buildAuthorizationUrl(String redirectUri, String scope, String state)
buildAuthorizationUrl
在接口中 WxOAuth2Service
public WxOAuth2AccessToken getAccessToken(String code) throws WxErrorException
getAccessToken
在接口中 WxOAuth2Service
WxErrorException
public WxOAuth2AccessToken getAccessToken(String appId, String appSecret, String code) throws WxErrorException
getAccessToken
在接口中 WxOAuth2Service
WxErrorException
public WxOAuth2AccessToken refreshAccessToken(String refreshToken) throws WxErrorException
refreshAccessToken
在接口中 WxOAuth2Service
WxErrorException
public WxOAuth2UserInfo getUserInfo(WxOAuth2AccessToken token, String lang) throws WxErrorException
getUserInfo
在接口中 WxOAuth2Service
WxErrorException
public boolean validateAccessToken(WxOAuth2AccessToken token)
validateAccessToken
在接口中 WxOAuth2Service
Copyright © 2024. All rights reserved.