diff --git a/liquidplanner.php b/liquidplanner.php index 19f5e15..3997d34 100755 --- a/liquidplanner.php +++ b/liquidplanner.php @@ -296,6 +296,25 @@ public function projects($projectid=NULL) return($response); } + + + /** + * Retrieves the specified package or a list of packages + * + * @param int $packageid ID of package + * + * @return array Response from Liquid Planner + * + * @access public + */ + public function packages($packageid=NULL) + { + $url = $this->serviceurl.'/packages'.($packageid ? '/'.$packageid : ''); + $response = $this->lp_get($url); + return($response); + } + + /** * Retrieves the specified activity or a list of activities *