-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from bcho/feat-api/update.me
feat(api): add `user.update_me` API
- Loading branch information
Showing
3 changed files
with
157 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# user.update_me | ||
|
||
更新当前用户信息。 | ||
|
||
## 请求方式 | ||
|
||
``` | ||
PATCH {base_url}/user.update_me | ||
``` | ||
|
||
## 请求参数 | ||
|
||
**需要登录** | ||
|
||
| 参数名称 | 参数类型 | 参数是否必须? | 说明 | 样例 | | ||
|:--------:|:--------:|:--------------:|------|------| | ||
| `name` | `string` | 否 | 用户名 (@name) | beary_bot | | ||
| `full_name` | `string` | 否 | 用户全名 | BearyBot | | ||
|
||
## 响应 | ||
|
||
### 200 | ||
|
||
```javascript | ||
{ | ||
"inactive": false, | ||
"role": "normal", | ||
"email": "support@bearyinnovative.com", | ||
"name": "BearyBot", | ||
"type": "assistant", | ||
"created": "2017-01-11T12:28:31.000+0000", | ||
"id": "=bwMkR", | ||
"avatars": { | ||
"small": null, | ||
"medium": null, | ||
"large": null | ||
}, | ||
"team_id": "=bw52O", | ||
"full_name": "倍洽小助手", | ||
"mobile": null, | ||
"profile": { | ||
"bio": null, | ||
"position": null, | ||
"skype": null | ||
} | ||
} | ||
``` | ||
### 错误响应 | ||
|
||
```javascript | ||
{ | ||
"code": // error code, | ||
"error": "unexpected error" | ||
} | ||
``` | ||
|
||
<!-- generated by gen_doc.js --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ GET {base_url}/vchannel.info | |
|
||
### 200 | ||
|
||
```json | ||
```javascript | ||
// Channel | ||
{ | ||
"private": false, | ||
|