PHP SDK to use Trello Api
$key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
See how to get API Key and Token
$trelloBoard = new TrelloBoard($key, $token);
$boardId = 'xxxxxxxxxxxxxxxxxxxxxxxx';
// Getting board info
$return = $trelloBoard->get($boardId);
// Getting list of members from board
$return = $trelloBoard->get($boardId, 'members');
// Getting list of cards from board
$arguments = array('fields' => 'id,name,idList');
$return = $trelloBoard->get($boardId, 'cards', $arguments);
$trelloCard = new TrelloCard($key, $token);
$cardId = 'xxxxxxxxxxxxxxxxxxxxxxxx';
// Getting Card Info
$return = $trelloCard->get($cardId);
// Getting Card Actions
$return = $trelloCard->get($cardId, 'actions');
// Creating a Card
$data = array(
'name' => 'Test card',
'desc' => 'This is a test card',
'due' => null,
'idList' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
'urlSource' => null
);
$return = $trelloCard->post($data);