Note: The Postman is used to check the data synced from API server to i21 Tank Management. This is used for testing purposes only and does not require to be installed in customer server.
Postman Credentials and Getting the Access Token to Retrieve Tank Information 1. Download and install Postman. 2. Open Postman, click "+" button. GET New Request will be added on your tab. Image Added 3. On New Request tab, change the selection on dropdown menu to POST. 4. Enter the request URL Image Added 5. On New Request tab, navigate to Body tab. Select x-www-form-urlencoded, then enter the following details: KEY | VALUE | grant_type | password | username | vendor name set in Company Configuration > TM > Tank Monitor tab | password | password set in Company Configuration > TM > Tank Monitor tab | client_id | customer name set in Company Configuration > TM > Tank Monitor tab | client_secret | API Key set in Company Configuration > TM > Tank Monitor tab |
6. Click Send button. Response will be generated.
Image Added Note: access_token change every send.
Retrieve the List of All Tanks 1. Click "+" button. GET New Request will be added on your tab. Image Added 2. Enter the request URL 3. Navigate to Authorization tab then select Bearer Token. Image Added 4. Copy the generated access_token from previous step response. Image Added 5. Enter it in the Token field, then click Send button. Image Added 6. Click Save Response > Save to a file Image Added 7. Select path to save file, then click Save button. File will be saved as response.json. Note: lastReportedDate change every day. Details in generated response will be used in Clock reading, Customer creation, Device creation, and Consumption Site
|