Uses of Class
com.foxinmy.weixin4j.mp.model.OauthToken
-
Packages that use OauthToken Package Description com.foxinmy.weixin4j.mp.api -
-
Uses of OauthToken in com.foxinmy.weixin4j.mp.api
Methods in com.foxinmy.weixin4j.mp.api that return OauthToken Modifier and Type Method Description OauthToken
ComponentApi. getAuthorizationToken(String authAppId, String code)
第三方组件代替授权公众号发起网页授权:换取tokenOauthToken
OauthApi. getAuthorizationToken(String code)
公众号网页获取用户资料oauth授权:code换取tokenOauthToken
ComponentApi. refreshAuthorizationToken(String authAppId, String refreshToken)
第三方组件代替授权公众号发起网页授权:刷新tokenOauthToken
OauthApi. refreshAuthorizationToken(String refreshToken)
公众号网页获取用户资料oauth授权:刷新token,由于access_token拥有较短的有效期,当access_token超时后, 可以使用refresh_token进行刷新, refresh_token有效期为30天,当refresh_token失效之后,需要用户重新授权。Methods in com.foxinmy.weixin4j.mp.api with parameters of type OauthToken Modifier and Type Method Description User
OauthApi. getAuthorizationUser(OauthToken token)
oauth授权获取用户信息(需scope为 snsapi_userinfo)
-