AZ TUTORIALS · API reference
API reference
Each app exposes a local HTTP API on the device. Use a scripting tool to automate one-tap refresh, record switching, import/export and more.
API overview
| Product | Base URL | Success value |
|---|---|---|
| Thor | http://127.0.0.1:8090 | status = 1 |
| AMG | http://127.0.0.1:8080 | result file 1 |
| VBox | http://127.0.0.1:8080 | result file 1 |
| RAZER | http://127.0.0.1:8844 | retcode = 1 |
| CTW Pro | http://127.0.0.1:8080 | result file 0 |
| 361 | http://127.0.0.1:361 | status file 1 |
| AWZ | http://127.0.0.1:1688 | result = 1 |
| Zorro | http://127.0.0.1:8844 | retcode = 1 |
Call flow
- Bring the product to the foreground with
runApp()and wait a few seconds. - Send a
GETrequest to the matching endpoint. - Read the return value or result file, and continue only after it reports success.
Things to watch out for
- Port conflicts: AMG, VBox and CTW Pro all use 8080; RAZER and Zorro both use 8844; AWZ uses 1688. Do not run their script services on the same device at the same time.
- Success values differ: CTW Pro reports success with a result file of
0; every other product uses1. - Non-ASCII parameters: record names, place names and other non-ASCII text must be URL-encoded first.
- Calling from a computer: replace
127.0.0.1with the phone's LAN IP. Both devices must be on the same network.
Note
The interface and supported systems may change with updates. Back up important data before cleaning, resetting or deleting anything.
