Trello Lists to Roblox

What is this tutorial and why has it been created?

Well, I’ve had a lot of people including friends asking me how to link a trello list to roblox. I’ve used the example of checking if a player name is in a list for in this post, however if you understand this then you can do much more!

Just follow the steps below and you can understand how to link a trello list to Roblox!

Step 1

Firstly, you’re going to need the following bits of information:

  • Trello list ID.
  • Trello API key.
  • Trello API token.

You can find your key and token here, finding a list id is easy and I’ll explain it below.

Step 2

Enable http requests for your game if you haven’t already.

Step 3

Next, you’re going to need to generate your url for the list, this is simply substituting the values into the url. Make sure to keep the url to one side, as you’ll need it later on.

"https://api.trello.com/1/lists/LISTIDHERE/cards?key=KEYHERE&token=TOKENHERE"

Step 4

Now you’re going to need to add your script to studio, in this example we’ll just make it print that a players name is in a list when they join. Copy the following piece of code and paste it into a script in ServerScriptService.

local HttpService = game:GetService("HttpService")
local url = "https://api.trello.com/1/lists/LISTIDHERE/cards?key=KEYHERE&token=TOKENHERE"

function getPlayerCheck(username)
	local req = HttpService:GetAsync(url)
	local jsontable = HttpService:JSONDecode(req)
	for _, card in pairs(jsontable) do
		if string.lower(card.name) == string.lower(username) then
			print("This player is on the trello list!")
		end
	end
end

game.Players.PlayerAdded:Connect(function(Player)
	getPlayerCheck(Player.Name)
end)

Make sure to replace the url with the url you created earlier.

Step 5

Now you can edit it as you wish for your own purposes, I recommend you use string manipulation to check for user id if you’re considering using this for holding data etc.

How do you get a Trello list ID?

Please ensure you understand how to make a trello board and list, this is explained in a tutorial when you make a trello account. There are a few ways to get a trello list ID, however I myself insert a card into the list then get the ID manually using this card. Simply type .json at the end of the cards URL and search “idlist”, it will be the first one you come to if there are more than one. The gif below shows you how to do the above actions if you still need help.

https://gyazo.com/9a6ddbfcba3a175738546d72cd2db6b5

I hope this has been useful to you, be sure to ask if you have any questions.

10 Likes

Really Helpful thing to release to the public!

1 Like

I think this would fit better in #resources:community-tutorials.

Yeah I agree actually, I’ve moved it.

1 Like

Let me know if anyone has anything particular they need help with using trello.