Open Phantomea opened 8 years ago
Oukey, I'm gonna answer myself, hope someone will need to use this and it will be useful.
This is how I did it:
$boards = $client->members()->boards()->all('me');
foreach($boards as $board)
$client->boards()->members()->invite($board['id'], 'email of trello user', 'Full name of the person');
Hello I have and issue with adding new member to board.
I can get board which I want, can use i.e. ->setLabelNames() but can't use setMemberships();
Is this function "that" function what I need to add new member to the board?
I used exactly this code
$currentBoard->setMemberships([ 'idMembership' => 'id of member', 'type' => 'normal' ])->save();
Please help me :( I really need it to finish my work.