This API is used to get materials after a device is added, including the QR code and stickers. These materials can be posted in the offline stores for users to scan and connect to the Wi-Fi network.
Note: To call this API to get the QR code, you must add the Wi-Fi network information under a store. For details, see "Adding Password-Based Device" and "Adding Portal-Based Device".
API Request Format
Protocol: HTTPS
HTTP request method: POST
Request URL: https://api.weixin.qq.com/bizwifi/qrcode/get?access_token=ACCESS_TOKEN
POST data format: JSON
Request Parameters
Parameter | Required | Description |
---|---|---|
access_token | Yes | The credential for calling the API |
POST data | Yes | JSON data |
POST Data
Example:
{
"shop_id": 429620,
"ssid":"WX567",
"img_id": 1
}
Fields:
Field | Required | Description |
---|---|---|
shop_id | Yes | Store ID |
ssid | Yes | The name of the Wi-Fi network added to the store |
img_id | Yes | Material style number. 0: QR code used for the design of promotional materials; 1: QR code material (H 155mm × W 215mm) that can be directly posted. |
Material styles:
(1) Example - QR code (img_id = 0)
(2) Example - QR code material (img_id = 1)
Response
The JSON data returned for a successful request:
{
"errcode": 0,
"data": {
"qrcode_url": ""
}
}
Fields:
Field | Description |
---|---|
qrcode_url | URL of the QR code image |