Skip to content
Luis edited this page Jan 30, 2019 · 14 revisions

Welcome to the Wiki! Here, you will find all the documentation for the API! This is a project that I started a while ago, and I am very happy to release it!
Discord: https://discord.gg/RBhP6Ad


Getting started

Every script in the repository is a module script.
To start, simply require() the script named "Main" like this:
local Trello = require(pathToMain)
Open auth, and place your token and key where indicated.


Constructors

Creating a new Board/List/Card

Trello.new(className, name, parent) is the constructor for every class in the API.

  • className - string - specifies what type of object to create
  • name - string - sets the initial name of the object
  • parent - object - only used to create a List or a Card, must be a Board or a List object, respectively.
    The function creates a new element in Trello, and returns the corresponding object.

Fetching a board object by name.

Trello:GetBoardByName(name)
If a board is found with the specified name, returns the board object, else, returns nil.


Classes

Clone this wiki locally