npm install smartsupp-widget --save
Initialize script with your KEY
and options. For more information about options visit Docs
import * as smartsupp from 'smartsupp-widget'
smartsupp.init('YOUR_KEY', {
hideWidget: true,
})
After init
, you can use api, eg:
smartsupp.setName('John Doe')
For more info visit https://docs.smartsupp.com