Installation
To install using Package Manager
npm install @wepin/widget-sdk{
"name": "wepin-widget-test-app",
"version": "1.0.0",
"description": "Wepin Widge Test App"
"main": "app.js",
"author": "[email protected]",
"dependencies": {
"@wepin/widget-sdk": "^1.0.0"
}
}// 1. import SDK
import '@wepin/widget-sdk'
const testAppKey = 'ak_test_ghq1D5s1sfG234sbnhdsw24mnovk313' // Test App Key
const testAppId = 'app_id_eg12sf3491azgs520' // Test App ID
// 2. Initialize
const Wepin = window.Wepin
const wepin = await Wepin.init(
testAppId,
testAppKey
)To install using <script> Tag
<script> Tag Last updated
Was this helpful?