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

Commit

Permalink
add Project::createMilestone()
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbirk committed Jun 11, 2015
1 parent 4002ead commit a952eb0
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 a952eb0

Please sign in to comment.