Installation
To install using Package Manager
Wepin Widget Javascript SDK can be installed an an npm package.
This package can only be used in web environment. It cannot be used in Android or iOS hybrid apps (Webview).
Enter the following npm install
command in the terminal.
Once the installation is complete, you can confirm that it has been added to the "dependencies" section in the package.json file.
Once the installation is complete, you can prepare to use Wepin by inserting your App ID and App Key and calling the init function as shown below.
To install using <script>
Tag
<script>
Tag Add the JavaScript file to the HTML page where you want to integrate the Wepin widget.
Once the script is loaded, a Wepin
object is created in the global object (window), and you can use this object to proceed with initialization.
Last updated