POSTMAN Collections
Ingesting Meters using POSTMAN
The easiest way to start with the Amberflo API is by using a Postman collection.
You can create meters, ingest data, and query the data in as little as 5 minutes.
Github repo https://github.com/amberflo/api-postman
![Screen Shot 2021-02-12 at 2.59.45 PM.png 1605](https://files.readme.io/69fd363-Screen_Shot_2021-02-12_at_2.59.45_PM.png)
Prerequisites
Postman
https://www.postman.com/downloads/
node.js
https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
newman - Postman runtime
https://www.npmjs.com/package/newman
Installation
Download github repo https://github.com/amberflo/api-postman
(also on the github page)
Postman Instructions
Import collection /api-postman/api-tests.collection.json into Postman
https://dash.readme.com/project/amberflo/v1.0/refs/postman-for-api
![9c3269c0-95f7-4e1e-a910-7602d0e3a383.png 596](https://files.readme.io/5b7b5f3-9c3269c0-95f7-4e1e-a910-7602d0e3a383.png)
![349ec05a-c46d-4373-b5a6-63a25d3115b2.png 1530](https://files.readme.io/3310752-349ec05a-c46d-4373-b5a6-63a25d3115b2.png)
Import environment file /api-postman/env-prod.json into Postman
![8d04a881-14b4-42f2-82fa-ce03aa0122da.png 1474](https://files.readme.io/13bf169-8d04a881-14b4-42f2-82fa-ce03aa0122da.png)
Set Amberflo’s username, password, X_API_XEY, and s3_bucket in prod environment file.
{
"key": "username",
"value": "",
"enabled": true
},
{
"key": "password",
"value": "",
"enabled": true
},
{
"key": "X_API_KEY",
"value": "",
"enabled": true
},
{
"key": "s3_bucket",
"value": "",
"enabled": true
}
![d66ebfd3-ff08-45cc-a01e-a14f35518d43.png 1384](https://files.readme.io/8c2531e-d66ebfd3-ff08-45cc-a01e-a14f35518d43.png)
Launch Runner, select collection and environment file and run.
![87412509-5788-44ce-b5f8-928c5575080f.png 1664](https://files.readme.io/8cbea26-87412509-5788-44ce-b5f8-928c5575080f.png)
![9da6610a-7982-45d9-aaef-d301cc83eb0b.png 2210](https://files.readme.io/3de53a8-9da6610a-7982-45d9-aaef-d301cc83eb0b.png)
Updated 8 months ago