Trello API Help

I am requiring the Trello module trying to see if the cards in a list equal a certain name. The card name is 621955678*Interview Center and Im trying to find it, but nothing prints when I join the game

local module = require(myassetidhere)
local gameOwner
local cardName
if game.CreatorType == Enum.CreatorType.Group then
gameOwner = game:GetService(“GroupService”):GetGroupInfoAsync(game.CreatorId).Owner.Id
else
gameOwner = game.CreatorId
end

local board = module:GetBoardID(“ezHub”)
local list = module:GetListID(“Royal|Purchases”, board)
gameOwner = tostring(gameOwner)
for i,card in pairs(module:GetCardsInList(“Royal|Purchases”, list)) do
cardName = card.name
cardName = string.split(cardName, “*”)
if cardName[1] == gameOwner and cardName[2] == “Interview Center” then
print(“good”)
else
print(“BAD”)
end
end

The trello api module is messed up, you have to make sure to make a local key = apikey because otherwise your api key isn’t recognized.

1 Like

That didn’t work.
(30 characters)