Triggers Detail
Trigger all details get using this api and trigger id send in body.
Parameter
Value
Path
https://app.acquire.io /api/account/triggers/edit
Method
POST
Authorization
Bearer [YOUR_API_AUTH_TOKEN]
Content-type
application/x-www-form-urlencoded
Body
Parameter
Value
id
14339
Response JSON
{
"success": true,
"error": null,
"data": {
"id": 15624,
"account_id": 15,
"name": "Dialog Flow Bot Test",
"status": "disable",
"title_enable": "yes",
"keep_enable": "yes",
"order": 0,
"date_start": null,
"date_end": null,
"matching_rules": "all",
"type": "web",
"opened": 0,
"clicked": 0,
"replied": 0,
"_old_id": null,
"account_trigger_flter": [
{
"id": 23141,
"when": "match",
"trigger_id": 15624,
"account_id": 15,
"output": "apply_chatbot",
"output_data": "93",
"status": "active"
}
],
"account_trigger_rule": [
{
"id": 27348,
"trigger_id": 15624,
"account_id": 15,
"input": "page_url",
"input_data": "s/[YOUR_ACCOUNT_ID]?page=features",
"condition": "match",
"status": "active",
"extra_fields": ""
}
]
}
}
Sample Code
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://app.acquire.io/account/triggers/edit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "id=14339",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_API_AUTH_TOKEN]",
"Content-Type: application/x-www-form-urlencoded"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Last updated