Skip to main content

Web Tools

tip

If you do not want to use web tools, you can use the EC iOS standalone edition open API directly for clipboard read/write, photo album operations, opening URLs, and other functions. See: /iostjdocs/advance/openapi

Usage

Open the web page URL in the iOS browser to use the features normally.

!!! Extra features — read the docs and test yourself !!!

Deployment

LAN Deployment

  • The bridge bundled with the control center starts automatically. Tool URL: [http://bridge-PC-IP:port/tools?deviceId=aaa]
  • Example: http://192.168.1.200:8020/tools?deviceId=aaa Preview (different button colors for easier color finding):
image-20220711100908095

Server Deployment Mode

  • Download ios-bridge-linux-2.9.0.zip from the cloud drive, extract to the server, and run the ios-bridge file from the command line
  • Default port is 8020. Open the port in your security group
  • Open http://server-IP:8020/tools?deviceId=aaa in a browser, replacing server IP with your actual server IP

Feature Description

Button Description

  • Get Uploaded Content — upload data to the bridge via API, then click Get Uploaded Content to retrieve it

  • Upload Input Box Content — upload the web page input box content to the bridge; the program retrieves it via API

  • Copy Input Box Content — enter content in the input box, click Copy Input Box Content to copy it to the clipboard

  • Open URL — opens the URL in the input box, or a URL scheme

URL parameters

  • The web page URL can usually carry parameters

  • deviceId: device ID (required). Each device has a different deviceId; each URL is different

  • autoFetch: automatically fetch server data — 1 = yes, other = no

  • autoFetchInterval: auto-fetch interval in milliseconds; default 1000 ms

  • autoOpenUrl: whether to automatically open URL scheme after fetching data — 1 = yes, other = no

  • Full URL example: http://192.168.1.200:8020/tools?deviceId=aaa&autoFetch=1&autoFetchInterval=1000&autoOpenUrl=1

API Description

API Upload Data

Description: Upload content to the web page
Endpoint: /postApiData
Method: POST
Format: JSON
Example URL: http://192.168.1.200:8020/postApiData
Example data:
{
"data": "你好xxx",
"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"
}

Request parameters:
- data: string data to submit
- deviceId: device ID — must match the ID in the web page URL; see [URL parameters]

Response:
{
"code": 0,
"data": true,
"msg": "success"
}
- code: return code; 0 = success, other = error
- data: true = submit success, false = failure
- msg: error message

API Get Data

Description: Get data from the web page [Upload Input Box Content] button click
Endpoint: /getPageData
Method: POST
Format: JSON
Example URL: http://192.168.1.200:8020/getPageData
Example data:
{
"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e"
}

Request parameters:
- deviceId: device ID — must match the ID in the web page URL; see [URL parameters]

Response:
{
"code": 0,
"data": "123",
"msg": "success"
}
- code: return code; 0 = success, other = error
- data: actual data uploaded from the web page
- msg: error message