JavaScript APIs

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.

Explore more about LiveDesk APIs and learn how to squeeze more power out of them for your business. 

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.

Note:
  • The JavaScript API code should be included after the LiveDesk Embed Code.
  • All the API codes must be enclosed within the LiveDesk Global Handler. "$zoho.livedesk.ready=function()" 
  • You can call any number of JS Apis here.
Example
  1. <script  type="text/javascript">var $zoho= $zoho || {livedesk:{values:{},ready:function({}}};vard=document;s=d.createElement
  2. ("script");s.type="text/javascript";s.defer=true;s.src="https://livedesk.zoho.com/Livedesk/float.ls
  3. ?embedname=livedesk";t=d.getElementsByTagName("script")[0];t.parentNode.insertBefore(s,t);</script>
  4. <script>
  5.  $zoho.livedesk.ready=function()
  6.   {
  7.    # Insert your LiveDesk Api here # 
  8.   }
  9. </script>

Keywords Explained

    • <VARIABLE NAME>  This should be replaced with the exact value for the variable.
    • LiveDesk Global Handler   All JavaScript APIs should be added inside the LiveDesk Global Handler "$zoho.livedesk.ready"
    • API  Explains the Api format.
    • Parameters   Explains the data to be given for an API.
    • *Parameter –These values are must, to get the APIs working.

Top