jakeisfunny101

Untitled

Aug 28th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. local module = require(game:GetService("ReplicatedStorage").DataBase)
  2. local http = game:GetService("HttpService")
  3. local boardid = ""
  4.  
  5. game:GetService("ReplicatedStorage").Application.OnServerEvent:connect(function(plr,Data)
  6. local get = http:GetAsync('https://api.trello.com/1/boards/'..module.Trello..'/lists?key='..module.Key..'&token='..module.Token,true)
  7. local tab=http:JSONDecode(get)
  8. for _,v in pairs(tab) do
  9. if v.name:match('^Applications%s?$') then
  10. boardid = v.id
  11. local musget = http:GetAsync('https://api.trello.com/1/lists/'..v.id..'/cards?key='..module.Key..'&token='..module.Token,true)
  12. local mustab = http:JSONDecode(musget)
  13. end
  14. end
  15. 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}))
  16. end)
Add Comment
Please, Sign In to add comment