FlicHub configuration for HTTP request



  • Hello,
    I'm about to invest in a FlicHub and several Flics. Wish to clarify some doubts first:

    1. How to configure the actions of the individual buttons connected to the Hub? Do I need to use the iOS/Android apps? Is there any other way to do this programmatically?
    2. Is it possible to make an HTTPS POST request or is it only HTTP?
    3. Is it possible to invoke an AWS Lambda function using Flic action?

    Thank you!



  • 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 ?



  • @oskar 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 ?

    Thank you



  • Thank you, @oskar. Will give it a shot.

    On a slightly unrelated note, is the Hub still on backorder? It seems not immediately available ...


  • FlicTeam

    Hi!

    1. Right now, the only way to configure the hub and its buttons is through the mobile apps.
      However, we are working on a more programatic approach for this to enable people to create more dynamic setups, which will enable you to configure the hub without the use of a phone.

    2. Both HTTP and HTTPS is supported!

    3. I'm not sure about AWS Lambda, but if it has a HTTP/S REST API, you should be able to replicate this request with the action HTPP Request.

    Regards
    Oskar Öberg


Log in to reply