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
  1. API Modules
  2. ListsAPI

:GetListID()

Gets a list's ID from name.

Example usage and parameters:

local BoardID = 'w0j1CQz2'
local ListName = 'Example List'

--[[
    @param BoardID string -- The board's ID.
    @param ListName string -- The name of the list.
    @return string or false -- Returns list ID, or false if fails.
--]]
local ListID = ListsAPI:GetListID(BoardID, ListName)

if ListID then
    print("The list's ID is "..ListID)
end
PreviousListsAPINextCardsAPI

Last updated 2 years ago