Пример #1
0
 /**
  * GET /my/tasks
  * 自分のタスク一覧を取得する.
  * @TODO ページネーション未対応.
  *
  * 引数0:assigned_by_account_id タスクの依頼者のアカウントID.
  * 引数1:status タスクのステータス. (open, done)
  */
 public function fetchMyTasks()
 {
     $query_parameters = array('assigned_by_account_id' => isset($this->args[0]) ? $this->args[0] : null, 'status' => isset($this->args[1]) ? $this->args[1] : null);
     $query_parameters = self::filteringParameters($query_parameters);
     $this->loadModel('Chatwork.My');
     $results = My::get(array('action' => '/tasks', 'query_parameters' => $query_parameters));
     $this->out(print_r($results, true));
 }