search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Activate WeChat Wi-Fi plug-in

Open WeChat Wi-Fi plug-in

Open the WeChat Wi-Fi plug-in

Call all other WeChat Wi-Fi interfaces The premise is that the "WeChat Connect to Wi-Fi" function plug-in has been activated. There are currently two ways to activate the plug-in: 1) Add the "WeChat Connect to Wi-Fi" function plug-in through page operations in WeChat Public Platform; 2) Call this interface to activate the plug-in.

Note: Opening the plug-in interface only supports third-party platform calls for public accounts. Developers of public accounts should open it by themselves on WeChat public platform. For third-party platform access, please refer to WeChat Open Platform.

Activation process of plug-in


Detailed description of the process

1. The user enters the third-party platform website and authorizes login

Users need to first enter the third-party platform website, such as www.ABC.com. The third-party platform guides users to perform authorized login operations on WeChat official accounts.

2. The third-party platform obtains the plug-in wifi_token

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

Request parameter description

##

POST data

Data example:

{
   "callback_url": "http://weixin.qq.com/"
}

Field description:

ParameterIs it requiredDescription
access_tokenYesCall interface credentials
POST data isJSON data
FieldRequiredDescription
callback_url is the callback URL, the jump page after the plug-in is successfully activated. Note: The domain name of this parameter must be consistent with the domain name of the page that jumps to the plug-in activation page. It is recommended to use the third-party platform domain name.

Return data description Correctly return JSON data example:

{
  "errcode": 0,
  "data": {
     "is_open": true,
     "wifi_token": ""
  }
}

Field description:

Field Description
is_openWhether the WeChat Wi-Fi plug-in has been activated for the official account, true-has been activated, false-has not been activated
wifi_tokenCertificate for opening the plug-in, the value is returned only when is_open is false

3. Guide users to the plug-in activation page

Third-party platforms can place “Activate WeChat Wi-Fi” on their web pages -Fi Plug-in" entrance, which guides users to the page for activating plug-ins. It is recommended that third-party platforms use the "open in current page" format to open the plug-in activation page.

The URL is: https://wifi.weixin.qq.com/biz/mp/thirdProviderPlugin.xhtml?token=xxxx. The third-party platform in this URL needs to provide the obtained wifi_token.

4. The user fills in the information and activates the plug-in

The user fills in the relevant information on the plug-in activation page and completes the plug-in activation operate.

5. Jump callback_url

After the user successfully activates the plug-in, the web page will automatically jump to the third-party platform to call "Get Complete the plug-in activation process in the callback_url provided when "activating the plug-in wifi_token" interface. The third-party platform can then call other interfaces to provide users with WeChat-connected Wi-Fi services.

Hot AI Tools
Undress AI Tool
Undress AI Tool

Undress images for free

AI Clothes Remover
AI Clothes Remover

Online AI tool for removing clothes from photos.

Undresser.AI Undress
Undresser.AI Undress

AI-powered app for creating realistic nude photos

ArtGPT
ArtGPT

AI image generator for creative art from text prompts.

Stock Market GPT
Stock Market GPT

AI powered investment research for smarter decisions

Popular tool
Notepad++7.3.1
Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version
SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1
Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6
Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version
SublimeText3 Mac version

God-level code editing software (SublimeText3)