설치
패키지 매니저로 설치하기
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
import '@wepin/widget-sdk'
const testAppKey = 'ak_test_ghq1D5s1sfG234sbnhdsw24mnovk313' // 테스트용 앱 키
const testAppId = 'app_id_eg12sf3491azgs520' // 테스트용 앱 ID
// 2. 초기화
const Wepin = window?.Wepin
const wepin = await Wepin.init(
testAppId,
testAppKey
)<script> 태그로 설치하기
<script> 태그로 설치하기Last updated
Was this helpful?