Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5 from cmbirk/master
Browse files Browse the repository at this point in the history
Add CreateTasklist method to Project
  • Loading branch information
rossedman committed Jun 16, 2015
2 parents 64aa9c9 + 6240a95 commit 0df2116
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Rossedman/Teamwork/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ public function createMilestone($args) {
return $this->client->post("$this->endpoint/$this->id/milestones", ['milestone' => $args])->response();
}

/**
* Create tasklist associated with this project
* POST /projects/{project_id}/tasklists.json
*
* @param $args
*
* @return mixed
*/
public function createTasklist($args) {
return $this->client->post("$this->endpoint/$this->id/tasklists", ['todo-list' => $args])->response();
}

/**
* Tasklists
* GET /projects/{project_id}/tasklists.json
Expand Down

0 comments on commit 0df2116

Please sign in to comment.