This is an old revision of the document!
About Postman
Postman is an Web API testing tool that runs on top of Google Chrome. It can be downloaded for free and provides a practical example of an external app interacting with the Industrial App Store.
Get Postman: https://www.getpostman.com/
The Example
In our example we'll request the App Store API method:https://appstore.intelligentplant.com/ApiHelp/Api/GET-api-Resource-UserInfo GET api/Resource/UserInfo
This returns info about the logged-in user.
If you attempt to execute this directly, you will receive an unauthorized error like the following:
<Code> {
"Message": "Authorization has been denied for this request."
} </Code>
This is because the App Store API is secured using OAuth2.
To prepare an authorization request, select “Authorization”, type “OAuth 2.0” and click “Get New Access Token”.
You will be prompted for the following Authorization parameters:
Auth URL https://appstore.intelligentplant.com/AuthorizationServer/OAuth/Authorize Access Token URL https://appstore.intelligentplant.com/AuthorizationServer/OAuth/Token Client ID [We'll give you this if you ask] Client Secret [We'll give you this if you ask] Scope UserInfo Grant Type Authorization Code
This returns the Access Token.
Select “Use Token”, try sending the API request again, and this time we get the UserInfo result.