Skip to content

v2 (First public preview)

Pre-release
Pre-release
Compare
Choose a tag to compare
@ddavness ddavness released this 04 Sep 15:34
· 35 commits to v2-dev since this 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!

  1. The auth module has been removed;
  2. 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")
  1. 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
  1. Fetching a board from Trello will now absolutely require the board id:
local existentBoard = TrelloClass.Board.fromRemote(me, boardId)
  1. 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!