I’m currently trying to make an application game connected to Trello via @nstrike159’s Trello API and I was just testing the Trello API before writing the rest of the code, but I keep getting the “Can’t Parse JSON” error when I attempt to get the BoardID. I’ve marked where the errors are below.
My Code:
local api = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local board = api:GetBoardID("2019") --Error here, nothing past here runs
local pending = api:GetListID("Pending Applications",board)
local card = api:AddCard("Card Name","Card Description",pending)
API’s Code:
function T:GetBoardID(name)
local url
if Private then
getAddon()
url="https://api.trello.com/1/members/me/boards"..addon
else
getAddon()
url="https://api.trello.com/1/members/me/boards"..addon
end
local tball=HS:GetAsync(url,true)
local dt=HS:JSONDecode(tball) --Error here
for _,tab in pairs(dt) do
for p,it in pairs(tab) do
if p=="name" and it==name then
return tab.id
end
end
end
error(name.." not found!")
return nil
end
I’ve used his Trello API many times before and never had any issue, but I’ve never worked with HttpService so I’m not sure what the issue is.