Trello API not recognizing my board ID (no errors)

i have already read the neccasary parts of it The token would be a variable in the module he is calling the functions from.

local api = require(game.ServerScriptService.APIs.TrelloAPI)
print("api")

local boardID = api:GetBoardID("Fortress")

print("board")
local listID = api:GetListID("Generals",boardID)
print("variables")

local newCard = api:AddCard("Test","Test123",listID)
print("card")

Where do you see in this code that uses the “token that you’ve generated”?

You’re using the trello api, when you never called for the token function.

I don’t see a token function, it shows that you get the token manually.

This is what it came with (I organized it into folders)
image

The module handles to loading with tokens etc

where did you get the module so i can download it

i’ve already stated MANY times that the api + download is at the top of the topic (first reply)

My bad I saw the api i just didnt click the starter guide thing.

Yes, you get the token manually, but did you do it the right way? I bet you did not.

And you’re missing the other required stuff to complete this script in order to function properly.

I have already read this like 15 minutes ago

return “&key=”…key…"&token="…token

I can already see that it uses the incorrect query paramaters for the request. I’ll test it and see if this is the issue

I did do it the right way, in the module script if you didn’t put in a token in the Token value, it would give an error with instructions, so I went to the site with the info I was supposed to place and it let me to a page, I accepted the authorization and then it gave me a token, and I pasted it into the value.

Okay, and did you get the script to read the board id? If not, you wrote it wrong.

I don’t know what you mean by that, please elaborate what you mean by get the script to read the board id, are you asking me to print the board id?

Go to your Trello Board
Add ".json" to end of the URL
Format the JSON so it's readable (you can find a JSON viewer online)
Search for idBoard - this will list your full Board ID

Example:

This isnt their problem, I just figured out the solution.

What is the solution, this is really helpful if you have it.

1 Like

I just tested my change and it works. To fix the issue go to the addOn function and change the return value to - " addon " -

new function –

function getAddon()
	if token~="" then
		addon="?key="..key.."&token="..token
	elseif getfenv(0).token~=nil then
		local val=getfenv(0).token
		addon="?key="..key.."&token="..val
	else
		error([[-Instructions.
	  1. Go to this link and click allow: https://trello.com/1/authorize?key=[Your api key is at https://trello.com/app-key]&name=Roblox+Api&expiration=never&response_type=token&scope=read,write	
	  2. Copy the token in the page sent to you
	  3. Paste the token in the Value of Token]])
	end
	return addon--"&key="..key.."&token="..token
end 

tell me if this works for you or not

I’m pretty sure the purpose of GetBoardID is meant to do that for the person, but whatever.

What line is this exactly? I cannot find it.

Yes it is, but the way you’re using the API, it’s not being recognized.