local http = require("socket.http")
local json = require("json")
local ltn12 = require("ltn12")
local body, code, headers, status = http.request{
method = "POST",
url = "https://api.tggl.io/flags",
source = ltn12.source.string(json.encode({
userId = "foo",
email = "foo@gmail.com"
})),
headers = {
["Content-Type"] = "application/json",
["x-tggl-api-key"] = "API_KEY"
}
}
Empower product and marketing teams to experiment within safe boundaries set by your engineering team.
Your app is instantly updated when a flag is updated, no need to write code and deploy the new version.