Trello API [ReMade] • Use Trello easily in your game!

Hello again, now i understand to what idLabel is, i started making it after you replied, this is what i got;

-- // Require TrelloAPI
local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI.BoardsAPI.GetBoardID("Roblox Trello")
local ListId = TrelloAPI.BoardsAPI.GetListID(BoardID, "CreateTest")

local Labels = TrelloAPI.BoardsAPI.GetLabelsOnBoard(BoardID)
local LabelId = Labels[1]["id"]

print(Labels)
-- It prints out the table.

TrelloAPI.CardsAPI.CreateCard("Test123", ListId, {
	["Description"] = "Your Fantastic Description",
	["idLabels"] = { LabelId },
	["AttachmentLink"] = "https://www.roblox.com"
})

Something went wrong, (See attachment)
Screen Shot 2022-07-05 at 19.12.33
It doesn’t seem to add the Label, again… Did i do something wrong or is this a bug?

EDIT:
Other than all of the stuff above, Thank you for making this module! I didn’t knew trello has a API to directly do all of these! I love this :smile:.

Label on trello are this:

image

Could you send Table output?

Heres the table output:
Screen Shot 2022-07-05 at 19.55.57
And here’s the labels on Trello:
Screen Shot 2022-07-05 at 19.56.11

Can you send me the output photo of this:

print(Labels[1]["id"])

No need to hide Boardid or ListId, Since without you’re credential that data it’s inutil and in any case it is already publicly visible.

Thank you for telling me that.
Screen Shot 2022-07-05 at 20.05.02

The Server:10 is the Labels[1]["id"].

What do you mean by this? Because I’m not sure.

I used this code which should add a card to a trello board right. However, there is an error that starts on line 4…? Everything seems fine to me. Anyone know what the problem is?

local createBanEvent = game.ReplicatedStorage:WaitForChild("ModeratorEvents").CreateBan

local TrelloAPI = require(game.ServerScriptService:WaitForChild("ModerationScripts").TrelloAPI)
local BoardID = TrelloAPI.BoardsAPI.GetBoardID("Game Bans")
local ListId = TrelloAPI.BoardsAPI.GetListID(BoardID, "Banned Players")

createBanEvent.OnServerEvent:Connect(function(userID, reason, length)
	TrelloAPI.CardsAPI.CreateCard(userID, ListId, {
		["Description"] = reason.." ["..length.."]",
		["idLabels"] = {"62c4572c5407de72ee03c356"},
		["AttachmentLink"] = "https://www.roblox.com/users/"..userID.."/profile"
	})
end)

Not sure how I can define it exactly

Board Id is not correct, that means “Board Name” It’s not a valid parameter
Some Solution:

→ Check If name is correct of board (Copy and paste it)
→ Check if you’re using the right credential and you have access with your token and API key to modify that board.

Let me know if you have others question.

Hi, So Just checked you’re code and and I discovered this, code and function is right but trello when “AttachmentLink” Parameter is present, does not add “idLabels” im unsure about why… In the meantime, remove the Attachment Link parameter and add the idlabels, It can also be a trello api bug.

1 Like

Frankly not seeing the use of this as a module. This would be much more useful as a plugin or a VSCode extension. Having this be executed at runtime of the game makes no sense unless you’re trying to use it as a database, which Trello is not designed for.

Even as a plugin, it’s still pretty much a waste of time to develop this. I see no practical use for it.

Nobody asks you to say how trello should be used, there are so many people who use it for their RP games, Also there are many other old trello system similar to these, no point in coming here and write something nonsense in my opinion about something that as you can see is getting used a lot, you’re not *judge *and the discussion should remain on topic.

1 Like

Your API is not responding at all.
image

Please let me know if you have updated any functions/events.

It seems like you are not requiring the module, try doing that and calling the function on the required module.

I am on topic. Please explain how this is supposed to be useful.

Hello, can you send me the code where you’re requiring trello API module and where you call that function? ,

Hiya, I am trying to make a system where trello records a number of “Miles” How would I get the text of the description,

-- // Require TrelloAPI
local TrelloEvent = game.ReplicatedStorage:WaitForChild("TrelloEvent")
local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI.BoardsAPI.GetBoardID("airmayoramilessystem")
local ListId = TrelloAPI.BoardsAPI.GetListID(BoardID,"Players")

--[[ You can access 3 different categories of functions.
TrelloAPI.BoardsAPI
TrelloAPI.CardsAPI
TrelloAPI.CommentsAPI
--]]

-- //  Example Script (ServerScript)



local function Miles(player)
		
	if TrelloAPI.CardsAPI.GetCardOnList(ListId,Player.UserId) then
		
	else
		TrelloAPI.CardsAPI.CreateCard(ListId, {
			["Name"] = Player.UserId
		})
		
	end	
end

It should look something like this

local function Miles(player)
	
	local CardsOnLists = TrelloAPI.CardsAPI.GetCardsOnList(ListId)
	local CardFound = false
	for _,CardData in pairs(CardsOnLists) do
		if CardData.name == tostring(player.UserId) then
			CardFound = true
			print("Card Description: ", CardData.desc)
		end
	end
	if not CardFound then
		TrelloAPI.CardsAPI.CreateCard(player.UserId, ListId)

	end
end

Hiya, nothing happens at all, so yea…

Can you give me more information? Actualy At least one error should give it to you, put some print around and tell me what happens, try debug code.