Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Internet Request replacement tokens available?

    Developers
    3
    5
    587
    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.
    • ai-please-ai
      ai-please-ai last edited by

      Hi! On an Internet Request (in my case HTTP PUT), are there any out-of-the-box replacement tokens/parameter available? I don't see this documented anywhere.

      For example, lets say in the URL, Body, or a Header, I want to specify the date/time be injected when the PUT is executed. Is there something like {DateTime} that I can use for that purpose? That's just an example. If there are variables available I'd love to get a list.

      sgemmen 1 Reply Last reply Reply Quote 0
      • ai-please-ai
        ai-please-ai @Emil last edited by

        @Emil Thanks! That's super helpful.

        1 Reply Last reply Reply Quote 0
        • Emil
          Emil FlicTeam @ai-please-ai last edited by

          @ai-please-ai yes, those http headers are added automatically for your convenience.

          ai-please-ai 1 Reply Last reply Reply Quote 0
          • ai-please-ai
            ai-please-ai @sgemmen last edited by

            @sgemmen Hi! When you say that you see that data, can you tell me where? Are you saying that the button augments my PUT request and adds that data as a Header?

            Emil 1 Reply Last reply Reply Quote 0
            • sgemmen
              sgemmen @ai-please-ai last edited by

              @ai-please-ai Maybe you figured this out already... but this the data i see sent by default from a button http put action.

              PUT / HTTP/1.1
              Host: 192.168.1.1:1234
              Button-Serial-Number: BH28-E20000
              Timestamp: 2024-03-17T21:35:41+00:00
              Button-Name: Dre
              Button-Battery-Level: 100
              Content-Length: 0
              
              ai-please-ai 1 Reply Last reply Reply Quote 0
              • First post
                Last post