Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Authentifizierung siehe Authentifizierung

Das ControlCenter Control Center stellt der App folgende Schnittstelle zur Verfügung:

Check

POST auf api/Core/ControlCenter/Mobile/LicenceApi/Check

Input ist ein Parameter mit 

Code Block
{

...


  "licence": "<Lizenz>",

...


  "deviceId": "<optional: Geräte-ID>",

...


  "deviceInfo": "<optional: Geräte Info>"

...


}

Antwort ist:

Code Block
{

...


    "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

Code Block
New = 10,

...


Inuse = 20,

...


Revoked = 30,

...


Invalid = 50

Free

POST auf api/Core/ControlCenter/Mobile/LicenceApi/Free

Input ist ein Parameter mit 

Code Block
{

...


  "licence": "<Lizenz>",

...


  "deviceId": "<Geräte-ID>"

...


}

Antwort ist:

Code Block
{

...


    "licenseStatus": "new"

...


}

mit licenseStatus

Code Block
New = 10,

...


Invalid = 50

Persistenz

Die App muss die verwendete Lizenz sowie den Sync-Interval in LocalSettings auf dem lokalen Gerät speichern.