https://github.com/smartsupp/smartsupp-sdk-widget
https://github.com/smartsupp/smartsupp-sdk-widget
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smartsupp/smartsupp-sdk-widget
- Owner: smartsupp
- License: mit
- Created: 2021-03-11T15:34:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T06:42:18.000Z (over 5 years ago)
- Last Synced: 2025-10-03T19:46:45.378Z (9 months ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Smartsupp Widget SDK
## Installation
```bash
npm install smartsupp-widget --save
```
## Usage
Initialize script with your `KEY` and options. For more information about options visit [Docs](https://docs.smartsupp.com/chat-box/configuration/)
```typescript
import * as smartsupp from 'smartsupp-widget'
smartsupp.init('YOUR_KEY', {
hideWidget: true,
})
```
After `init`, you can use api, eg:
```typescript
smartsupp.setName('John Doe')
```
For more info visit https://docs.smartsupp.com