QVGK's TrelloAPI
  • QVGK's TrelloAPI
  • Getting Started
  • API Modules
    • BoardsAPI
      • :GetBoardByID()
    • ListsAPI
      • :GetListID()
    • CardsAPI
      • :GetCardsInList()
      • :GetCardByName()
      • :CreateCard()
      • :DeleteCard()
  • Legacy Versions
    • V0.14
      • Setting Up
      • API Objects
        • ListsAPI
        • CardsAPI
        • BoardsAPI
Powered by GitBook
On this page
  • How to Use
  • Functions
  • TrelloLists:GetListID(BoardID, ListName)
  1. Legacy Versions
  2. V0.14
  3. API Objects

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
PreviousAPI ObjectsNextCardsAPI

Last updated 2 years ago