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

I have an issue with HTTP PostAsync() (TRELLO)??

Asked by
EDLLT 146
4 years ago
Edited 4 years ago

I'm a bit outdated and have been living under a rock lately. I wanted to create a simple trello that makes a Report Card I tried it but it never worked and got me this error And yes it is a ServerScript

7 characters were replaced from the key and token while making this thread for safety purposes.

12:49:31.453 - HTTP 400 12:49:31.453 - Stack Begin 12:49:31.454 - Script 'ServerScriptService.Script', Line 5 12:49:31.454 - Stack End

IDK why I've tried everything including youtube google search etc and it still won't work Any help, clue would be appreciated

Here's the script

local Trello = "dor-reports"
local Key = "1234567890"
local Token = "abcdefghijklmnopqrstuvwxyz1234567890"
local http = game:GetService("HttpService")
local get = http:GetAsync('https://api.trello.com/1/boards/'..Trello..'/lists?key='..Key..'&token='..Token,true)
local tab=http:JSONDecode(get)

for _,v in pairs(tab) do
    if v.name:match('TRELLOLISTNAME') then
        boardid = v.id
    end
end
text="Test"
plr="John Doe"
 local musget = http:PostAsync('https://api.trello.com/1/cards/?key='..(Key)..'&token='..(Token), http:JSONEncode({["name"]=(" | "), ["desc"]=("Feedback " .. text .. "\nSent by: "), ["due"]=nil,["idList"]=boardid,["urlSource"]=nil}))
0
idk what trello is.. Luka_Gaming07 534 — 4y
1
i recommend you delete the first 3 lines of your script from here cos we are able to literally ban your account with that Elixcore 1337 — 4y

1 answer

Log in to vote
0
Answered by
EDLLT 146
4 years ago

Figured the problem out.

You can't require a module script that uses HTTPGET using a local script, instead use a server script and add remote events to fire them.

Easy as that.

Ad

Answer this question