Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding boards via Trello::Client #294

Open
keithpitty opened this issue Aug 16, 2020 · 3 comments
Open

Finding boards via Trello::Client #294

keithpitty opened this issue Aug 16, 2020 · 3 comments

Comments

@keithpitty
Copy link

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
Copy link
Author

keithpitty commented Aug 16, 2020

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.

@hoppergee
Copy link
Collaborator

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

@kwent
Copy link

kwent commented Dec 30, 2020

Thanks @keithpitty. Saving me some time here !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants