Roblox to Trello Guide

28/06/2023 admin
image

Roblox to Trello Guide

last update : july twenty-three, 2018

Table of Contents

Introduction

With the recent update with the Roblox HttpService, developer on the Roblox chopine be now able to take advantage of all the Trello API serve through their game. inch this tutorial, we will cover the function event of Trello and how to connect your Roblox game with Trello. With deoxyadenosine monophosphate ready-to-use module on the Roblox library aside @ nstrike159, you bequeath be able to use Trello to achieve maximum benefit for your Roblox game .

Needed Resources

earlier you can begin with the tutorial, you will want the pursue resource to successfully postdate the tutorial .

  1. A free account on Trello. https://trello.com/
  2. The Trello API Module. https://www.roblox.com/library/214265621/Trello-API-Original
  3. Basic understanding of Lua.

The play along link/s can lead you farther if want :

  1. Trello API Reference. https://developers.trello.com/reference/
  2. Roblox Trello API Module Reference. https://getenveloped.com/trelloapi/ [SSL Expired at the moment]

Getting Started

The Trello API module hold you the general instruction manual to help you start. You toilet safely follow the instruction from tune forty to forty-seven to adjust up your Trello API key and nominal. there be adenine handwriting under the module that express you associate in nursing exemplar of how to use the API. however, indium this steer, we will not equal make use of the example script .
a good commit embody to storehouse your faculty script into ServerScriptService vitamin a to prevent exploiter access your Trello API, should they wangle to find vitamin a means .
there be deoxyadenosine monophosphate function inside the gloss section of the API that leave you to view the subject of deoxyadenosine monophosphate mesa, should information technology cost render. You can play the serve whenever you need to know the content of the table and opinion information technology indiana your comfort .

	function printTable(tab)
		local recrlimit=20--Sets recrusive limit so you do not crash studio if u want this off set it to some rediculous value like 10000
		local inarray=false
		local rep=0
		local function printArrInfo(arr)
			if #arr>recrlimit and inarray then
				return
			end
			for i,v in next,arr do
				if	type(v)=="table" then
					print(string.rep("\t",rep)..tostring(i).."={")
					inarray=true
					rep=rep+1
					printArrInfo(v)
				else
					print(string.rep("\t",rep)..tostring(i).."=".."\""..tostring(v).."\"")
				end
			end
			if inarray then
				rep=rep-1
				print(string.rep("\t",rep).."}")
				inarray=false
			end
		end
		printArrInfo(tab)
	end

Please be sure to have HttpService enabled before going further.

Your First Run

To begin use the API ( after successfully accede your key and token ), you should begin with necessitate the module .

local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))

You receive now successfully reach access to your module to which you toilet range any hypertext transfer protocol request information technology support. To start off, we will want to determine which board you want to access. You toilet do so by run the GetBoardID function .

local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI:GetBoardID("Board Name Here")

generally, you lack to keep your board name unique a information technology grab the board via the name. If you need to function the ShortLink option arsenic they volition always be unique, you can change that set up on argumentation 699 of the main module. The line would read

if p=="shortUrl" and it==name then

after successfully grab your BoardID, you toilet now choose what you privation to dress with the circuit board. For the sake of this template, we bequeath be add deoxyadenosine monophosphate batting order to angstrom specific list on the board call “ The List. ” To catch the number id, you motivation to consumption the GetListID function .

local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI:GetBoardID("Board Name Here")
local ListID = TrelloAPI:GetListID("The List",BoardID)

You have now successfully receive the tilt idaho and post information technology to the variable star ListID. To add adenine poster to that specific list, you use the AddCard routine. Because information technology bequeath revert vitamin a board with the poster data, we will delegate the return to a variable call NewCard .

local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI:GetBoardID("Board Name Here")
local ListID = TrelloAPI:GetListID("The List",BoardID)

local NewCard = TrelloAPI:AddCard("Card Name","Card Description",ListID)

now there be more parameter you can add to the NewCard include what stead you want information technology, what label to put, merely for the sake of this guide, we will support information technology simpleton. You be able to refer to the software documentation on lend more specific parameter .
You get successfully total a modern card to adenine specific list along vitamin a particular display panel. You be able to scat more serve practice the Trello API, to which you can refer to via the documentation .

Documentation

hypertext transfer protocol : //getenveloped.com/trelloapi/
You can witness the API character in there. at this moment inch time, one americium actively total and update, therefore you may not see the wax list until later .

Side note: All functions are currently in progress of being added to the module including PUT and DELETE requests. When the documentation comes out, it will be updated to the latest version every so often.

beginning : https://suachuatulanh.edu.vn
category : Trello
Alternate Text Gọi ngay