Installation
Installing with a Package Manager
npm install @wepin/pin-jsyarn add @wepin/pin-js// 1. Import the package
import { WepinPin } from '@wepin/pin-js'
// 2. Initialization
const wepinPin = new WepinPin({
appKey: 'your-wepin-app-key',
})const initWepinPin = async () => {
const { WepinPin } = await import('@wepin/pin-js');
const wepinPin = new WepinPin({
appKey: '',
});
await wepinPin.init();
}Last updated
Was this helpful?