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 #3 from cmbirk/master
Browse files Browse the repository at this point in the history
add Project::createMilestone()
  • Loading branch information
rossedman committed Jun 11, 2015
2 parents 4002ead + a952eb0 commit 64aa9c9
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 @@ -138,6 +138,18 @@ public function milestones($args = null)
return $this->client->get("$this->endpoint/$this->id/milestones", $args)->response();
}

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

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

0 comments on commit 64aa9c9

Please sign in to comment.