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

Commit f6fb022

Browse files
committed
Merge pull request #16 from siftware/feature/create-task-tasklist
Create Tasks on a tasklist
2 parents 72d9243 + 0fa969d commit f6fb022

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Rossedman/Teamwork/Tasklist.php

+10
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,14 @@ public function tasks($args = null)
7070
return $this->client->get("$this->endpoint/$this->id/tasks", $args)->response();
7171
}
7272

73+
/**
74+
* Create Task
75+
* GET /tasklists/{id}/tasks.json
76+
*
77+
* @return mixed
78+
*/
79+
public function createTask($data)
80+
{
81+
return $this->client->post("tasklists/$this->id/tasks", ['todo-item' => $data])->response();
82+
}
7383
}

0 commit comments

Comments
 (0)