diff --git a/composer.json b/composer.json index 3bd66e2..a378430 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "getresponse/getresponse", "description": "GetResponse API v3 client library.", - "version": "0.0.2", + "version": "0.1.2", "homepage": "https://github.com/GetResponse/getresponse-api-php", "keywords": ["GetResponse", "api", "email"], "type": "library", @@ -23,4 +23,4 @@ "autoload": { "files": ["src/GetResponseAPI3.class.php"] } -} \ No newline at end of file +} diff --git a/src/GetResponseAPI3.class.php b/src/GetResponseAPI3.class.php index 2782e2f..0d72947 100644 --- a/src/GetResponseAPI3.class.php +++ b/src/GetResponseAPI3.class.php @@ -75,9 +75,9 @@ public function ping() * Return all campaigns * @return mixed */ - public function getCampaigns() + public function getCampaigns($params = array()) { - return $this->call('campaigns'); + return $this->call('campaigns?' . $this->setParams($params)); } /**