Example Usage of
contact_automation_list
View automations for a contact
Description: | View all automations that are associated with a specific contact. | ||||||||||||||||||||||||||||||||||||||||
Endpoint: | /admin/api.php?api_action=contact_automation_list |
||||||||||||||||||||||||||||||||||||||||
HTTP method: | GET |
||||||||||||||||||||||||||||||||||||||||
Supported output formats: | xml, json, serialize |
||||||||||||||||||||||||||||||||||||||||
Requires authentication: | true |
||||||||||||||||||||||||||||||||||||||||
Parameters: |
* indicates requirement. Underlined params include in URL, otherwise as part of the post body. POST data must be formatted as
Content-Type: application/x-www-form-urlencoded. We don't accept any other input formats like JSON.
|
||||||||||||||||||||||||||||||||||||||||
Example response: |
|
PHP Example
This is an example of using the contact_automation_list
call with PHP. You can replicate the same idea in virtually any other programming language. The example shown is using serialize
as the output format. You can change that to XML
or JSON
if you would like.
<?php
// Set up an object instance using our PHP API wrapper.
define("ACTIVECAMPAIGN_URL", "https://{ACCOUNT}.api-us1.com");
define("ACTIVECAMPAIGN_API_KEY", "{API_KEY}");
require_once("../activecampaign-api-php/includes/ActiveCampaign.class.php");
$ac = new ActiveCampaign(ACTIVECAMPAIGN_URL, ACTIVECAMPAIGN_API_KEY);
$response = $ac->api("contact/automation/list?offset=0&limit=50&contact_id=22");
echo "<pre>";
print_r($response);
echo "</pre>";?>
// Set up an object instance using our PHP API wrapper.
define("ACTIVECAMPAIGN_URL", "https://{ACCOUNT}.api-us1.com");
define("ACTIVECAMPAIGN_API_KEY", "{API_KEY}");
require_once("../activecampaign-api-php/includes/ActiveCampaign.class.php");
$ac = new ActiveCampaign(ACTIVECAMPAIGN_URL, ACTIVECAMPAIGN_API_KEY);
$response = $ac->api("contact/automation/list?offset=0&limit=50&contact_id=22");
echo "<pre>";
print_r($response);
echo "</pre>";?>
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.