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

HTTP Not Posting To Trello?

Asked by
Vezious 310 Moderation Voter
8 years ago
function EditCardDesc(Desc,CardId)
local url = "https://api.trello.com/1/cards/"..CardId.."/desc"..Access
local CardInfo = {value=Desc}
local Data=Http:JSONEncode(CardInfo)
local Response=Http:PostAsync(url,Data)
return Http:JSONDecode(Response)
end

EditCardDesc("Donuts","******")

This Function is suppose to Change a Description in a card. It errors. Why?

Output:

20:00:21.562 - HTTP 404 (HTTP/1.1 404 Not Found)
0
Im going to assume in line 9, in you have an actual ID, correct? AmericanStripes 610 — 8y
0
Yeah. Vezious 310 — 8y
0
Lmao non-existent URL. UniversalDreams 205 — 8y
0
Have you definitely got HTTPService enabled? jjwood1600 215 — 8y
0
I'd use the TrelloAPI by nstrike159. It's really good, and has several in-built functions. If you need more info, feel free to ask. TheHospitalDev 1134 — 8y

Answer this question