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.

17 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.

2 Likes

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

1 Like

I have an issue, i tried implementing it with nametags but only the latest card gets the nametag in roblox.

Show me your code, are you definitely comparing names/userids?

1 Like

Here.
image (6)

Okay so only the person at the bottom of the list is getting d == true?

1 Like

Yeah, but the value for the others in the list does not change.

Can you show me your list(s) please?

1 Like

If you need the token/key message me so I can give it to you privately.

Alright essentially it’s gonna keep returning false unless the person is the last value because it continues to go through the loop. Your best thing to do is instead of doing result = true just doing return true so that then it will return straight away and. Replace result = true with return true and you should be fine.

1 Like

Thank you, but now I am getting an error “too many requests” any idea how to fix?

Send the request for req when the script first runs around line 9, so it only sends 4 HTTP requests and not one every time a new player joins.

1 Like

Hello, i would suggest you to use my TrelloAPI A New and easy solution for trello: