Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

All methods are available on documentation page: http://docs.otapi.net/en.

Для получения ответа от api в формате xml нужно отправить GET/POST запрос на адрес Send GET/POST request to http://otapi.net/service/Для получения ответа от api в формате json нужно отправить GET/POST запрос на адрес  to get response from api in xml format.

Send GET/POST request to http://otapi.net/service-json/К адресу нужно добавить имя метода, и параметры в GET/POST виде, в зависимости от запроса и его размера. Некоторые параметры могут не поместиться в GET-запрос, поэтому проще сделать всегда POST to get response from api in json format.

Add method name and parameters in GET/POST form to the address depending on query and its size. Some parameters may not fit in GET query, so it is always easier to make POST.

The ErrorCode node necessarily comes in the response from api, if it is not equal to 'Ok' and not equal to 'BatchError' - it is necessary to process the error. Errors must be separated by value in the ErrorCode and / or SubErrorCode nodes.

В ответе от api обязательно приходит узел ErrorCode, если он не равен 'Ok' и не равен 'BatchError' - необходимо обработать ошибку. Ошибки необходимо разделять по значению в узлах ErrorCode и/или SubErrorCode.

...