Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    flic app http request support for bearer (OAuth2, password)

    General Discussion
    2
    4
    616
    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.
    • flic.io 2
      flic.io 2 last edited by

      i am trying to authenticate and run a post/put request with my homebridge. i dont see how i can make a request via the "Internet Request" action. unlike basic auth which i can just enter username/password. please let me know if this is possible. thanks.

      1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam @flic.io 2 last edited by

        @flic-io-2 Hmm this will not be possible using the Flic app. You could create your own app using our sdks that does what you want if you can build it yourself...

        1 Reply Last reply Reply Quote 0
        • flic.io 2
          flic.io 2 last edited by

          hey emil. thanks for the quick reply. ya. i tried that and worked fine. unfortunately if the token expires i will have to regenerate it again and update the app.

          i dont have a hub. so i am doing all this thru the app.

          on my mac, i can get it to work using "User-supplied plugins" as i can just call a shell script i have to auth, then post/put request.

          but i am trying to get this to work on the phone/tablet app and just use "Internet Request" since the phone/table app doesnt have "User-supplied plugins" 😛

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

            If you have a "Bearer" token, just add a header named Authorization, with the value "Bearer your_token".

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