diff --git a/source/_integrations/tank_utility.markdown b/source/_integrations/tank_utility.markdown index d0e40e41304..7a473175799 100644 --- a/source/_integrations/tank_utility.markdown +++ b/source/_integrations/tank_utility.markdown @@ -23,6 +23,32 @@ Each item in the list of devices is a 24 character string. These values can be f The device item value is the last segment of the URL path, e.g., the URL [https://app.tankutility.com/#/reports/000000000000000000000000](https://app.tankutility.com/#/reports/000000000000000000000000) would indicate `000000000000000000000000` as a device value. +### Using TankUtility API to Obtain Device ID + +1. Obtain your personal token: + + ```bash + curl --user : https://data.tankutility.com/api/getToken` + ``` + + The JSON response structure should resemble: + + ```json + {"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0MzgyMjQwODE0NjIsInYiOjAsImQiOnsidWleejoic2ltcGxlbG9naW46MzM1In0sImlhdCI6wwDIyMzk5NX0.kbYzxRtbGB2ke3IBgQTVMNQprHOWJZFgQQnPK6Wyas4"} + ``` + +2. Receive the list of devices you have in your account: + + ```bash + curl https://data.tankutility.com/api/devices?token= + ``` + + The JSON response structure should resemble: + + ```json + {"devices":["54df6a066667531535371367","54ff69057492666782350667"]} + ``` + ## Configuration To enable the component, add the following lines to your `configuration.yaml` file: