Rentman
Very simple flow for interacting with the Rentman API.
This example shows number of ongoing projects.
Don't forget to add your token to the bearer authorization in the HTTP request node.
[{"id":"16b491cfdcb308dd","type":"tab","label":"Rentman API","disabled":false,"info":"Copyright (C) 2023 Johan Nilsson\nhttps://gobo.ws"},{"id":"bb53862db87261c4","type":"inject","z":"16b491cfdcb308dd","name":"","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"date","x":160,"y":320,"wires":[["5da7d7987acb6759"]]},{"id":"5da7d7987acb6759","type":"http request","z":"16b491cfdcb308dd","name":"connect to API endpoint","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://api.rentman.net/projects","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"bearer","senderr":false,"headers":[],"credentials":{},"x":370,"y":320,"wires":[["cfba88082ccb48d8"]]},{"id":"90e9d78f8e0bfe99","type":"debug","z":"16b491cfdcb308dd","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":730,"y":320,"wires":[]},{"id":"cfba88082ccb48d8","type":"template","z":"16b491cfdcb308dd","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Currently {{payload.itemCount}} ongoing projects","output":"str","x":580,"y":320,"wires":[["90e9d78f8e0bfe99"]]},{"id":"f29dc9eb4f27b5cc","type":"comment","z":"16b491cfdcb308dd","name":"Ongoing projects","info":"","x":160,"y":260,"wires":[]}]