@@ -190,13 +190,16 @@ public function deleteCustomFieldValue(int $custom_field_id)
190190 /**
191191 * List all custom fields
192192 * @see https://developers.activecampaign.com/reference#retrieve-all-dealcustomfielddata-resources
193+ * @param array $query_params
193194 * @return string
194195 */
195- public function listAllCustomFields ()
196+ public function listAllCustomFields (array $ query_params = [] )
196197 {
197198 $ req = $ this ->client
198199 ->getClient ()
199- ->get ('/api/3/dealCustomFieldMeta ' );
200+ ->get ('/api/3/dealCustomFieldMeta ' , [
201+ 'query ' => $ query_params
202+ ]);
200203
201204 return $ req ->getBody ()->getContents ();
202205 }
@@ -221,27 +224,33 @@ public function listAllCustomFieldValues(array $query_params)
221224 /**
222225 * List all pipelines
223226 * @see https://developers.activecampaign.com/reference#list-all-pipelines
227+ * @param array $query_params
224228 * @return string
225229 */
226- public function listAllPipelines ()
230+ public function listAllPipelines (array $ query_params = [] )
227231 {
228232 $ req = $ this ->client
229233 ->getClient ()
230- ->get ('/api/3/dealGroups ' );
234+ ->get ('/api/3/dealGroups ' , [
235+ 'query ' => $ query_params
236+ ]);
231237
232238 return $ req ->getBody ()->getContents ();
233239 }
234240
235241 /**
236242 * List all stages
237243 * @see https://developers.activecampaign.com/reference#list-all-deal-stages
244+ * @param array $query_params
238245 * @return string
239246 */
240- public function listAllStages ()
247+ public function listAllStages (array $ query_params = [] )
241248 {
242249 $ req = $ this ->client
243250 ->getClient ()
244- ->get ('/api/3/dealStages ' );
251+ ->get ('/api/3/dealStages ' , [
252+ 'query ' => $ query_params
253+ ]);
245254
246255 return $ req ->getBody ()->getContents ();
247256 }
0 commit comments