Here is the curl call for to get the chats for Zopim online live chat platform.
List of Chats Done in zopim
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.zopim.com/api/v2/chats"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_USERPWD, "EMAIL" . ":" . "PASSWORD"); $result = curl_exec($ch);
Chat Detail Api
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.zopim.com/api/v2/chats".CHAT_ID); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_USERPWD, "EMAIL" . ":" . "PASSWORD"); $result = curl_exec($ch);