Configure WeChat WiFi networking method
Get the material QR code
Description | ||
---|---|---|
QR code image url |
Parameter | Is it necessary | Description |
---|---|---|
access_token | Yes | Call interface credentials |
POST data | is | JSON data |
POST data
Data example:
{ "shop_id": 429620, "ssid":"WX567", "img_id": 1 }
Field description:
Field | Required | Description |
---|---|---|
shop_id | is | Store ID |
ssid | is | The wireless network name that has been added to the store |
img_id | is | Material style number: 0-Pure QR code, can be used to freely design promotional materials; 1-QR code material, 155mm×215mm (width×height), can be posted directly |
Material style:
(1) Schematic diagram-pure QR code (img_id = 0)
(2) Schematic diagram-QR code material (img_id = 1)
Return data description
Correctly return JSON data example:
{ "errcode": 0, "data": { "qrcode_url": "" } }
Field description
Get the official account connection URL
Configure this URL on the public account menu, allowing users to click on the menu to connect to the Internet with one click. It can only be obtained when the official account is a certified account and all devices in the store are password-based devices.
Interface call description
协议:https http请求方式: GET 请求URL:https://api.weixin.qq.com/bizwifi/account/get_connecturl?access_token=ACCESS_TOKEN POST数据格式:JSON
Request parameter description
Parameter | Is it necessary | Description |
---|---|---|
access_token | Yes | Call interface credentials |
Return data description
Correctly returned JSON data example:
{ "errcode": 0, "data": { "connect_url": "" } }
Field description:
Field | Description |
---|---|
The URL of the public account connected to the Internet |