Chat Tag

Acquire live chat dashboard gives your team leader an overview of agent activity at any given time.

Chat Tag API body parameter in add your timezone, date start, date end and filter_type. Filter Type in today, yesterday, daily, weekly and monthly parameter available.

Chat Tag

Body

Response JSON


{
    "success": true,
    "error": null,
    "data": {
        "chat_tag": {
            "total": {
                "tag_name": [
                    "new customer (03 Sep)",
                    "new customer (03 Sep)",
                    "Support (03 Sep)",
                    "Support (03 Sep)",
                    "Existing customer  (03 Sep)",
                    "Support (03 Sep)",
                    "new customer (03 Sep)",
                    "Existing customer  (03 Sep)"
                ],
                "total_tag": [
                    2.7,
                    5.41,
                    2.7,
                    2.7,
                    13.51,
                    5.41,
                    8.11,
                    2.7
                ]
            }
        }
    }
}

Sample Code

 $curl = curl_init();

	curl_setopt_array($curl, array(
		CURLOPT_URL => "https://app.acquire.io/analytics/general/chat-tag",
		CURLOPT_RETURNTRANSFER => true,
		CURLOPT_ENCODING => "",
		CURLOPT_MAXREDIRS => 10,
		CURLOPT_TIMEOUT => 30,
		CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
		CURLOPT_CUSTOMREQUEST => "POST",
		CURLOPT_POSTFIELDS => "timezone=Europe%2FLondon&date_start=2018-05-23%2000%3A00%3A00&date_end=2018-07-18%2023%3A59%3A59&filter_type=",
		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