Skip to content

Open Window Browser

Request method and path

html
POST http://localhost:[post]/openapi/window/browser/open?ticket=[OpenApiToken]

Interface Function Description

Used to open the window browser.

Request parameter

Header Request Data

namevaluerequiredtypeExplanation
Content-Typeapplication/jsonYStringapplication/json

Body Request parameter

Parameter NameRequiredtypeExplanation
arrange_typeNnull || stringWindow arrangement:null: Using user settings on the rendering end,default: System default ,stacking: Stacking 、nineSquareGrid: squared paper for practicing calligraphy
display_screen_idNnumberSpecify monitor ID, -1: indicates using rendering end user settings
interval_timeNnumberThe time interval for batch opening windows is in milliseconds, -1: indicates using the rendering end user settings
open_keysYobjectOpen window information object configuration item view

Detailed explanation of parameters

open_keys Parameter Description

Parameter NameRequiredtypeExplanation
window_browser_keyYstringThe unique identifier of the window browser, which can be queried in Get Window List API

Request parameter example

json
{
  "arrange_type": null,
  "display_screen_id": -1,
  "interval_time": -1,
  "open_keys": [
    {
      "window_browser_key": 1
    },
    {
      "window_browser_key": 2
    },
    {
      "window_browser_key": 3
    },
    {
      "window_browser_key": 113
    }
  ]
}

Example of Interface Response Result

Successful Response Example

json
{
  "code": "00000",
  "message": "Success",
  "data": {
    "status": "success",
    "errorCode": "",
    "errorMsg": "",
    "result": {
      "openStatus": [
        {
          "windowKey": 1,
          "type": "success",
          "reason": "success"
        },
        {
          "windowKey": 2,
          "type": "success",
          "reason": "success"
        },
        {
          "windowKey": 3,
          "type": "success",
          "reason": "success"
        },
        {
          "windowBrowserKey": 311,
          "type": "error",
          "reason": "xxxx(Please refer to the actual usage results for specific content)"
        }
      ],
      "arrangeType": "nineSquareGrid",
      "displayScreen": {
        "id": 1,
        "label": "Built in Retina Display",
        "size": {
          "width": 1512,
          "height": 982
        },
        "workAreaSize": {
          "width": 1512,
          "height": 860
        }
      },
      "intervalTime": 1000
    }
  }
}

Example of failed response



Failed to call interface

When the interface response status code is not '00000', the interface call fails.
The specific interface call Reason for error can be queried by viewing the Interface Response Status Code Information Comparison Table.

json
{
  "code": "00001",
  "message": "Unknown error occurred, please provide feedback to official customer service!",
  "data": {}
}

This modification operation failed

json
{
  "code": "00000",
  "message": "Success",
  "data": {
    "status": "failed",
    "errorCode": "E00",
    "errorMsg": "Parameter format error! | There is a parameter format error in the array!   ",
    "result": {}
  }
}

Operation failure errorCode error code information comparison table

Error codeReason for error
E00Parameter format error! | There is a parameter format error in the array!
E01The parameter cannot be empty.
E02There is a missing parameter xxx in the array
E03There is an extra parameter in the array
E04The window_browser_key of an item in the array must satisfy the following condition: the key must be a positive integer between 1 and 1000
E029The total number of windows that can be opened in bulk at once cannot exceed 24. If you have special needs, please contact official customer service for customization.
E030The total number of open windows cannot exceed 48. If you have special needs, please contact official customer service for customization
E031An exception occurred when opening the window browser in bulk. Please provide feedback to the official customer service personnel!