File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ hide_title: true
1414
1515- 获取 APP 管理员 token。
1616
17- ⚠️ ** 注意** : OpenIM Server 内置了一个 APP 管理员,它的 ` userID ` 是` imAdmin ` :
17+ ⚠️ ** 注意** : OpenIM Server 内置了一个 APP 管理员,它的 ` userID ` 是` imAdmin `
1818
1919### 请求方式
2020
@@ -36,15 +36,15 @@ hide_title: true
3636{
3737 "secret" : " openIM123" ,
3838 "platformID" : 1 ,
39- "userID" : " 111111 "
39+ "userID" : " imAdmin "
4040}
4141```
4242
4343| 字段名 | 选填 | 类型 | 说明 |
4444| :--------- | :--- | :----- | ----------------------------------------------------------------------------------------------------------------- |
4545| secret | 必填 | string | openIM 密钥,见 config/share.yaml 中 secret 字段 |
4646| platformID | 必填 | int | 平台 ID, 1:IOS,2:Android,3:Windows,4:OSX,5:Web,6:MiniWeb,7:Linux,8:Android Pad,9:IPad,10:admin |
47- | userID | 必填 | string | 用户 ID 或管理员 ID, 如生成管理员 token, 需填写 ` imAdmin ` |
47+ | userID | 必填 | string | APP 管理员 ID,为 ` imAdmin ` |
4848
4949### 成功返回示例
5050
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ hide_title: true
1414
1515- 获取用户的 token。
1616
17- ⚠️ ** 注意** : OpenIM Server 内置了一个 APP 管理员,它的 ` userID ` 是` imAdmin ` :
1817
1918### 请求方式
2019
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ hide_title: true
2727| header 名 | 示例值 | 选填 | 类型 | 说明 |
2828| :---------- | :------------ | :--- | ------ | ---------------------------- |
2929| operationID | 1646445464564 | 必填 | string | 用于全局链路追踪,建议使用时间戳,在每个请求中独立 |
30+ | token | eyJhbxxxx3Xs | 必填 | string | [ 管理员 token] ( docs/restapi/apis/authenticationManagement/getToken.mdx ) |
3031
3132### 请求参数示例
3233
You can’t perform that action at this time.
0 commit comments