Configure WeChat WiFi networking method


Get the material QR code


## FieldDescriptionqrcode_urlQR code image url


#After adding equipment, materials can be obtained through this interface, including QR codes and table stickers. The materials are laid out in offline stores so that users can scan the QR code and go online.

Note: Only when Wi-Fi network information has been added to the store, this interface can be called to obtain the QR code. For the adding method, please refer to the "Add Password Device" and "Add Portal Device" interface documents.

Interface call description

协议:https
http请求方式: POST
请求URL:https://api.weixin.qq.com/bizwifi/qrcode/get?access_token=ACCESS_TOKEN
POST数据格式:JSON

Request parameter description

Parameter Is it necessaryDescription
access_tokenYesCall interface credentials
POST data is JSON data

POST data

Data example:

{
  "shop_id": 429620,
  "ssid":"WX567",
  "img_id": 1
}

Field description:

FieldRequiredDescription
shop_id isStore 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 necessaryDescription
access_tokenYesCall interface credentials


Return data description

Correctly returned JSON data example:

{
  "errcode": 0,
  "data": {
    "connect_url": ""
  }
}

Field description:

##connect_urlThe URL of the public account connected to the Internet
FieldDescription

bright: