midu-superid-plugin
## Install
Last updated 10 months ago by erpanomer .
Original npm · Tarball · package.json
$ cnpm install midu-superid-plugin 
SYNC missed versions from official npm registry.

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...

Current Tags

  • 1.3.22                                ...           latest (10 months ago)

46 Versions

  • 1.3.22                                ...           10 months ago
  • 1.3.21                                ...           a year ago
  • 1.3.20                                ...           a year ago
  • 1.3.19                                ...           a year ago
  • 1.3.18                                ...           a year ago
  • 1.3.17                                ...           a year ago
  • 1.3.16                                ...           a year ago
  • 1.3.15                                ...           a year ago
  • 1.3.14                                ...           a year ago
  • 1.3.13                                ...           a year ago
  • 1.3.12                                ...           a year ago
  • 1.3.11                                ...           a year ago
  • 1.3.10                                ...           a year ago
  • 1.3.9                                ...           a year ago
  • 1.3.8                                ...           a year ago
  • 1.3.7                                ...           a year ago
  • 1.3.6                                ...           a year ago
  • 1.3.5                                ...           a year ago
  • 1.3.4                                ...           a year ago
  • 1.3.3                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (35)

Copyright 2014 - 2016 © taobao.org |