LiveDesk JavaScript APIs

LiveDesk JavaScript APIs

Our development team has been hard at work to provide the developer community with new features and ways of working through our new initiatives.  With that said, I am happy to announce the launch of our LiveDesk JavaScript APIs.


LiveDesk APIs are easy-to-use, quick-to-implement, designed to customize your Chat Widget based on your existing web presence and preferences.

LiveDesk APIs are categorized as per your preferences from Visitor APIs to UI event handlers.  You just have to follow a few steps in order to setup the JavaScript APIs.


How to Use?


You need to add the required JavaScript APIs in your website along with the LiveDesk Embed Code to control the behaviour of the Chat embedded in your website.


     • The JavaScript API code should be included after the LiveDesk Embed Code.
     • All the API codes must be enclosed within the LiveDesk Global Handler. 


What is LiveDesk Global Handler?


LiveDesk Global Handler ensures that the LiveDesk is now ready to call / use JavaScript API. Ensure all JavaScript APIs are added inside the LiveDesk Global Handler  "$zoho.livedesk.ready=function()"


Example:
<script  type="text/javascript">var $zoho= $zoho||{livedesk:{values:{},ready:function({}}};vard=document;s=d.createElement("script");s.type="text/javascript";s.defer=true;s.src="https://livedesk.zoho.com/Livedesk/float.ls?embedname=livedesk";t=d.getElementsByTagName("script")[0];t.parentNode.insertBefore(s,t);<script>


<script>
 $zoho.livedesk.ready=function()
  {
 # Insert your LiveDesk Api here # 
   }
</script>


Need to know more on our APIs visit here.


Get yourself thrilled


Regards,
Ralph