Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

TrelloAPI not working. Help?

Asked by
Stix92 0
8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

Okay. I tried doing this and it isn't working. I followed everything the man did in the tutorial. HttpService is Enabled. What am I doing wrong?

------

ap = require(game.Workspace.TrelloAPI)
BoardID = ap:GetBoardID("Testing Board")
ListID = ap:GetListID("Pending Calls")

-------


script.Parent.MouseButton1Down:connect(function()
    CardID = ap:AddCard("Hello Youtube!","This is a Description",BoardID)
end)

~Stix92

0
Are you sure you've added the Module Script? Wutras 294 — 8y

1 answer

Log in to vote
0
Answered by
RafDev 109
8 years ago

I noticed two mistakes in your code:

1) In line 5, you didn't use BoardID as the second parameter to GetListID, as expected by the API 2) In line 11, you didn't use ListID as the third parameter to AddCard, as expected by the API

Thus, this should work:

------

ap = require(game.Workspace.TrelloAPI)
BoardID = ap:GetBoardID("Testing Board")
ListID = ap:GetListID("Pending Calls",BoardID)

-------


script.Parent.MouseButton1Down:connect(function()
    CardID = ap:AddCard("Hello Youtube!","This is a Description",ListID)
end)

Hope I helped.

Ad

Answer this question