You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Api\Card\Labels class from php-trello-api, but this class must be called with a client as first parameter.
But, nothing was up to get the client in your wrapper. Did you think it's a good idea ? Create a getter for the client in your wrapper ?
I need this because "classic call" doesn't work :
$card = Trello::manager()->getCard();
$card->setBoardId(Trello::getDefaultBoardId());
$card->setListId(Trello::getDefaultListId());
$card->setName('My card');
$card->setDescription('A description');
// $card->addLabel('green'); //-> $this->data['labels'] doesn't exists, a error was thrown// $card->setLabels([['color' => 'green']]); //-> Dunno what kind of array is needed (taken from Card.php on line 728)$card->save();
Maybe you have a idea ? Or I can fork and add a getClient function, but not so usefull if you don't need this !
Thanks !
The text was updated successfully, but these errors were encountered:
Hi guys,
I want to use Api\Card\Labels class from php-trello-api, but this class must be called with a client as first parameter.
But, nothing was up to get the client in your wrapper. Did you think it's a good idea ? Create a getter for the client in your wrapper ?
I need this because "classic call" doesn't work :
Maybe you have a idea ? Or I can fork and add a getClient function, but not so usefull if you don't need this !
Thanks !
The text was updated successfully, but these errors were encountered: