Home/Tutorials/Scripting

Scripting

361 One-Tap scripting API: Lua / TouchSprite HTTP commands, OpenUrl 361:// and the full fun command list.

Beyond the clean UI, a scripting API is available: developers can call core functions over HTTP from Lua on the TouchSprite platform; OpenUrl is also supported, so 361:// can trigger commands directly.

Command format

http://127.0.0.1:361/cmd?fun=newDevice&... — the API is asynchronous: check script_status to determine when execution finishes; a value of 1 means success, 0 means failure.

Commands

  • newDevice — one-tap new device
  • newBackup — create a backup record
  • restoreBackup — restore a backup record
  • delBackup — delete a backup record
  • renameBackup — rename a backup record
  • getBackupList — get backup records
  • getCurrentVDInfo — get virtual device info
  • setIDFA — set virtual device IDFA
  • getLicenseInfo — get device code and license info
  • openApp — jump to a specified app
  • uninstallApp — uninstall a specified app
  • autoBackup — auto backup / app auto-launch / auto IP switch
Previous: FAQNext: None