new DingtalkIsvUser(config, app)
- Source:
egg-dingtalk-isv-user插件
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | Egg.js插件配置 |
app |
Object | Egg.js应用 |
Methods
(async) getUser(access_token, userid) → {Object}
- Source:
- See:
从用户编号获得用户详情信息
Parameters:
Name | Type | Description |
---|---|---|
access_token |
String | 令牌 |
userid |
String | 用户编号 |
Returns:
用户详情信息
- Type
- Object
(async) getUseridByUnionid(access_token, unionid) → {Object}
- Source:
- See:
从用户编号获得用户详情信息
Parameters:
Name | Type | Description |
---|---|---|
access_token |
String | 令牌 |
unionid |
String | 钉钉unionid |
Returns:
用户编号
- Type
- Object
(async) getUserInfo(access_token, code) → {Object}
- Source:
- See:
从免登授权码获取用户简明信息
Parameters:
Name | Type | Description |
---|---|---|
access_token |
String | 令牌 |
code |
String | 免登授权码 |
Returns:
用户简明信息
- Type
- Object