Foreword:
To use HTTP scripts, open the app’s settings andUnder Script Options, turn the “Enable HTTP Script Commands”switch on.
Phone script calls: call the URL directly.http://127.0.0.1:1688/cmd?
Computer calls: call the URL directly.http://DEVICE_LAN_IP:1688/cmd?
HTTP Command Reference:
| Functions | Code |
|---|---|
| Start application | runApp("AWZ"); Before calling any command below, first run this command to bring AWZ to the foreground. |
| One-Tap Refresh | http://127.0.0.1:1688/cmd?fun=newrecord |
| Next Record | http://127.0.0.1:1688/cmd?fun=nextrecord |
| Clear All Records | http://127.0.0.1:1688/cmd?fun=deleteallrecords |
| Activate Specified Record | http://127.0.0.1:1688/cmd?fun=activerecord&record=RECORD_ID |
| Activate First Record | http://127.0.0.1:1688/cmd?fun=activefirstrecord |
| Activate Last Record | http://127.0.0.1:1688/cmd?fun=activelastrecord |
| Disable specified records | http://127.0.0.1:1688/cmd?fun=disablerecord&record=RECORD_ID |
| Enable Record | http://127.0.0.1:1688/cmd?fun=enablerecord&record=RECORD_ID |
| Delete specified record | http://127.0.0.1:1688/cmd?fun=deleterecord&record=RECORD_ID |
| Reduce Specified Record Size | http://127.0.0.1:1688/cmd?fun=thinrecord&record=RECORD_ID |
| Export specified records | http://127.0.0.1:1688/cmd?fun=exportrecord&record=RECORD_ID Exported records are saved in /var/mobile/exportdata/. |
| Export all records | http://127.0.0.1:1688/cmd?fun=exportallrecords&zip=FILE_NAME Exported records are saved in /var/mobile/exportdata/. |
| Import Records Directly | http://127.0.0.1:1688/cmd?fun=importdirect Import logs at/var/mobile/importdata/ Note: You can use an exported folder or an exported ZIP file. |
| Import Records in Compatibility Mode | http://127.0.0.1:1688/cmd?fun=importcompatible Import logs at/var/mobile/importdata/ Note: You can use an exported folder or an exported ZIP file. |
| Import NZT Records | http://127.0.0.1:1688/cmd?fun=importnzt Place NZT records in /var/mobile/nztdata/. Note: NZT records must be extracted folders or unencrypted ZIP files. |
| Rename Current Record | http://127.0.0.1:1688/cmd?fun=renamecurrentrecord&name=NEW_NAME After renaming, the new name becomes the record ID. |
| Set Current Record Coordinates: | http://127.0.0.1:1688/cmd?fun=setcurrentrecordlocation&location=COORDINATES Coordinate format: longitude_latitude_place-name Place name is optional |
| Clear Current Record Coordinates | http://127.0.0.1:1688/cmd?fun=clearcurrentrecordlocation |
| Fetch Current Record Parameters | http://127.0.0.1:1688/cmd?fun=getcurrentrecordparam Returned parameters are saved in /var/mobile/iggparams.txt. |
| Set Current Record Parameters | http://127.0.0.1:1688/cmd?fun=setcurrentrecordparam Place the parameters to apply in /var/mobile/iggparams.txt. |
| Get List of All Record Names | http://127.0.0.1:1688/cmd?fun=getallrecordnames The returned record-name list is saved in /var/mobile/iggrecords.txt. |
| Clear App Store | http://127.0.0.1:1688/cmd?fun=cleanappstore If Clear App Store is enabled, this command does not need to be called after One-Tap Refresh. |
| Uninstall Selected Apps | http://127.0.0.1:1688/cmd?fun=uninstallselectedapp If Uninstall Apps is enabled, this command does not need to be called after One-Tap Refresh. |
| Oldest First | http://127.0.0.1:1688/cmd?fun=orderbytime |
| Newest First | http://127.0.0.1:1688/cmd?fun=orderbytimedesc |
Command Return Values:
The command immediately returns a JSON string in this format:{"result":RETURN_VALUE}A return-value file is also available at:/var/mobile/iggresult.txtfile
| Return value | Description |
|---|---|
| 2 | Command is still running. |
| 1 | Command completed successfully. |
| 3 | Refresh succeeded, but the IP address is duplicated (applies only tonewrecordInstructions). |
| 4 | The last record has been reached (applies only tonextrecordInstructions). |
| 0 | Command execution failed. |
| 100 | The product is not activated or has expired. |
| 10 | Abnormal runtime environment. |
iggparams.txt Parameter File Reference:
Get or set the current record’s parameters in:/var/mobile/iggparams.txtfile;Use one parameter per line. Line separator: chr(10);
Separate each parameter name and value with a colon (:) separator;
By calling commandgetcurrentrecordparam, and open the file to see formatting.
| Parameter Name | Description |
|---|---|
| RecordID | Record ID, for example: "WeChat001". |
| DeviceName | Device name, for example: "xxxx iPhone". |
| SystemVersion | System version number, e.g. "10.3.1". |
| IDFA | IDFA value. |
| IDFV | IDFV value. |
| 62short | 32-character short 62 code. |
| 62long | 344-character full 62 code. When setting parameters, provide either 62short or 62long; both are not required. |
| UDID | Device UDID value. |
| IMEI | Device IMEI value. |
| SerialNum | Device serial number. |
| MAC | MAC address. |
| SSID | SSID value. |
| BSSID | BSSID value. |
| OpenUDID | OpenUDID value. |