Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Webhook not sending data?

Asked by 5 years ago
Edited 5 years ago

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.

0
do you need an api key to send data to the website? royaltoe 5144 — 5y
0
are you getting errors? royaltoe 5144 — 5y
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. hpenney2 53 — 5y

Answer this question