1, the preface

The RollToolsApi is one of the RollToolsApi interfaces for creating applications, setting custom parameters for applications, and obtaining a list of custom parameters. The feature of this interface is that there is no limit to the number of applications, as long as you think wide enough, this interface can be very useful.

To view complete interface information: www.mxnzp.com/doc/detail?…

RollToolsApi Universal series of interfaces contains many free universal API interfaces, using these interfaces can help you to develop many features rich, stable service small programs, apps or web pages, whether it is a good choice for practice or practice. A list of all interfaces can be found here at www.mxnzp.com/doc/list

2. Interface details

Note: app_id and app_secret are temporary keys. If you really use them, you need to go to www.mxnzp.com to apply for your own private key.

2.1 Creating an Application

  • The interface address: www.mxnzp.com/api/admin/u…

  • Return format: JSON

  • Request mode: GET

  • Sample request: www.mxnzp.com/api/admin/u…

  • Interface Note: A user creates an application to enable online parameter customization.

  • Return example:

    {
        "code": 1."msg": "Data returned successfully"."data": {
            "productId": "50004"."secret": "924d88c474994a8b88f7f62d9bc634b6"."createTime": "The 2019-07-02 18:47:06"."description": "Test Description"."productName": "Test 3 app"."productType": "Web Application"}}Copy the code

2.2 Obtaining the List of Applications created by users

  • The interface address: www.mxnzp.com/api/admin/u…

  • Return format: JSON

  • Request mode: GET

  • Sample request: www.mxnzp.com/api/admin/u…

  • Interface Note: Obtains the list of all applications created by a user.

  • Return example:

    {
        "code": 1."msg": "Data returned successfully"."data": [{"productId": "50000"."secret": "7f4470ffaaf84613928ccb73d9491950"."createTime": "The 2019-07-02 14:49:40"."description": "Test Description"."productName": "The test app"."productType": "Mobile Applications"},... Only one piece of data is shown here... ] }Copy the code

2.3 Setting Online Parameters for an Application

  • Interface address: www.mxnzp.com/api/remote_…

  • Return format: JSON

  • Request mode: POST

  • Request example: www.mxnzp.com/api/remote_…

  • Interface Note: Set online parameters for the specified application.

  • Return example:

    {
        "code": 0."msg": "Configuration setup successful"."data": null
    }
    Copy the code

2.4 Obtaining Online Parameters of a specified application

  • Interface address: www.mxnzp.com/api/remote_…

  • Return format: JSON

  • Request mode: GET

  • Request example: www.mxnzp.com/api/remote_…

  • Interface Note: Obtains online parameters of the specified application.

  • Return example:

    {
        "code": 1."msg": "Data returned successfully"."data": {
            "productId": 50000."productConfig": "{"isShow":true}"."updateTime": 1562054944000}}Copy the code