WechatExtension class

The extension class for wechat_kit.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getAccessToken({required String appId, required String appSecret}) Future<WechatAccessTokenResp>
///////////////////////////////////////////////////////////////////////////// //////////////////////////// 微信 APP 扫码登录 //////////////////////////////// ///////////////////////////////////////////////////////////////////////////// 获取 access_token
getAccessTokenUnionID({required String appId, required String appSecret, required String code}) Future<WechatAccessTokenResp>
///////////////////////////////////////////////////////////////////////////// //////////////////////////// 微信 APP 授权登录 //////////////////////////////// ///////////////////////////////////////////////////////////////////////////// 获取 access_token(UnionID)
getTicket({required String accessToken}) Future<WechatTicketResp>
用上面的函数拿到的 access_token,获取 sdk_ticket
getUserInfoUnionID({required String openId, required String accessToken}) Future<WechatUserInfoResp>
获取用户个人信息(UnionID)
refreshAccessTokenUnionID({required String appId, required String refreshToken}) Future<WechatAccessTokenResp>
刷新或续期 access_token 使用(UnionID)