• Features
  • API Docs
  • Help Center
  • Log in
  • Sign Up
  • Features
  • API Docs
  • Help Center
  • Log in
  • Sign Up

JS API methods

52 views March 29, 2022 0

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:

  1. 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.
  2. Fire Event  
    To send a user event to SmartSender.io, you need to fire an event on your web page. Initialize the event object and call the “Fire Event” API method.
  3. 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.
  4. 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.
Similar posting
  • Integration with Mailchimp
  • Zapier Integration
  • Add contact manually
  • Web Push Prompt Settings in JS
  • How to fire event via JS
  • How to create and update contact via JS
Company
  • About us
  • Team
  • YouTube
  • Facebook
  • Google Business
Legal
  • Terms of Use
  • Privacy Policy
  • Anti-Spam Policy
  • Cookie Statement
Resources
  • Api Documentation
  • FAQ
  • Knowledge Base
  • SmartSender Blog
  • Marketplace

We use cookies to make SmartSender’s website a better place. Cookies help to provide a more personalized experience for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).

got it