Друк

The login and password for access to the API can be provided only after the signing of the contract with "Meest Express"

Parameters for the test client:

ClientUID: 8458f0b0-930f-11e2-a91e-003048d2b473

Sends XML with POST method on the address:

http://api1c.meest-group.com/services/1C_Query.php

<?xml version="1.0" encoding="UTF-8"?>
<param>
<login>login</login>
<function>function</function>
<where>where</where>
<order>order</order>
<sign>sign</sign>
</param>

You can use the web solution ("sandbox") to test the features of the search function:

http://api1c.meest-group.com/services/test/send_form.php

The description of thefields is presented in Table 1.1. Table 1.1. Description of form fields

1.1. Table 1.1. Description of form fields

Field Description
login Username, assigned after entering the Contractor into the system
function The name of the function we use to enter the record.
where Search terms.
The result returns the first 100 entries, unless filtered in the "Where" field. The fields in which the user can perform filtering are marked "yes" in the tables 'Description of the contents of the XML code tags'.
order Sort entries.
If no fields and conditions for sorting were entered, the result - in an arbitrary order.
sign = md5 ( login + password + function + where + order)

The Errors code is shown in Table 1.2

Table 1.2. The Errors code

ErrorsCode  DescriptionUA  Description
000 Успішне виконання ОК
100 Помилка з’єднання Connection Error
101 Помилка авторизації Аuthorization Error
102 Функція не знайдена Function is not found
103 Документ не знайдено Document not found
104 Каталог не знайдено Directory not found
105 Не вдалося обробити запит Failed to parse request
106 Внутрішня помилка 1С Internal error 1C
107 Внутрішня помилка Internal error
108 Помилка запиту Error request
109 Помилка структури XML Error XML structure
110 З'єднання розірвано Disconnected
111 Запит обробляється The request is processed
113 Будь яка помилка при створенні Any error

 

Example of realization on PHP:

<?php
header ('Content-Type: text/xml; charset=UTF-8');
$login = '';
$password = ''; 
$function = '';
$where = ''; 
$order = '';
$sign = md5 ($login . $password . $function . $where . $order);

$xml = '<?xml version="1.0" encoding="utf-8"?>
<param>
<login>' . $login .'</login>
<function>' . $function .'</function>
<where>' . $where .'</where>
<order>' . $order .'</order>
<sign>' . $sign .'</sign>
</param>';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api1c.meest-group.com/services/1C_Query.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, Array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>