midu-superid-plugin
midu-superid-plugin
Install
npm i -S midu-superid-plugin
Import Plugin
import SuperID from 'midu-superid-plugin'
// or
const SuperID = require('midu-superid-plugin')
Use Plugin
import SuperID from 'midu-superid-plugin'
const appID = 'Your Midu Chrome Extentions Appid'
const superid = await SuperID.connect(appID)
if (!superid) {
return console.error('no Midu Chrome Extensions')
}
// login Midu Extentions
const user = await superid.login()
// returns user info
console.log(user)
Plugin Api
login 插件登陆
-
parameters (object)
channelId: 登陆的路径(企业邮箱,链空间等等) default: 1 -
returns
用户信息包括 Session -
examples
// login Midu Extentions
const user = await superid.login()
// returns user info
console.log(user)
settingSuperID 设置Superid
-
parameters (object)
superId: 用户设置的superid (必填) -
returns
成功信息 -
examples
superid.settingSuperID({ superId: 123 })
purchaseSuperID 购买超级用户名
-
parameters (object)
loginName: 用户需要购买的超级用户名 (必填)
currentPrice: 该用户名的价格 (必填) -
returns
成功信息 -
examples
superid.purchaseSuperID({
loginName: 'midu888',
currentPrice: '1000'
})
getPayOrderId 获取订单编号
-
parameters (object)
orderId: 支付 时发送的成功是返回的订单id (必填) -
returns
成功信息 -
examples
superid.getPayOrderId({
orderId: '121345622551222'
})
updating...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.3.22 | ^2.6.10 | ||
| 1.3.21 | ^2.6.10 | ||
| 1.3.20 | ^2.6.10 | ||
| 1.3.19 | ^2.6.10 | ||
| 1.3.18 | ^2.6.10 | ||
| 1.3.17 | ^2.6.10 | ||
| 1.3.16 | ^2.6.10 | ||
| 1.3.15 | ^2.6.10 | ||
| 1.3.14 | ^2.6.10 | ||
| 1.3.13 | ^2.6.10 | ||
| 1.3.12 | ^2.6.10 | ||
| 1.3.11 | ^2.6.10 | ||
| 1.3.10 | ^2.6.10 | ||
| 1.3.9 | ^2.6.10 | ||
| 1.3.8 | ^2.6.10 | ||
| 1.3.7 | ^2.6.10 | ||
| 1.3.6 | ^2.6.10 | ||
| 1.3.5 | ^2.6.10 | ||
| 1.3.4 | ^2.6.10 | ||
| 1.3.3 | ^2.6.10 | ||
| 1.3.1 | ^2.6.10 | ||
| 1.3.0 | ^2.6.10 | ||
| 1.2.4 | ^2.6.10 | ||
| 1.2.3 | ^2.6.10 | ||
| 1.2.2 | ^2.6.10 | ||
| 1.2.1 | ^2.6.10 | ||
| 1.2.0 | ^2.6.10 | ||
| 1.1.2 | ^2.6.10 | ||
| 1.1.1 | ^2.6.10 | ||
| 1.1.0 | ^2.6.10 |
Showing the latest 30 of 46. See every release on npm