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

How would I take the TrelloAPI and make it into a Website API?

Asked by 8 years ago
Edited by BlueTaslem 8 years ago

I need to be able to send calls to a website. Currently my Anti-Exploit sends the calls to a Trello Board. I believe the error would be in here or what I would have to change.

function T:PostComment(cid,t)
                local url
            if Private then
                getAddon()
                url="https://api.trello.com/1/cards/"..tostring(cid).."/actions/comments"..addon
            else
                 url="https://api.trello.com/1/cards/"..tostring(cid).."/actions/comments"..addon
            end
            local dat={
                text=t
            }
            local data=HS:JSONEncode(dat)
            local re=HS:PostAsync(url,data)
            local red=HS:JSONDecode(re)
            return red

0
edited to use code formatting. BlueTaslem 18071 — 8y
0
Huh? jam10161 13 — 8y

Answer this question