From bc5421c20a9e1414c29b16b2f590b601ec838bb2 Mon Sep 17 00:00:00 2001 From: MAYBUGgh Date: Mon, 10 Apr 2017 15:41:12 +0300 Subject: [PATCH] Added getFromFields method --- src/GetResponseAPI3.class.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/GetResponseAPI3.class.php b/src/GetResponseAPI3.class.php index 2782e2f..88b340b 100644 --- a/src/GetResponseAPI3.class.php +++ b/src/GetResponseAPI3.class.php @@ -326,6 +326,17 @@ public function getForms($params = array()) { return $this->call('forms?' . $this->setParams($params)); } + + /** + * retrieve all from-fields + * @param array $params + * + * @return mixed + */ + public function getFromFields($params = array()) + { + return $this->call('from-fields?' . $this->setParams($params)); + } /** * Curl run request @@ -403,4 +414,4 @@ private function setParams($params = array()) return http_build_query($result); } -} \ No newline at end of file +}