1.0.8 • Published 5 years ago

vhall-sdk v1.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

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'
}
1.0.8

5 years ago

1.0.6

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago