From b8e2e3eab190f69f6bc0fc802776a67f8670703b Mon Sep 17 00:00:00 2001 From: Ross Edman Date: Sun, 24 May 2015 23:04:51 -0500 Subject: [PATCH] Update README and Project Method --- README.md | 6 ++++++ src/Rossedman/Teamwork/Project.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 18c86e3..88eebb7 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,12 @@ Get time totals for a tasklist $teamwork->tasklist($id)->timeTotal(); ``` +Get tasklists associated with a project + +```php +$teamwork->project($id)->tasklists(); +``` + #### Milestone Get all milestones in Teamwork. diff --git a/src/Rossedman/Teamwork/Project.php b/src/Rossedman/Teamwork/Project.php index 80dd278..43760e8 100644 --- a/src/Rossedman/Teamwork/Project.php +++ b/src/Rossedman/Teamwork/Project.php @@ -144,7 +144,7 @@ public function milestones($args = null) * * @return [type] [description] */ - public function tasklist($args = null) + public function tasklists($args = null) { return $this->client->get("$this->endpoint/$this->id/tasklists", $args)->response(); }