@open-node/eip-user-event

    0.2.1 • Public • Published

    EIPUserEvent SDK 用法

    // 引入SDK
    const EIPUserEvent = require('@open-node/eip-user-event');
    
    // 初始化
    const sdk = EIPUserEvent('https://__API_ROOT__', errorFn);
    
    // 记录行为,具体参考用户行为设计文档
    sdk.add(__EVENT_TYPE, __ATTRS__);
    
    // 当前用户登录后,启动发送
    sdk.start(__USER_ID__, __TOKEN__);

    Keywords

    none

    Install

    npm i @open-node/eip-user-event

    DownloadsWeekly Downloads

    4

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    2.04 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar