May 20, 2021 WeChat Mini Program Development Document
This document describes messages or events received on the server side, see Message Push for details.
Use the authorization code to pull authorization information
Property | Type | Description |
---|---|---|
ToUserName | string | Express company small program UserName |
FromUserName | string | WeChat team's OpenID (fixed value) |
CreateTime | number | Event time, Unix timestamp |
MsgType | string | Message type, pinned to event |
Event | string | The event type, fixed to get_auth_info, is case insensescies |
wx_appid | string | Launch an authorized merchant applet appid |
code | string | Authorization code |
Property | Type | The default | Required | Description |
---|---|---|---|---|
ToUserName | string | Is | Return as is fromUserName in the request | |
FromUserName | string | Is | Express company small program UserName | |
CreateTime | number | Is | Event time, Unix timestamp | |
MsgType | string | Is | Message type, pinned to event | |
Event | string | Is | The event type, fixed to get_auth_info, is case insensescies | |
resultcode | number | Is | Error code | |
resultmsg | string | Is | The error description | |
appkey | string | Is | The appkey assigned by the distribution company corresponds to the shopid | |
account | string | Is | The name of the account | |
account_type | number | Is | Account type: 0.Indeterminate, 1. Pre-recharged, 2, Monthly Close, 3, Others |