Getting Started
This is for the latest version of the TrelloAPI module. If you're looking for an older version, check the Legacy Versions tab on the left.
Getting the Module
Before we begin, we'll of course need to get the module. To do this, we just need to go to one of the sources listed below.
Once you get the .rbxm
file, you can import it to your game by using the "Import Model" button in Studio.
Getting our Trello API Info
So assuming that you already have a Trello account, we need to get our Trello API Information. To do this, we need to visit the App Keys page. Scroll down a bit and you should see the Personal Key section.
Store that somewhere. Now we need your Token. We can get that by looking down a bit. It should be right under the Personal Key section.
Click on the red text shown above, and follow the instructions on how to get your Token. Store that somewhere as well.
Using the Module
Now that we have everything we need (for now), we can start to use the module. First, we'll need to initialize it. An example is shown below on how to do it.
local TrelloModule = require(PATH.TO.MODULE)
--[[
@param TrelloKey string -- The Trello API Key
@param TrelloToken string -- The Trello API Token
@param DebugEnabled boolean -- Wether or not to enable debugging
@return table -- Returns different API modules
--]]
local TrelloAPI = TrelloModule.new(TrelloKey, TrelloToken, DebugEnabled)
We have now created our TrelloAPI object, but how do we use this? Every category of functions are called "modules". To initiate these modules, it's quite simple.
local TrelloModule = require(PATH.TO.MODULE)
local TrelloAPI = TrelloModule.new(TrelloKey, TrelloToken, DebugEnabled)
local BoardsAPI = TrelloAPI.Boards -- Trello boards module
local ListsAPI = TrelloAPI.Lists -- Trello lists module
local CardsAPI = TrelloAPI.Cards -- Trello cards module
MAKE SURE TO ENABLE HTTP REQUESTS IN-GAME
Last updated