public class WxOpenMpOAuth2ServiceImpl extends WxOAuth2ServiceDecorator
| 构造器和说明 |
|---|
WxOpenMpOAuth2ServiceImpl(WxOpenComponentService wxOpenComponentService,
WxOAuth2Service wxOAuth2Service,
WxMpConfigStorage wxMpConfigStorage) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildAuthorizationUrl(String redirectUri,
String scope,
String state) |
WxOAuth2AccessToken |
getAccessToken(String code)
第三方平台代公众号发起网页授权
文档地址:第三方平台代公众号发起网页授权
|
getAccessToken, getUserInfo, refreshAccessToken, validateAccessTokenpublic WxOpenMpOAuth2ServiceImpl(WxOpenComponentService wxOpenComponentService, WxOAuth2Service wxOAuth2Service, WxMpConfigStorage wxMpConfigStorage)
public WxOAuth2AccessToken getAccessToken(String code) throws WxErrorException
getAccessToken 在接口中 WxOAuth2ServicegetAccessToken 在类中 WxOAuth2ServiceDecoratorcode - 微信授权codeWxErrorException - 如果微信接口调用失败将抛出此异常public String buildAuthorizationUrl(String redirectUri, String scope, String state)
buildAuthorizationUrl 在接口中 WxOAuth2ServicebuildAuthorizationUrl 在类中 WxOAuth2ServiceDecoratorCopyright © 2024. All rights reserved.