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 OauthTokenComponentApi. getAuthorizationToken(String authAppId, String code)第三方组件代替授权公众号发起网页授权:换取tokenOauthTokenOauthApi. getAuthorizationToken(String code)公众号网页获取用户资料oauth授权:code换取tokenOauthTokenComponentApi. refreshAuthorizationToken(String authAppId, String refreshToken)第三方组件代替授权公众号发起网页授权:刷新tokenOauthTokenOauthApi. 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 UserOauthApi. getAuthorizationUser(OauthToken token)oauth授权获取用户信息(需scope为 snsapi_userinfo)
-