Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Flic & Noonlight

    Developers
    3
    3
    674
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • home.assistant.2020
      home.assistant.2020 last edited by

      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 ?

      1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • tonsit
          tonsit last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post