Universal QR code generation API interface

Universal QR code generation API interface

Provide a universal QR code generation interface.

gugudata_api_cover

1. Product function

  • Support classification character generation;
  • Directly return to the QR code link stored in the CDN, which can be used directly;
  • Directly identify the content of the website, generate a QR code of the website type, and then jump directly after scanning;
  • 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/qrcode

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

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

Request method: GET

Request protocol: HTTPS

Request example: https://api.gugudata.com/barcode/qrcode?appkey=YOUR_APPKEY&content=YOUR_VALUE&size=500

Interface test: https://api.gugudata.com/barcode/qrcode/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
content string Yes YOUR_VALUE QR code content, intelligent identification of URL type
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 QR code content
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/114118748