From 00ddb5de1427b745d83cf15deb70915acc62571b Mon Sep 17 00:00:00 2001 From: Dmitri Vereshchagin Date: Fri, 29 Jan 2016 12:12:47 +0300 Subject: [PATCH] Add opportunity to supply params with `getCampaigns` --- src/GetResponseAPI3.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GetResponseAPI3.class.php b/src/GetResponseAPI3.class.php index 2782e2f..de1a5ac 100644 --- a/src/GetResponseAPI3.class.php +++ b/src/GetResponseAPI3.class.php @@ -73,11 +73,12 @@ public function ping() /** * Return all campaigns + * @param $params * @return mixed */ - public function getCampaigns() + public function getCampaigns($params = array()) { - return $this->call('campaigns'); + return $this->call('campaigns?' . $this->setParams($params)); } /**