Команда для отправки принятого факса на e-mail.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="error.xsd"/> <xs:complexType name="SendToEmailType"> <xs:attribute name="subject" use="required" type="xs:string"/> <xs:attribute name="body" use="required" type="xs:string"/> <xs:attribute name="to" use="required" type="xs:string"> <xs:annotation> <xs:documentation xml:lang="en"> The list of the email addresses, separated by comma. </xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="links" use="required" type="xs:string"> <xs:annotation> <xs:documentation xml:lang="en"> The list of the attachment's links, separated by comma. </xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> <!-- in --> <xs:element name="in"> <xs:complexType> <xs:all> <xs:element name="request"> <xs:complexType> <xs:sequence> <xs:element name="send_to_email" type="SendToEmailType"/> </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>
Ответы:
200
404 — Ошибки передаются в теле ответа
Ошибки, передаваемые в теле ответа:
- send_email_error
- file_not_found
- cannot_perform_cmd
Добавить комментарий