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 #13 from ashleyhindle/feature/add-task-edit
Browse files Browse the repository at this point in the history
Added edit method to the Task class
  • Loading branch information
rossedman committed Nov 18, 2015
2 parents bdf11af + 98ed843 commit d6262be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Rossedman/Teamwork/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,15 @@ public function timeTotal()
{
return $this->client->get("$this->endpoint/$this->id/time/total")->response();
}

/**
* Edit A Task
* PUT tasks/{id}.json
*
* @return mixed
*/
public function edit($args)
{
return $this->client->put("$this->endpoint/$this->id.json", ['todo-item' => $args])->response();
}
}

0 comments on commit d6262be

Please sign in to comment.