Zum Inhalt springen

REST-API (PLUS) ​

Wenn Sie Remote Admin aktiviert haben, können Sie dessen Funktionen als einfache REST-API-Schnittstelle nutzen, um das Gerät über Ihr lokales Netzwerk zu steuern. Die Basis-URL lautet stets http://ip-address:2323. Sie können für diese Verbindung HTTPS verwenden, wie im Abschnitt Remote Admin beschrieben.

Sie müssen das Remote Admin-Passwort im Abfrage-String wie folgt angeben: password=08154711. Fügen Sie type=json zum Abfrage-String hinzu, um eine kurze JSON-Antwort zu erhalten. Vergessen Sie nicht, alle Parameter des Abfrage-Strings URL-zu-kodieren.

Beispiele für API-Aufrufe:

GET http://192.168.178.1/getDeviceInfo?type=json&password=08154711
  
GET http://192.168.178.1/loadUrl?url=https%3A%2F%2Fwww.google.com&type=json&password=08154711

Vollständige Liste der REST-API-Endpunkte mit zusätzlichen Parametern:

Geräteinformationen und Protokolle abrufen
// Get Device Info JSON
/getDeviceInfo  
  
// Get Fully Log  
/showLog  
  
// Get Logcat  
/logcat
Surfen im Internet
// Load URL
/loadStartUrl
/loadUrl?url=[url]
/loadUrl?url=[url]&tab=[0..n]&focus=[true|false]
/loadUrl?url=[url]&newtab=[true|false]&focus=[true|false]/injectJavascript?code=code (ver. 1.60+)

// Manage Tabs
/focusTab?tab=[index]
/closeTab?tab=[index]
/refreshTab

// Remove Web Items
/clearCache
/clearWebstorage
/clearCookies
/resetWebview
Bildschirm ein-/ausschalten, Bildschirmschoner und Daydream
// Screen on/off
/screenOn
/screenOff
/forceSleep

// Simulate Motion
/triggerMotion

// Fully Screensaver and Android Screen Saver (Daydream)
/startScreensaver
/stopScreensaver
/startDaydream (Android 10 and older!)
/stopDaydream (Android 10 and older!)
Kiosk- und App-Verwaltung
// Unlock/lock kiosk mode
/lockKiosk
/unlockKiosk

// Start other apps
/startApplication?package=[pkg]
/startIntent?url=[intenturl]
  
// Bring Fully app to foreground/background  
/toForeground
/toBackground

// Restart and exit Fully Kiosk
/restartApp
/exitApp
/killMyProcess  // Kill my app hard (ver. 1.55+) 

// Return to main view if any special view (PDF, Settings, Menu) is open
/popFragment

// Download and launch APK file, user input can be required for install
// If app already installed in this version, APK install will be started only if forceInstall=true
// These features are not available if you installed Fully Kiosk from Google Play
/loadApkFile?url=[url]&forceInstall=[true|false]
/uninstallApp?package=[package]

// Get current APK installation status (JSON)
/getInstallApkState

// Kill background processes for package (Android 13 and older)
/killBackgroundProcesses?package=[package]

// Clear app data (Android 9+, provisioned devices only)
/clearAppData?package=[package]
  
// Install Certificate in User Certificate Store (provisioned devices only)  
/installUserCa?url=[url]
// Lock/unlock device for maintenance
/enableLockedMode
/disableLockedMode

// Show message in an overlay
/setOverlayMessage?text=[text]

// Rooted devices only
/shutdownDevice
/runRootCommand?command=[command]
/runSuCommand?command=[command]
  
// Rooted and provisioned devices only
/rebootDevice
Statistiken, Screenshots und Camshots abrufen
// Load full usage stats CSV file
/loadStatsCSV

// Get screenshot image (PNG), not for videos or other apps
/getScreenshot

// Get camshot image (requires Motion Detection)
/getCamshot
Einsatz von TTS und Multimedia
// Text to speech
/textToSpeech?text=[text]
/textToSpeech?text=[text]&locale=[locale]
/textToSpeech?text=[text]&locale=[locale]&engine=[engine]
/textToSpeech?text=[text]&locale=[locale]&engine=[engine]&queue=[0|1]
/stopTextToSpeech

// Play sounds/video and change audio volume
// Audio Streams: 0 – Voice Call, 1 – System, 2 –  Ring, 3 – Music, 4 – Alarm, 5 – Notification, 6 – Bluetooth, 8 – DTMF, 9  – TTS, 10 – Accessibility
/setAudioVolume?level=[0-100]&stream=[0-10]
/playSound?url=[url]&loop=[true|false]&stream=[0-10]
/stopSound
/playVideo?url=[url]&loop=[0|1]&showControls=[0|1]&exitOnTouch=[0|1]&exitOnCompletion=[0|1]
/stopVideo
Einstellungen verwalten
// Change any of 350+ Fully settings, look in Remote Admin for keys
// New values will be applied immediately
/setBooleanSetting?key=[key]&value=[true|false]
/setStringSetting?key=[key]&value=[value]

// Get current setting values
/listSettings?type=json

// Import JSON settings file from URL or file
/importSettingsFile?url=[url]
Dateiverwaltung
// Download and upzip file from URL to directory  
// If dir is not specified use shared storage root (if Android 9 or older, or All Files Access granted), otherwise use app specific storage root
/loadZipFile?url=[url]&dir=[dir]

// Download/delete local files
/deleteFile?filename=[filename]
/downloadFile?filename=[filename]
/deleteFolder?foldername=[foldername]