OpenPlatform / 04. Creating apps
Updated: 13. March 2018
Author: Peter Širka

04. Creating apps

Professional Support Chat with contributors

It's very easy to create OpenPlatform application. Follow this source-code: TestApp.

Domain name

Each OpenPlatform's application needs to have own domain name. Of course, for testing you can use local IP address in the form e.g. http://127.0.0.1:8001, etc.. Important step is to have openplatform.json with meta data of this application. This file needs to be stored in application's root available on e.g. http//127.0.0.1:8001/openplatform.json.

IMPORTANT: you can use different domain names or second domain level.

Register new app

First you need to register your app in OpenPlatform. So run the OpenPlatform and then register your app in application's section (you need SuperAdmin privileges).

Open API

OpenPlatform supports a simple API for obtaining some informations.

User's online state

This endpoint returns an online state of the OpenPlatform user. The endpoint is unsecure for all apps, but you need to know ID of user.

GET https://your.openplatform.com/api/online/{ID_USER}/

Output:

{
    online: Boolean,
    datelogged: Date
}