Accessing data exposed by the platform
You can access the data exposed by the platform through the IndustryApps AAS Gateway, which has REST endpoints provided by the IndustryApps Platform. You will get an AppID
and AppSecretCode
when you register your application to IndustryApps in the Solution Provider portal. These credentials can be used to create an AccessToken
. This AccessToken needs to be sent with every request of API. Along with this, you need to provide theUserToken
which you will get from the below integration.
Platform javascript API
import platform-api.js
into main file (index.html) and invoke getPlatformContext()
method. It will return an object with params:
auth_token
euser
plant_selected
language_selected
plant_list
company_code
roles
API documentation
Methods
getPlatformContext() → {Object}
This function returns an object with params auth_token, euser, plant_selected, language_selected, plant_list, company_code, roles.
Returns: platformContext
Type:
Type Definitions
auth_token
string
Token to be used in the header of every service call (UserToken)
euser
string
User code of logged in user
language_selected
string
Language code of selected language, default is 'en'
plant_selected
string
Id of selected plant
plant_list
object array
plant list
company_code
string
Current company code
roles
string array
User roles
Sample Response
Last updated