I have a script that posts to a webhook. The following code worked fine for a Discord webhook (replacing Value1 with content and Value2 with username that is):

local data = {
    ['Value1'] = text,
    ['Value2'] = plr.Name
}
local newdata = http:JSONEncode(data)
http:PostAsync(url,newdata)

However, trying to use this with the IFTTT maker service (webhooks) posts to the webhook, but the values aren't sent with it. There are no errors. The names should be correct as the ingredients for the IFTTT "then" show Value1, Value2, and Value3.

3 comments

0

do you need an api key to send data to the website?

0

are you getting errors?

0

No errors, I'm guessing because it posts successfully. I have an api key url as a variable, you just don't see it here in the script.