for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Trello\Api\Card;
use Trello\Api\AbstractApi;
/**
* Trello Card Actions API
* @link https://trello.com/docs/api/card
*
* Fully implemented.
*/
class Actions extends AbstractApi
{
protected $path = 'cards/#id#/actions';
* Get actions related to a given card
* @link https://trello.com/docs/api/card/#get-1-cards-card-id-or-shortlink-actions
* @param string $id the card's id or short link
* @param array $params optional parameters
* @return array
public function all($id, array $params = array())
return $this->get($this->getPath($id), $params);
}
* Add comment to a given card
* @link https://trello.com/docs/api/card/#post-1-cards-card-id-or-shortlink-actions-comments
* @param string $text comment message
public function addComment($id, $text)
return $this->post($this->getPath($id).'/comments', array('text' => $text));
* Remove comment to a given card
* @link https://trello.com/docs/api/card/#delete-1-cards-card-id-or-shortlink-actions-idaction-comments
* @param string $commentId the comment's id
public function removeComment($id, $commentId)
return $this->delete($this->getPath($id).'/comments/'.rawurlencode($commentId));