Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local module = require(game:GetService("ReplicatedStorage").DataBase)
- local http = game:GetService("HttpService")
- local boardid = ""
- game:GetService("ReplicatedStorage").Application.OnServerEvent:connect(function(plr,Data)
- local get = http:GetAsync('https://api.trello.com/1/boards/'..module.Trello..'/lists?key='..module.Key..'&token='..module.Token,true)
- local tab=http:JSONDecode(get)
- for _,v in pairs(tab) do
- if v.name:match('^Applications%s?$') then
- boardid = v.id
- local musget = http:GetAsync('https://api.trello.com/1/lists/'..v.id..'/cards?key='..module.Key..'&token='..module.Token,true)
- local mustab = http:JSONDecode(musget)
- end
- end
- local musget = http:PostAsync('https://api.trello.com/1/cards/?key='..(module.Key)..'&token='..(module.Token), http:JSONEncode({["name"]=(plr.Name .. " | ".. plr.userId), ["desc"] = Data[1]..", "..Data[2]..", "..Data[3]..", "..Data[4]..", "..Data[5].." ,"..Data[6],["due"]=nil,["idList"]=boardid,["urlSource"]=nil}))
- end)
Add Comment
Please, Sign In to add comment