vhall-sdk

1.0.8 • Public • Published

Vhall

微吼直播sdk

Usage

npm i vhall-sdk -S

修复了crypto一个实例只能调用一次的 bug

const Vhall = require('vhall-sdk')
 
let  Vhall = require('vhall-sdk');
let vhall = new Vhall ({auth_type:2, app_key: 'app_key', secret: 'secret'});
 
vhall.execute('webinar', 'update', {
    webinar_id: 'webinar_id',
    user_id: 'user_id',
    exist_3rd_auth: 1,
    auth_url: 'auth_url'
}).then((err, res) => {
    console.log(err, res)
});
 
 
以更新直播信息为例子
 
let vhall = new Vhall (options);
 
let options = {
    auth_type:2,
    app_key: 'app_key',
    secret: 'secret'
    };
// 如果 auth_type = 1
 
let options = {
    auth_type:1,
    account: 'account',
    password: 'password'
    };
 
 
//
 
http://e.vhall.com/api/vhallapi/v2/webinar/update
http://e.vhall.com/api/vhallapi/v2/(resource_name)/(function_name)
 
vhall.execute('webinar', 'update', options).then((err, res) => {
    console.log(err, res)
});
 
options = {
   webinar_id: 'webinar_id',
   user_id: 'user_id',
   exist_3rd_auth: 1,
   auth_url: 'auth_url'
}

/vhall-sdk/

    Package Sidebar

    Install

    npm i vhall-sdk

    Weekly Downloads

    3

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    34.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • liusai