A note
This is an old project that I don’t maintain anymore. It was used for practice, and I’m not proud of how this was written at all.
I highly recommend you check out other wrappers that come with better features.
Thanks!
TrelloGet
TrelloGet is a straightforward and beginner-friendly module to get information from Trello boards. This is made for projects that primarily deals with retrieving information, such as blacklist boards for admins and music ID libraries.
With the read-only functions, a token is not needed to use this, and no extra account securing or creating accounts are needed.
I intended this module to be as straightforward, easy-to-grasp as possible. TrelloGet is essentially a pack of shortcut API calls, so you can retrieve and handle web information in one line—just like a built-in Roblox API.
To setup, simply modify the AuthKey module, paste your authentication key, and you’re good to go!
Repository & documentation: g-captain-t/roblox-trello-get
Get the module: https://www.roblox.com/library/5900054227/
*Possible* Upcoming Features
- HTTP request limiting
- Built-in error handling
- Retrieve due date in os timestamps
Documentation
Documentation
BOARDS
Trello.GetBoard (string BoardID)
Returns the board information table from the Trello board ID (found in the board link).
Example: Trello.GetBoard("ry8F0DOb")
Trello.GetBoardLists (string BoardID)
Returns table containing list information tables that are in the board.
Trello.GetBoardFields (string BoardID, table fieldsTable)
Returns a table of only specific information of the board from fieldsTable.
Example: Trello.GetBoardFields ("ry8F0DOb", {"id", "name"})
Returns: { ["id"] = "ry8F0DOb", ["name"] = "Team Goal Setting Central" }
Trello.SearchListInBoard (string BoardID, string ListName)
Returns the list information table by list name. Will return nil if not found.
Example: Trello.SearchCardInBoard ("ry8F0DOb", "Goal Template")
Trello.SearchCardInBoard (string BoardID, string CardName)
Returns the card information table by card name. Will return nil if not found.
Example: Trello.SearchCardInBoard ("ry8F0DOb", "Goal Stakeholders")
LISTS
Trello.GetList (string ListID)
Returns the board information table from the list ID.
Example: Trello.GetList("5c3e2f948af0c952c092ce42")
Trello.GetListCards (string ListID)
Returns table containing card information tables within the list.
Trello.GetListFields (string ListID, table fieldsTable)
Returns a table of only specific information of the list from fieldsTable.
Trello.GetListName (string ListID)
Returns the list’s name in a string from the list ID.
Trello.SearchCardInList (string ListID, string CardName)
Returns the card information table by card name. Will return nil if not found.
CARDS
Trello.GetCard (string CardID)
Returns the board information table from the card ID.
Trello.GetCardFields (string CardID, table fieldsTable)
Returns a table of only specific information of the card from fieldsTable.
Trello.GetCardList (CardID)
Returns a card’s list’s information table
Trello.GetCardName (string CardID)
Returns the card name in string.
Trello.GetCardDesc (string CardID)
Returns the card description in string.
Trello.GetCardMembers (string CardID)
Returns the card members in a table.
Trello.GetCardLabels (string CardID)
Returns the card labels names in a table.
Example Code
-- Example: Getting the card names in a list
local Trello = require(script.Parent.Parent)
local board = "ry8F0DOb"
local listName = "Goal Template" -- Remember to not use special characters such as "%", "\"
local List = Trello.SearchListInBoard(board, listName) -- Get the list info table
if List then
local ListCards = Trello.GetListCards(List["id"]) -- Gets the cards from the list id
for i, card in pairs (ListCards) do
print(card["name"]) -- Print each card name
end
end
I had a lot of fun digging into APIs with this module, and I hope this could help you develop your projects. If you’d like to suggest features, provide feedback, build off this module and share it, please feel free to do so!