ruby-trello icon indicating copy to clipboard operation
ruby-trello copied to clipboard

Finding boards via Trello::Client

Open keithpitty opened this issue 4 years ago • 3 comments

I'm trying to make sense of the documentation for multiple users.

For example, it includes:

Thread.new do
  @client_bob.find(:boards, "bobs_board_id")
end

If I've created @client_bob as an instance of Trello::Client with an oauth_token and oauth_token_secret, first of all I'm surprised that there isn't a boards method that I can use via Trello::Client. Even so, in the example provided in the README, what is "bobs_board_id" supposed to be if I want to find the boards that belong to Bob?

What am I missing?

keithpitty avatar Aug 16 '20 12:08 keithpitty

So I now see that I need to do the following to get many boards:

@client_bob.find_many(Trello::Board, '/members/me/boards')

It took me a bit of figuring out. Now I'm thinking that the documentation could use some improvement. However, it's late here. I'll submit a PR when I get a chance.

keithpitty avatar Aug 16 '20 13:08 keithpitty

Yes, you are right. The documentation needs some improvement. I will spend some times on it in future. Also, welcome to submit a PR.

hoppergee avatar Aug 16 '20 14:08 hoppergee

Thanks @keithpitty. Saving me some time here !

kwent avatar Dec 30 '20 16:12 kwent