@maple-tech/red-packet-sdk
v1.0.15
Published
The Entrance SDK Of Maple's Chinese New Year HongBao Activity
Downloads
68
Readme
red-packet SDK
The Entrance SDK Of Maple's Chinese New Year HongBao Activity
Installation
pnpm i @maple-tech/red-packet-sdk
Usage
CMD
import { initMapleRedPacket } from '@maple-tech/red-packet-sdk'
initMapleRedPacket({
platform: "ave" | "maplesale" | "maplenft" | "mapleins" | "mapledex"
}).renderToBody()
UMD
;(function () {
var script = document.createElement('script')
script.onload = function () {
MapleRedPacketSDK.initMapleRedPacket({
platform: "ave" | "maplesale" | "maplenft" | "mapleins" | "mapledex"
}).renderToBody()
}
script.defer = true
script.src = 'https://unpkg.com/@maple-tech/red-packet-sdk/dist/index.iife.js'
document.body.appendChild(script)
})()