Wi-Fi wireless network QR code generation API interface

Wi-Fi wireless network QR code generation API interface

Wi-Fi wireless network QR code generation interface.

gugudata_api_cover

1. Product function

  • Compatible with multiple wireless network protocols;
  • Support whether to hide Wi-Fi SSID;
  • Support whether to add a Wi-Fi icon in the middle of the QR code, which is more beautiful;
  • Customize the size of the QR code;
  • Full interface supports HTTPS (TLS v1.0 / v1.1 / v1.2 / v1.3);
  • Fully compatible with Apple ATS;
  • National multi-node CDN deployment;
  • The interface responds quickly, and multiple servers build API interface load balancing.

2. API documentation

API details address: https://www.gugudata.com/api/details/wifiqrcode

Interface request address: https://api.gugudata.com/barcode/wifiqrcode

Return format: application/json; charset=utf-8

Request method: GET

Request protocol: HTTPS

请求示例: https://api.gugudata.com/barcode/wifiqrcode?appkey=YOUR_APPKEY
&ssid=YOUR_VALUE
&password=YOUR_VALUE
&authentication=YOUR_VALUE
&isHiddenSSID=YOUR_VALUE
&isShowWifiIcon=YOUR_VALUE
&size=500

Interface test: https://api.gugudata.com/barcode/wifiqrcode/demo

3. Request parameters (if it is a POST request, the parameters are passed in JSON format)

parameter name Parameter Type Do you have to Defaults Remarks
appkey string Yes YOUR_APPKEY APPKEY obtained after payment
ssid string Yes YOUR_VALUE Wireless network ssid
password string Yes YOUR_VALUE Wireless network password
authentication string Yes YOUR_VALUE Wireless network encryption type, optional WEP, WPA, NOPASS
isHiddenSSID string Yes YOUR_VALUE Whether to hide the SSID, optional values ​​are true, false
isShowWifiIcon string Yes YOUR_VALUE Whether to add a Wi-Fi icon in the middle of the QR code, the optional values ​​are true and false
size int no 500 Positive integer, the size of the QR code in pixels, the default is 500 pixels

4. Return parameters

parameter name Parameter Type Remarks
DataStatus.StatusCode int Interface return status code
DataStatus.StatusDescription string Interface return status description
DataStatus.ResponseDateTime string Interface data return time
DataStatus.DataTotalCount int The total amount of data under this condition, generally used for paging calculations
Data.Content string Wi-Fi SSID
Data.Url string CDN URL path of the generated QR code

5. Interface response status code

error code Error content Remarks
100 Normal return
101 Parameter error
102 Limited request frequency No more than 100 requests per second
103 Account arrears
104 APPKEY error Please check whether the passed APPKEY is the value obtained by the developer center
110 Interface response error

6. Develop sample code for language request

Development languages ​​included in the sample code: C#, Go, Java, jQuery, Node.js, Objective-C, PHP, Python, Ruby, Swift, etc. Other languages ​​can be implemented by corresponding RESTful API requests.

Sample code screenshot

Cuckoo Data, a professional data provider, provides professional and comprehensive data interfaces and business data analysis, making data your raw materials for production.

image-20200716141435988

Cuckoo Data is based on the massive data support we have provided for corporate customers over the past five years. It abstracts some general data and general functions into product-level APIs, which greatly meets the user’s needs for basic data in the product development process and reduces the cost of complex functions. Realize the threshold and labor cost.

In addition to the classified data and interfaces that we have opened, there is also a huge amount of data that is being sorted, cleaned, integrated, and constructed. Later, more data and cloud functional interfaces will be opened for users to use.

Currently open data interface API

Guess you like

Origin blog.csdn.net/wulimaan/article/details/114118884