/** * @param int $boardid The ID of the board. You can see the board ID on the dashboard screen, in the upper right corner of each board. * @param string $fromdate The date after which the activities of interest happened. Accepts the following formats: ‘2012-05-05′, ’10 September 2012′. * @param string $todate The date before which the activities of interest happened. Accepts the following formats: ‘2012-05-05′, ’10 September 2012′. * @param int $page Default is 1 * @param array $options * - resultsperpage Default is 30 * - author Default is ALL * - eventtype Options : Transitions, Updates, Comments, Blocks. Default is All * - textformat Options: “plain” (default) and “html”. If the plain text format is used, the HTML tags are stripped from the history details. * * @return array */ public function getBoardActivities($boardid, $fromdate, $todate, $page = 1, $options = array()) { $call = new EtuDev_KanbanizePHP_APICall(); $call->setFunction('get_board_activities'); $d = array('boardid' => $boardid, 'fromdate' => $fromdate, 'todate' => $todate, 'page' => $page); foreach ($options as $k => $v) { $d[$k] = $v; } $call->setData($d); return $this->doCall($call); }
/** * @param int $boardid The ID of the board where the task to be moved is located. You can see the board ID on the dashboard screen, in the upper right corner of each board. * @param int $taskid The ID of the task to be deleted. * * @param array $changeData * * - title Title of the task * - description Description of the task * - priority One of the following: Low, Average, High * - assignee Username of the assignee (must be a valid username) * - color Any color code (e.g. 99b399) DO NOT PUT the # sign in front of the code!!! * - size Size of the task * - tags Space separated list of tags * - deadline Dedline in the format: yyyy-mm-dd (e.g. 2011-12-13) * - extlink A link in the following format: https:\\github.com\philsturgeon. If the parameter is embedded in the request BODY, use a standard link: https://github.com/philsturgeon. * - type The name of the type you want to set. * * * @return 1|string|null */ public function editTask($boardid, $taskid, $changeData = array()) { $call = new EtuDev_KanbanizePHP_APICall(); $call->setFunction('edit_task'); $d = array('boardid' => $boardid, 'taskid' => $taskid); foreach ($changeData as $k => $v) { $d[$k] = $v; } $call->setData($d); $resp = $this->doCall($call); if ($resp) { return @$resp['status'] ?: null; } return null; }