Команда удаления участника конференции.
Метод HTTP-запроса:
POST
Шаблон HTTP-запроса:
http://host:port/<DOMAIN>/service/cc/arm/remove_participant
Коды ответов:
200
403 — Ошибки передаются в теле ответа
Ошибки, передаваемые в теле ответа:
XSD-схема XML-запроса/ответа:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="error.xsd"/>
<xs:complexType name="RemoveParticipant">
<xs:attribute name="conference_id" type="xs:string" use="required"/>
<xs:attribute name="participant_id" type="xs:string" use="required"/>
</xs:complexType>
<!-- in -->
<xs:element name="in">
<xs:complexType>
<xs:all>
<xs:element name="request">
<xs:complexType>
<xs:sequence>
<xs:element name="remove_participant" type="RemoveParticipant"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- out -->
<xs:element name="out">
<xs:complexType>
<xs:choice>
<xs:element name="response">
<xs:complexType>
<xs:sequence>
<xs:element name="ok"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="error" type="errorType"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema> |
Пример использует технологию websocket |
Пример:
Запрос:
0100000002100017remove_participant
[
{
"_name": "in",
"_content": [
{
"_name": "request",
"_content": [
{
"_name": "remove_participant",
"_attributes": {
"conference_id": "1607929308885",
"participant_id": "0"
}
}
]
}
]
}
] |
Код ответа:
200
Ответ:
0100000002250017200
[
{
"_name": "out",
"_attributes": {
"xmlns:xs": "http://www.w3.org/2001/XMLSchema-instance",
"xs:noNamespaceSchemaLocation": "remove_participant.xsd"
},
"_content": [
{
"_name": "response",
"_content": [
{
"_name": "ok"
}
]
}
]
}
] |