Skip to content

Commit 4b1598f

Browse files
committed
List all deal fields
1 parent 3e47954 commit 4b1598f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/deals/Deals.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,18 @@ public function deleteCustomFieldValue(int $custom_field_id)
187187
return $req->getBody()->getContents();
188188
}
189189

190+
/**
191+
* List all custom fields
192+
* @see https://developers.activecampaign.com/reference#retrieve-all-dealcustomfielddata-resources
193+
* @return string
194+
*/
195+
public function listAllCustomFields()
196+
{
197+
$req = $this->client
198+
->getClient()
199+
->get('/api/3/dealCustomFieldMeta');
200+
201+
return $req->getBody()->getContents();
202+
}
203+
190204
}

0 commit comments

Comments
 (0)