March 29, 2022

JS API methods

After properly installing API, include a corresponding snippet on every page in your app, immediately before the closing </body> tag and identify your user.

After this step you can call these JS API methods to manage your user data:

  • Create and Update Contact   
    То add a new contact to the Contact List or update an existing one, call the Contact Creation API method. Also, add additional properties to your new contact in case of need.  
    Fire an update event on your web page. Call Contact Update API method and add/update properties of your contact in case of need.

  • Fire Event  
    To send a user event to Wooxy, you need to fire an event on your web page. Initialize the event object and call the “Fire Event” API method.

  • Web Push Prompt  
    To Call Web Push Notification One-click Subscription Prompt on your website, you need to fire an event on your web page. Call the “Show web push subscription prompt” modal API method.

  • Telegram Link  
    To generate a Telegram bot one-click subscription link on your website, you need to fire an event on your web page. Call the “Generate telegram subscription link” API method.