A tutorial on how to make API calls in Node-RED using the HTTP Request node.
We explore the flow of making http web requests with and without authentication.
Examples include calling a freely available Formula 1 API, as well as the official Smart Home SwitchBot API.
Node-RED Palettes installed:
node-red-contrib-credentials
random-generator_node-red-contrib
Formula 1 API Documentation: [ Ссылка ]
SwitchBot API Documentation: [ Ссылка ]
Switchbot Code for the Function Node: [ Ссылка ]
Full Node-Red flow file for SwitchBot: [ Ссылка ]
00:00 Intro
00:24 HTTP Node Explained
02:50 Install credentials palette dependency
03:35 Formula 1 API Example
10:07 SwitchBot API Example
15:34 Wrap-up
#nodered #switchbot #api
Ещё видео!