v2 (First public preview)
Pre-release
Pre-release
This is purely experimental at this point! We don't recommend using this in your production environment as things can change quickly.
This is the first version of v2
that is going to be released so that you can toy with.
It's still quite incomplete, but you can begin to play with it to get the hang of it.
Recommendations
You can (and should) use this plugin to access the full API documentation from the v2 module (v1 doesn't have this!).
The API is still in design phase. This means that method names can change until v2 is complete - File an issue if you have a suggestion for v2!
Breaking changes from v1
A lot of them.
Need an example? Take a look at this script!
- The
auth
module has been removed; - You can now control more than one user at a time. All you need to do is to create a
TrelloEntity
:
local trello = require(game.ServerScriptService.Trello)
local me = trello.new("API KEY", "API TOKEN")
- Making boards (and in the future, lists, boards and labels) requires you to index the
TrelloClass
module:
local trello = require(game.ServerScriptService.Trello)
local TrelloClass = require(game.ServerScriptService.Trello.TrelloClass)
local me = trello.new("API KEY", "API TOKEN")
local board = TrelloClass.Board.new(me, "Board Name", true) -- The new board will be public
- Fetching a board from Trello will now absolutely require the board id:
local existentBoard = TrelloClass.Board.fromRemote(me, boardId)
- Changing metadata is now done "locally" and then pushed to Trello via the
:Commit()
method:
local board = TrelloClass.Board.new(me, "Board Name", true)
board.Name = "I changed my mind lol"
board.Public = false
-- These changes haven't arrived Trello yet
board:Commit()
-- Now they have!