Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trello API - Get Organization's Boards with ID

Tags:

trello

api

I have been working with the Trello API (pretty neat, btw), but I can't simply found why I can't get the list of boards of an organization. The documentation says that I have to make a call in the form of:

GET https://api.trello.com/1/organizations/myorganization/boards?key=<my_app_key>

But I keep getting an empty array as response. I am member of the organization that I want the boards from, but still, I don't see any boards.

If I try doing this but through the members (I can get my membership's boards), I get only a board that I created.

Thanks in advance for you comments!

Regards,

like image 693
Hugo Avatar asked Feb 28 '12 16:02

Hugo


1 Answers

Unless all of the boards are public, you will need to provide both an application key and a token authorizing you to see the boards in the organization.

The application key is used only to let Trello know which application is making the request; it doesn’t tell Trello who the request is being made on behalf of. For example, if you’re using your own application key, you still need to generate a token to be able to access any of your private boards.

The "Getting Started" guide includes a section on Getting a Token from a User

like image 96
Daniel LeCheminant Avatar answered Nov 15 '22 09:11

Daniel LeCheminant