邀请共享
描述
该接口用于邀请/取消邀请指定与会人共享桌面。
调试
您可以在API Explorer中调试该接口。
URI
PUT /v1/mmc/control/conferences/participants/share/invite
请求参数
|
参数 |
是否必须 |
类型 |
位置 |
描述 |
|---|---|---|---|---|
|
conferenceID |
是 |
String |
Query |
会议ID。 |
|
participantID |
是 |
String |
Query |
被邀请的与会者标识。 |
|
X-Conference-Authorization |
是 |
String |
Header |
会控Token,通过获取会控token接口获得。 |
|
share |
是 |
Integer |
Body |
邀请标志。
|
状态码
|
HTTP状态码 |
描述 |
|---|---|
|
200 |
操作成功。 |
|
400 |
参数异常。 |
|
401 |
未鉴权或鉴权失败。 |
|
403 |
权限受限。 |
|
500 |
服务端异常。 |
请求消息示例
PUT /v1/mmc/control/conferences/participants/share/invite?conferenceID=986947855&participantID=4a5rg64ag5p8pvvnam1rr6m8lqra6a61
Connection: keep-alive
content-type: application/json
user-agent: WeLink-desktop
Host: api.meeting.huaweicloud.com
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)
x-conference-authorization: Basic Y25yYjQyNmNhMzgyMWY4YTE4ZTc4ZDU5ZGE1NzJhNDIxNjQ0YzUyZGZkOWE0NzMwMjk4
{
"share":1
}
响应消息示例
HTTP/1.1 200 Date: Wed, 18 Dec 2019 06:20:40 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 39 Connection: keep-alive Expires: 0 Pragma: No-cache Cache-Control: no-cache http_proxy_id: 571b4dfceff545fae29aa14cea761079 Server: api-gateway X-Request-Id: f78b007ec2dabf1498620131c7bc19e0
错误码
当您使用华为云会议服务端API时,如果遇到“MMC”或者“USG”开头的错误码,请参考华为云API错误中心。
CURL命令示例
curl -k -i -H 'content-type: application/json' -X PUT -d '{"share": 1}' https://api.meeting.huaweicloud.com/v1/mmc/control/conferences/participants/share/invite
?conferenceID=986947855&participantID=4a5rg64ag5p8pvvnam1rr6m8lqra6a61