{"id":262961,"date":"2015-08-05T14:34:01","date_gmt":"2015-08-05T10:34:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262961"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262961","title":{"rendered":"PHP \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 API \u041d\u043e\u0432\u043e\u0439 \u041f\u043e\u0447\u0442\u044b"},"content":{"rendered":"<p>             \u041f\u0440\u0438\u0432\u0435\u0442 \u0434\u0440\u0443\u0437\u044c\u044f.<br \/>  \u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\">PHP \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 (SDK)<\/a> \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 API 2 \u041d\u043e\u0432\u043e\u0439 \u041f\u043e\u0447\u0442\u044b (\u041d\u041f).<\/p>\n<p>  <b>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u0435\u0442 SDK<\/b>:  <\/p>\n<ul>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 <\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430\u043c\u0438 <\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 <\/li>\n<li>\u041c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0447\u0430\u0442\u043d\u044b\u0445 \u0444\u043e\u0440\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0435\u0441\u0442\u0440\u0430\u043c\u0438 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0445 <\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u043c\u0438:<br \/> \n<ul>\n<li>\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435<\/li>\n<li>\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 (\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f)<\/li>\n<li>\u0443\u0434\u0430\u043b\u044f\u0442\u044c\/\u043e\u0442\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 (\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f)<\/li>\n<li>\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u044b<\/li>\n<li>\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/0c2\/7a3\/8ca\/0c27a38ca9624f009eadaaaacae0154f.png\"\/><\/div>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 (SDK)<\/b><\/p>\n<div class=\"spoiler_text\"><b>\u0421\u043f\u043e\u0441\u043e\u0431 1 (composer)<\/b><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b composer.json \u0432 \u043a\u043e\u0440\u043d\u0435 \u0412\u0430\u0448e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  <\/p>\n<pre><code class=\"javascript\">{       &quot;require&quot;: {           &quot;serj1chen\/nova-poshta-sdk-php&quot;: &quot;2.0.*&quot;       } } <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c composer:  <\/p>\n<pre><code class=\"bash\">$ curl -sS https:\/\/getcomposer.org\/installer | php $ php composer.phar install <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043b\u043e\u0430\u0434\u0435\u0440 composer:  <\/p>\n<pre><code class=\"php\">include_once &quot;vendor\/autoload.php&quot;; <\/code><\/pre>\n<p>  <b>\u0421\u043f\u043e\u0441\u043e\u0431 2 (git)<\/b><\/p>\n<p>  \u041a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:  <\/p>\n<pre><code class=\"bash\">git clone git:\/\/github.com\/serj1chen\/nova-poshta-sdk-php <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043b\u043e\u0430\u0434\u0435\u0440 SDK:  <\/p>\n<pre><code class=\"bash\">include_once &quot;nova-poshta-sdk-php\/lib\/NovaPoshta\/bootstrap.php&quot;; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 SDK, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c API \u043a\u043b\u044e\u0447. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0437\u0430 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 <a href=\"https:\/\/my.novaposhta.ua\">https:\/\/my.novaposhta.ua<\/a>, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043f\u043e\u0434 \u0441\u0432\u043e\u0438\u043c \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u0432 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442. \u0414\u0430\u043b\u0435\u0435 \u043f.\u043c. <b>\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f<\/b>-&gt; <b>API 2.0<\/b>. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <b>\u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 \u043a\u043b\u044e\u0447<\/b>, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447.<\/p>\n<div style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ce6\/8bf\/d0e\/ce68bfd0e43f48de99db6e3c16c71b77.PNG\" alt=\"keyForApi\" width=\"600\" height=\"400\" \/><\/div>\n<p>  <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 SDK<\/h4>\n<p>  <\/p>\n<pre><code class=\"php\">   use NovaPoshta\\Config;     Config::setApiKey('&lt;\u0412\u0430\u0448 \u043a\u043b\u044e\u0447&gt;');    Config::setFormat(Config::FORMAT_JSONRPC2);    Config::setLanguage(Config::LANGUAGE_UA); <\/code><\/pre>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u043c\u0435\u0442\u043e\u0434 <b>setFormat<\/b>):  <\/p>\n<ul>\n<li>FORMAT_JSON<\/li>\n<li>FORMAT_JSONRPC2 (\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e)<\/li>\n<li>FORMAT_XML<\/li>\n<\/ul>\n<p>  \u041f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0444\u043e\u0440\u043c\u0430\u0442 JSONRPC2.<\/p>\n<h4>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438 SDK<\/h4>\n<p>  \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u041d\u041f \u0440\u0430\u0431\u043e\u0442\u0430 \u0440\u0430\u0437\u0431\u0438\u0442\u0430 \u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u0438:  <\/p>\n<ul>\n<li>Address: \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438. <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\/blob\/master\/example\/Address_example.php\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/a><\/li>\n<li>Common: \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430\u043c\u0438. <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\/blob\/master\/example\/Common_example.php\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/a><\/li>\n<li>ContactPerson: \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u043b\u0438\u0446\u0430. <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\/blob\/master\/example\/ContactPerson_example.php\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/a><\/li>\n<li>Counterparty: \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430. <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\/blob\/master\/example\/Counterparty_example.php\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/a><\/li>\n<li>InternetDocument: \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439. <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\/blob\/master\/example\/InternetDocument_example.php\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/a><\/li>\n<li>ScanSheet: \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0435\u0435\u0441\u0442\u0440\u0430\u043c\u0438 \u043f\u0440\u0438\u0435\u043c\u0430-\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439. <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\/blob\/master\/example\/ScanSheet_example.php\">\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<h5>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439<\/h5>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u0438: save, update, delete. \u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434. \u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"php\">    use NovaPoshta\\ApiModels\\Counterparty;      $counterparty = new Counterparty();     $counterparty-&gt;setCounterpartyProperty('Recipient');     $counterparty-&gt;setCityRef('db5c88d0-391c-11dd-90d9-001a92567626');     $counterparty-&gt;setCounterpartyType('PrivatePerson');     $counterparty-&gt;setFirstName('\u041f\u0438\u043b\u0438\u043f\u043a\u043e');     $counterparty-&gt;setLastName('\u0412\u0430\u0441\u044f');     $counterparty-&gt;setMiddleName('\u0421\u0435\u0440\u0433\u0435\u0435\u0432\u0438\u0447');     $counterparty-&gt;setPhone('+380661122333');     $counterparty-&gt;setEmail('test@i.ua');      $result = $counterparty-&gt;save(); <\/code><\/pre>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438. \u0412 \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 <b>MethodParameters<\/b>:<\/p>\n<pre><code class=\"php\">    use NovaPoshta\\ApiModels\\Counterparty;     use NovaPoshta\\MethodParameters\\MethodParameters;      $data = new MethodParameters();     $data-&gt;CounterpartyProperty = 'Recipient';     $data-&gt;Page = 1;     $data-&gt;CityRef = '8d5a980d-391c-11dd-90d9-001a92567626';     $data-&gt;FindByString = '\u041f\u0435\u0442\u0440';      $result = Counterparty::getCounterparties($data); <\/code><\/pre>\n<p>  \u0418\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b <b>MethodParameters<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442\u0441\u044f \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <b>MethodParameters<\/b>. \u041a\u043b\u0430\u0441\u0441\u044b \u0438\u043c\u0435\u044e\u0442 \u0441\u0435\u0442\u0442\u0435\u0440\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043c\u0435\u0442\u043e\u0434\u0443 \u043c\u043e\u0434\u0435\u043b\u0438. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u0435\u0439, \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 (<b>ApiModels<\/b>) \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u043e\u0434\u0435\u043b\u0438. \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"php\">    use NovaPoshta\\ApiModels\\Counterparty;     use NovaPoshta\\MethodParameters\\MethodParameters;     use NovaPoshta\\MethodParameters\\Counterparty_getCounterparties;      $data = new Counterparty_getCounterparties();     $data-&gt;setCounterpartyProperty('Recipient');     $data-&gt;setPage(1);     $data-&gt;setCityRef('8d5a980d-391c-11dd-90d9-001a92567626');     $data-&gt;setFindByString('\u041f\u0435\u0442\u0440');      $result = Counterparty::getCounterparties($data); <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f  \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\u0415\u0441\u043b\u0438 \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438\/\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 <b>Logger.php<\/b> \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u043c\u0435\u0442\u043e\u0434 <b>setClassLogger<\/b> \u0444\u0430\u0439\u043b\u0430 <b>Config.php<\/b>.<\/p>\n<pre><code class=\"php\">use NovaPoshta\\Logger; use NovaPoshta\\Config;  class Logger_example extends Logger {     public static function setOriginalData($toData, $fromData)     {         \/\/ ...     }      public static function setData($toData, $fromData)     {         \/\/ ...     } }  Config::setClassLogger($ new Logger_example());  <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 <b>setOriginalData<\/b>: \u0437\u0430\u043f\u0440\u043e\u0441\/\u043e\u0442\u0432\u0435\u0442 API \u041d\u043e\u0432\u043e\u0439 \u043f\u043e\u0447\u0442\u044b. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: <b>toData<\/b> \u2014 \u0437\u0430\u043f\u0440\u043e\u0441 (\u0442\u0438\u043f: <b>string<\/b>); <b>fromData<\/b> \u2014 \u043e\u0442\u0432\u0435\u0442 (\u0442\u0438\u043f: <b>string<\/b>).<\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434 <b>setData<\/b>: \u0437\u0430\u043f\u0440\u043e\u0441\/\u043e\u0442\u0432\u0435\u0442 API \u041d\u043e\u0432\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 SDK. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: <b>toData<\/b> \u2014 \u0437\u0430\u043f\u0440\u043e\u0441 (\u043e\u0431\u044a\u0435\u043a\u0442: <b>DataContainer<\/b>); <b>fromData<\/b> \u2014 \u043e\u0442\u0432\u0435\u0442 (\u043e\u0431\u044a\u0435\u043a\u0442: <b>DataContainerResponse<\/b>).  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u043e\u0439 (\u0422\u0422\u041d)<\/b><\/p>\n<div class=\"spoiler_text\">\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0433\u043e\u0440\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f:  <\/p>\n<pre><code class=\"php\">    $data = new \\NovaPoshta\\MethodParameters\\Address_getCities();     $data-&gt;setFindByString('\u041f\u043e\u043b\u0442\u0430\u0432\u0430');     $result = \\NovaPoshta\\ApiModels\\Address::getCities($data);      $citySender = $result-&gt;data[0]-&gt;Ref; <\/code><\/pre>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0433\u043e\u0440\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:  <\/p>\n<pre><code class=\"php\">   $result = \\NovaPoshta\\ApiModels\\Address::getCities(); \/\/ \u0441\u043f\u0438\u0441\u043e\u043a \u0433\u043e\u0440\u043e\u0434\u043e\u0432     $cityRecipient = $result-&gt;data[60]-&gt;Ref; <\/code><\/pre>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430:  <\/p>\n<pre><code class=\"php\">    $result = \\NovaPoshta\\ApiModels\\Common::getTypesOfCounterparties();      $counterpartyType = $result-&gt;data[1]-&gt;Ref; \/\/ \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f PrivatePerson <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:  <\/p>\n<pre><code class=\"php\">    $counterparty = new \\NovaPoshta\\ApiModels\\Counterparty();     $counterparty-&gt;setCounterpartyProperty(\\NovaPoshta\\ApiModels\\Counterparty::RECIPIENT);     $counterparty-&gt;setCityRef($cityRecipient);     $counterparty-&gt;setCounterpartyType($counterpartyType);     $counterparty-&gt;setFirstName('\u041f\u0438\u043b\u0438\u043f\u043a\u043e');     $counterparty-&gt;setLastName('\u0412\u0430\u0441\u044f');     $counterparty-&gt;setMiddleName('\u0421\u0435\u0440\u0433\u0435\u0435\u0432\u0438\u0447');     $counterparty-&gt;setPhone('+380661122333');     $counterparty-&gt;setEmail('test@i.ua');     $result = $counterparty-&gt;save();      $counterpartyRecipient = $result-&gt;data[0]-&gt;Ref; <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u0432 \u0433\u043e\u0440\u043e\u0434\u0435 \u041f\u043e\u043b\u0442\u0430\u0432\u0430, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f. \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442:  <\/p>\n<pre><code class=\"php\">    $data = new \\NovaPoshta\\MethodParameters\\Counterparty_cloneLoyaltyCounterpartySender();     $data-&gt;setCityRef($citySender);     $result = \\NovaPoshta\\ApiModels\\Counterparty::cloneLoyaltyCounterpartySender($data); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u044e\u0434\u0430: <b>setCounterpartyProperty<\/b> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c <b>\\NovaPoshta\\ApiModels\\Counterparty::SENDER<\/b>. \u041c\u0435\u0442\u043e\u0434\u043e\u043c <b>cloneLoyaltyCounterpartySender<\/b> \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0412\u044b \u043a\u043b\u0438\u0435\u043d\u0442 \u043b\u043e\u044f\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 \u0412\u044b \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u0442\u043e \u0443 \u0412\u0430\u0441 \u0443\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u0433\u043e\u0440\u043e\u0434\u0435.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f:  <\/p>\n<pre><code class=\"php\">    $data = new \\NovaPoshta\\MethodParameters\\Counterparty_getCounterparties();     $data-&gt;setCityRef($citySender);     $data-&gt;setCounterpartyProperty(\\NovaPoshta\\ApiModels\\Counterparty::SENDER);     $result = \\NovaPoshta\\ApiModels\\Counterparty::getCounterparties($data);      $counterpartySender = $result-&gt;data[0]-&gt;Ref; <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u043e\u0432:  <\/p>\n<pre><code class=\"php\">    $data = new \\NovaPoshta\\MethodParameters\\Counterparty_getCounterpartyContactPersons();     $data-&gt;setRef($counterpartySender);     $result = \\NovaPoshta\\ApiModels\\Counterparty::getCounterpartyContactPersons($data);      $contactPersonSender = $result-&gt;data[0]-&gt;Ref;      $data = new \\NovaPoshta\\MethodParameters\\Counterparty_getCounterpartyContactPersons();     $data-&gt;setRef($counterpartyRecipient);     $result = \\NovaPoshta\\ApiModels\\Counterparty::getCounterpartyContactPersons($data);      $contactPersonRecipient = $result-&gt;data[0]-&gt;Ref; <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043a\u043b\u0430\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438:  <\/p>\n<pre><code class=\"php\">    $data = new \\NovaPoshta\\MethodParameters\\Address_getWarehouses();     $data-&gt;setCityRef($citySender);     $result = \\NovaPoshta\\ApiModels\\Address::getWarehouses($data);      $addressSender = $result-&gt;data[5]-&gt;Ref; <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f:  <\/p>\n<pre><code class=\"php\">    $address = new \\NovaPoshta\\ApiModels\\Address();     $address-&gt;setCounterpartyRef($counterpartyRecipient);     $address-&gt;setBuildingNumber('2\/2');     $address-&gt;setFlat('22');     $address-&gt;setNote('\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0434\u044a\u0435\u0437\u0434');     $address-&gt;setStreetRef('c55c9056-4148-11dd-9198-001d60451983');     $result = $address-&gt;save();      $addressRecipient = $result-&gt;data[0]-&gt;Ref; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u0438\u043f \u0443\u0441\u043b\u0443\u0433\u0438:  <\/p>\n<pre><code class=\"php\">    $result = \\NovaPoshta\\ApiModels\\Common::getServiceTypes();      $serviceType = $result-&gt;data[3]-&gt;Ref; \/\/ \u0412\u044b\u0431\u0440\u0430\u043b\u0438: WarehouseDoors <\/code><\/pre>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0430:  <\/p>\n<pre><code class=\"php\">    $result = \\NovaPoshta\\ApiModels\\Common::getTypesOfPayers();      $payerType = $result-&gt;data[1]-&gt;Ref; \/\/ \u0412\u044b\u0431\u0440\u0430\u043b\u0438: Recipient <\/code><\/pre>\n<p>  \u0424\u043e\u0440\u043c\u0443 \u043e\u043f\u043b\u0430\u0442\u044b:  <\/p>\n<pre><code class=\"php\">    $result = \\NovaPoshta\\ApiModels\\Common::getPaymentForms();     $paymentMethod = $result-&gt;data[1]-&gt;Ref; \/\/ \u0412\u044b\u0431\u0440\u0430\u043b\u0438: Cash <\/code><\/pre>\n<p>  \u0422\u0438\u043f \u0433\u0440\u0443\u0437\u0430:  <\/p>\n<pre><code class=\"php\">    $result = \\NovaPoshta\\ApiModels\\Common::getCargoTypes();      $cargoType = $result-&gt;data[0]-&gt;Ref; \/\/ \u0412\u044b\u0431\u0440\u0430\u043b\u0438: Cargo <\/code><\/pre>\n<p>  \u041c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u042d\u041d. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u042d\u041d:  <\/p>\n<pre><code class=\"php\">    \/\/ \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c     $sender = new \\NovaPoshta\\Models\\CounterpartyContact();     $sender-&gt;setCity($citySender)         -&gt;setRef($counterpartySender)         -&gt;setAddress($addressSender)         -&gt;setContact($contactPersonSender)         -&gt;setPhone('+380660000000');      \/\/ \u041a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c     $recipient = new \\NovaPoshta\\Models\\CounterpartyContact();     $recipient-&gt;setCity($cityRecipient)         -&gt;setRef($counterpartyRecipient)         -&gt;setAddress($addressRecipient)         -&gt;setContact($contactPersonRecipient)         -&gt;setPhone('+380660000000');      \/\/ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f     $result = \\NovaPoshta\\ApiModels\\Common::getTypesOfPayersForRedelivery();     $redeliveryPayer = $result-&gt;data[1]-&gt;Ref;      \/\/ \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0438\u043f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438     $result = \\NovaPoshta\\ApiModels\\Common::getBackwardDeliveryCargoTypes();     $redeliveryCargoType = $result-&gt;data[1]-&gt;Ref;      \/\/ \u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0446\u0435\u043d\u043d\u044b\u0435 \u0431\u0443\u043c\u0430\u0433\u0438     $backwardDeliveryData = new \\NovaPoshta\\Models\\BackwardDeliveryData();     $backwardDeliveryData-&gt;setPayerType($redeliveryPayer);     $backwardDeliveryData-&gt;setCargoType($redeliveryCargoType);     $backwardDeliveryData-&gt;setRedeliveryString(452);      $internetDocument = new \\NovaPoshta\\ApiModels\\InternetDocument();     $internetDocument-&gt;setSender($sender)         -&gt;setRecipient($recipient)         -&gt;setServiceType($serviceType)         -&gt;setPayerType($payerType)         -&gt;setPaymentMethod($paymentMethod)         -&gt;setCargoType($cargoType)         -&gt;setWeight(1)         -&gt;setSeatsAmount(1)         -&gt;setCost(452)         -&gt;setDescription('\u0422\u0426')         -&gt;setDateTime('10.09.2015')         -&gt;addBackwardDeliveryData($backwardDeliveryData);     $result = $internetDocument-&gt;save();      $refInternetDocument = $result-&gt;data[0]-&gt;Ref; <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0435\u0447\u0430\u0442\u044c \u042d\u041d:  <\/p>\n<pre><code class=\"php\">    $data = new \\NovaPoshta\\MethodParameters\\InternetDocument_printDocument();     $data-&gt;addDocumentRef($refInternetDocument);     $data-&gt;setCopies(\\NovaPoshta\\ApiModels\\InternetDocument::PRINT_COPIES_FOURFOLD);      $link = \\NovaPoshta\\ApiModels\\InternetDocument::printDocument($data); <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0447\u0430\u0442\u0438 \u042d\u041d, \u043a\u043b\u0435\u0435\u043c \u042d\u041d \u043d\u0430 \u043a\u043e\u0440\u043e\u0431\u043a\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0433\u0440\u0443\u0437))  <\/div>\n<\/div>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c SDK \u0412\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 API \u041d\u043e\u0432\u043e\u0439 \u041f\u043e\u0447\u0442\u044b. \u0421\u0435\u0439\u0447\u0430\u0441 \u044f \u0434\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u044e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 SDK \u0434\u043b\u044f Python, \u043a\u043e\u0433\u0434\u0430 \u0434\u043e\u0434\u0435\u043b\u0430\u044e SDK \u0432\u044b\u043b\u043e\u0436\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0445\u0430\u0431\u0440.<\/p>\n<p>  \u0423\u0434\u0430\u0447\u0438!             <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/264209\/\"> http:\/\/habrahabr.ru\/post\/264209\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u041f\u0440\u0438\u0432\u0435\u0442 \u0434\u0440\u0443\u0437\u044c\u044f.<br \/>  \u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f <a href=\"https:\/\/github.com\/serj1chen\/nova-poshta-sdk-php\">PHP \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 (SDK)<\/a> \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 API 2 \u041d\u043e\u0432\u043e\u0439 \u041f\u043e\u0447\u0442\u044b (\u041d\u041f).<\/p>\n<p>  <b>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u0435\u0442 SDK<\/b>:  <\/p>\n<ul>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 <\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430\u043c\u0438 <\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 <\/li>\n<li>\u041c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0447\u0430\u0442\u043d\u044b\u0445 \u0444\u043e\u0440\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0435\u0441\u0442\u0440\u0430\u043c\u0438 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0445 <\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u043c\u0438:<br \/> \n<ul>\n<li>\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435<\/li>\n<li>\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 (\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f)<\/li>\n<li>\u0443\u0434\u0430\u043b\u044f\u0442\u044c\/\u043e\u0442\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0440\u0435\u0441\u0441-\u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 (\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f)<\/li>\n<li>\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u044b<\/li>\n<li>\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/0c2\/7a3\/8ca\/0c27a38ca9624f009eadaaaacae0154f.png\"\/><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-262961","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262961"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262961\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}