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

Commit

Permalink
add Project::createTasklist()
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbirk committed Jun 16, 2015
1 parent 64aa9c9 commit 6240a95
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 6240a95

Please sign in to comment.