cdaguerre/php-trello-api

Question: How to add board and organization members?

Opened this issue · 3 comments

Hi,

I'm trying to add members to both an organization and a board.

Regarding the board, I've tried things like:
$board->setMemberships(['idMembership' => $baboon->trello_username, 'type' => $role])
->save();

And loads of other things but without success. I also tried to put that member above into an array because the function's doc says 'An array of array' but that's pretty much all.

Any ideas?

I'm running into the same problem.

I'm seeing that calling getId() on a Trello\Model\Member object returns the username instead...

So I think that's the issue.

Guys, did you find out how to do it?

Partially responded on #43