Das Control Center stellt der App folgende Schnittstelle zur Verfügung:
Authentifizierung
Siehe Authentifizierung.
Check
POST auf api/Core/ControlCenter/Mobile/LicenceApi/Check
Input ist ein Parameter mit
{ "licence": "<Lizenz>", "deviceId": "<optional: Geräte-ID>", "deviceInfo": "<optional: Geräte Info>" }
Antwort ist:
{ "licenseStatus": "Inuse", "tenantId": "d5c56c87-2ab2-4053-a0dd-7164049fd64f", "installations": [ { "url": "http://1.1.1.1:8088/api/Mobile", "name": "Prod", "syncInterval": 10 }, { "url": "http://1.1.1.1:8085/api/Mobile", "name": "Test", "syncInterval": 10 } ] }
mit licenseStatus
New = 10, Inuse = 20, Revoked = 30, Invalid = 50
Free
POST auf api/Core/ControlCenter/Mobile/LicenceApi/Free
Input ist ein Parameter mit
{ "licence": "<Lizenz>", "deviceId": "<Geräte-ID>" }
Antwort ist:
{ "licenseStatus": "new" }
mit licenseStatus
New = 10, Invalid = 50
Persistenz
Die App muss die verwendete Lizenz sowie den Sync-Interval auf dem lokalen Gerät speichern.