Apps

This entry provides detailed information on the processes regarding Apps and the DMP. 

Contents of the Table

General Information

Within the DMP it's possible to add your own apps. These apps must be developed standalone and the customer is responsible for hosting it.

Getting started building your own app

SDK

https://github.com/FlxOne/dmp-apisdk-javascript

Example usage of the SDK

https://github.com/FlxOne/dmp-apisdk-javascript/blob/master/js/example_app.js

We load the app using parameters, e.g.:

https://myapp.com/index.html?flx_token=MYAUTHTOKEN&flx_endpoint=https%3A%2F%2Fplatform.flxone.com%2Fapi%2F&flx_static=https%3A%2F%2Fplatform.flxone.com%2F&flx_csrf=MYCSRFTOKEN

API for managing your apps

View configuration an App

Service

/api/app

Method

GET

Response

{
	"response": {
		"status": "OK",
		"apps": [{
			"id": "1",
			"customerId": "1",
			"name": "My App",
			"url": "https://myapp.com/index.html",
			"deleted": "0",
			"created": "2016-08-02 15:54:35",
			"modified": "2016-08-02 15:54:38"
		}, {
           ...
        }]
	}
}


Create an App

Service

/api/app

Method

POST

Parameters

NameTypeRequiredDescription
namestringYThe application name
urlstringYThe complete URL where the application is hosted. E.g. https://myapp.com/index.html

Update an App

Service

/api/app

Method

PUT

Parameters

NameTypeRequiredDescription
idintYThe application ID
namestringYThe application name
urlstringYThe complete URL where the application is hosted. E.g. https://myapp.com/index.html

Delete an App

Service

/api/app

Method

DELETE

Parameters

NameTypeRequiredDescription
idintYThe application ID