Get Request

To make a GET request using the FireflyAIO Lua API, you can follow these steps. First, use the AddHeader function to specify any necessary headers for your request. Then, use the Get function to send the request to the desired URL.

Here's an example of how to perform a GET request:

-- Add a header to your request
AddHeader("Name", "Value")

-- Send a GET request to the specified URL
local response = Get("https://example.com")

In this example, replace "Name" and "Value" with the appropriate header name and value for your request. The URL "https://example.com" should be replaced with the endpoint you want to access. By following these steps, you can easily perform GET requests within your custom checkers in FireflyAIO.

Last updated