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 #16 from siftware/feature/create-task-tasklist
Browse files Browse the repository at this point in the history
Create Tasks on a tasklist
  • Loading branch information
rossedman committed Jan 27, 2016
2 parents 72d9243 + 0fa969d commit f6fb022
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Rossedman/Teamwork/Tasklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,14 @@ public function tasks($args = null)
return $this->client->get("$this->endpoint/$this->id/tasks", $args)->response();
}

/**
* Create Task
* GET /tasklists/{id}/tasks.json
*
* @return mixed
*/
public function createTask($data)
{
return $this->client->post("tasklists/$this->id/tasks", ['todo-item' => $data])->response();
}
}

0 comments on commit f6fb022

Please sign in to comment.