Triggers List

Using this api for get acquire app in created all triggers list.

Parameter

Value

Path

https://app.acquire.io /api/account/triggers/list

Method

POST

Authorization

Bearer [YOUR_API_AUTH_TOKEN]

Content-type

application/x-www-form-urlencoded

Body

Parameter

Value

Page

1

Limit

10

Response JSON


{
    "success": true,
    "error": null,
    "data": {
        "rows": [
            {
                "total": 13,
                "id": 15624,
                "status": "disable",
                "name": "Dialog Flow Bot Test",
                "account_id": 15,
                "date_start": null,
                "type": "web",
                "date_end": null,
                "opened": 0,
                "clicked": 0,
                "replied": 0,
                "ac_name": "John Deo"
            },
            {
                "total": 13,
                "id": 15209,
                "status": "active",
                "name": "FB Test Bot",
                "account_id": 15,
                "date_start": null,
                "type": "web",
                "date_end": null,
                "opened": 0,
                "clicked": 0,
                "replied": 0,
                "ac_name": "John Deo"
            }
        ],
        "count": 13,
        "page": 1,
        "limit": 10
    }
}

Sample Code

$curl = curl_init();

    curl_setopt_array($curl, array(
        CURLOPT_URL => "http://app.acquire.io/account/triggers/list",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => "",
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 30,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "POST",
        CURLOPT_POSTFIELDS => "page=1&limit=10&search=",
        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