ListsAPI
How to Use
local Trello = TrelloModule.new(TrelloKey, TrelloToken) -- Initializing the module
local TrelloLists = Trello.Lists -- Initializing the ListsAPI
Functions
TrelloLists:GetListID(BoardID, ListName)
Gets a list's ID.
BoardID
is your Board's ID and ListName
is the name of the list you want to get the ID of.
This function returns the list's ID. If it fails to get the ID, it returns false.
local Trello = TrelloModule.new(TrelloKey, TrelloToken) -- Initializing the module
local TrelloLists = Trello.Lists -- Initializing the ListsAPI
local ListID = TrelloLists:GetListID('BoardID', 'Example List')
if not ListID then
print('No List ID')
else
print('The List ID is '..ListID)
end
Last updated