Flic & Noonlight
-
I am attempting to integrate the flic button using the flic hub with noonlight API.
This is what I need to pass to noonlight using the flic hub:
curl --request POST
--url https://api-sandbox.noonlight.com/dispatch/v1/alarms
--header 'Accept: application/json'
--header 'Authorization: Bearer AO3yovlMivKQrNLp72cH5QRLoazSbMxS'
--header 'Content-Type: application/json'
--data '{"location":{"address":{"line1":"1234 Street Ave.","city":"East City name","state":"AL","zip":"92310"}},"services":{"police":true,"fire":true,"medical":true},"instructions":{"entry":"0000"},"name":"John Smith","phone":"15555555555","pin":"0000"}'How would I format this in the flic internet request ?
-
Hi. This should be pretty straightforward. Set POST as method, set the url, add appropriate headers and fill in the data as the request body.
-
@home-assistant-2020
I see that you are referencing the sandbox in the link, so this may not be so critical to you, however you provided the bearer token used as authorization for the endpoint in your message.I would recommend you change this bearer token if it is not automatically generated/rotated on a regular basis. This token should be treated the same as a username/password.