{"id":212405,"date":"2014-02-13T12:41:02","date_gmt":"2014-02-13T08:41:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=212405"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=212405","title":{"rendered":"<span class=\"post_title\">\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043e\u0431\u0449\u0438\u0445 \u0434\u0440\u0443\u0437\u0435\u0439 \u043b\u044e\u0434\u0435\u0439 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c VK API<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/ed5\/cd0\/569\/ed5cd05699dfb78e8a57af77ae166f54.png\" alt=\"image\"\/>  <\/p>\n<h5>0.\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h5>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440. <br \/>  \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430\u0439\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u0437\u043d\u0430\u044f \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0438 \u0437\u043d\u0430\u044f \u043e \u0435\u0433\u043e \u0447\u043b\u0435\u043d\u0441\u0442\u0432\u0435 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u043a\u043b\u0443\u0431\u0435. \u0422\u0430\u043a\u0436\u0435 \u044f \u0432\u043b\u0430\u0434\u0435\u043b \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438(\u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435) \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0434\u0432\u0443\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0443\u0431\u0430. \u041f\u043e\u0447\u0442\u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0438\u0441\u043a\u043e\u043c\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0431\u044b\u043b \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0432 \u0434\u0440\u0443\u0437\u044c\u044f\u0445. \u0420\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043d\u0430\u043f\u0438\u0448\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043d\u043e\u0439 \u0431\u044b\u043b\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c vk.com API.<\/p>\n<h5>1.\u0417\u0430\u0434\u0430\u0447\u0430<\/h5>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435\u0445 \u043e\u0431\u0449\u0438\u0445 \u0434\u0440\u0443\u0437\u0435\u0439 \u0434\u0432\u0443\u0445 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u0437\u044f\u0442\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431 \u043e\u0431\u0449\u0438\u0445 \u0434\u0440\u0443\u0437\u044c\u044f\u0445:  <\/p>\n<ul>\n<li>\u0438\u043c\u044f<\/li>\n<li>\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f<\/li>\n<li>ID<\/li>\n<\/ul>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043d\u0430 \u0431\u0430\u0437\u0435 API \u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435. \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>2.\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h5>\n<p>  <\/p>\n<h6>2.1.\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b API<\/h6>\n<p>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 <a href=\"http:\/\/vk.com\/dev\/methods\">\u0441\u043f\u0438\u0441\u043e\u043a \u043c\u0435\u0442\u043e\u0434\u043e\u0432<\/a> API. \u0418 \u043f\u043e\u0438\u0441\u043a\u0430\u0432, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0440\u0443\u0437\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <a href=\"http:\/\/vk.com\/dev\/friends.get\">friends.get<\/a>.<br \/>  <b>friends.get<\/b> \u2014 <i>\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u0434\u0440\u0443\u0437\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u0440\u0443\u0437\u044c\u044f\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 fields).<\/i><\/p>\n<p>  \u0418, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 access_token. <\/p>\n<p>  \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/50f\/811\/491\/50f8114911385b1f9a165be62a0bd61c.png\" alt=\"image\"\/><\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u0434\u0440\u0443\u0437\u044c\u044f\u0445 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u043d\u0430\u0448\u0438\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432, \u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0410 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c 2000 \u043b\u044e\u0434\u0435\u0439 \u0432 \u0434\u0440\u0443\u0437\u044c\u044f\u0445, \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0412 \u0431\u0443\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e 3 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e 1997 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0439, \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0437\u0430\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0435\u0451 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435, \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u044b \u0432\u043f\u0443\u0441\u0442\u0443\u044e.<br \/>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u043d\u043e\u043c\u0435\u0440\u0430(\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 \u0410 \u0438 \u0412), \u0443\u0436\u0435 \u043f\u043e \u043d\u0438\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435 \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <a href=\"http:\/\/vk.com\/dev\/users.get\">users.get<\/a>.<br \/>  <b>users.get<\/b> &#8212;<i> \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445. <\/i><\/p>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 access_token, \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/a2d\/6c4\/365\/a2d6c4365541c11a547d2816d8349180.png\" alt=\"image\"\/><br \/>  \u0412 user_ids \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u0431\u043e\u0438\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430\u0445.<br \/>  \u041c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0432\u0430\u0442\u0430\u0440 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 100*100, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 fields \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 photo_100.<\/p>\n<h6>2.2.\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435<\/h6>\n<p>  \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u043d\u0430 php:<\/p>\n<pre><code class=\"php\">class VkFriends {      public function clean_var($var) {               $var = strip_tags($var);          $var = preg_replace('~\\D+~', '', $var);                  $var = trim($var);                    return $var;     }          public function get_friends($u_id) {               $friends = file_get_contents('https:\/\/api.vk.com\/method\/friends.get?user_id='.$u_id);          $friends = json_decode($friends);                    if(!isset($friends-&gt;error)){              return $friends;          }else{              return '';          }               }              public function mutual_friends($friends) {               $mutual = array_intersect($friends[0]-&gt;response, $friends[1]-&gt;response);                    if(!empty($mutual)){              return $mutual;          }else{              return '';          }               }          public function get_users_info($users) {               $u_ids = implode(&quot;,&quot;,$users);              $u_info = file_get_contents('https:\/\/api.vk.com\/method\/users.get?user_ids='.$u_ids.'&fields=photo_100');          $u_info = json_decode($u_info);                    return $u_info;     }           public function view_user_info($u_info) {               $uid = $u_info-&gt;uid;          $first_name = $u_info-&gt;first_name;          $last_name = $u_info-&gt;last_name;           = $u_info-&gt;photo_100;                    print(&quot;          &lt;a href='http:\/\/vk.com\/id$uid' target='_blank'&gt;          &lt;div id='info'&gt;                       &lt;div id='ava'&gt;                 &lt;img src=''&gt;             &lt;\/div&gt;                          &lt;div id='name'&gt;                 $first_name &lt;br\/&gt;                 $last_name             &lt;\/div&gt;          &lt;\/div&gt;          &lt;\/a&gt;          &quot;);              }              public function view_users_info($users_info) {              for($i=0;$i&lt;sizeof($users_info-&gt;response);$i++){                      $this-&gt;view_user_info($users_info-&gt;response[$i]);                      }          }      } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441 \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438:<\/p>\n<pre><code class=\"php\">$vkf = new VkFriends;  $u_id[0] = $vkf-&gt;clean_var($_POST[&quot;u1&quot;]);\/\/clean variables from POST $u_id[1] = $vkf-&gt;clean_var($_POST[&quot;u2&quot;]);  if(($u_id[0]!='')&&($u_id[1]!='')){          echo '&lt;div id=&quot;block&quot;&gt;';          $friends[0] = $vkf-&gt;get_friends($u_id[0]);\/\/getting friends list from user with u_id     $friends[1] = $vkf-&gt;get_friends($u_id[1]);          if(($friends[0]!='')&&($friends[1]!='')){                  $mutual = $vkf-&gt;mutual_friends($friends);\/\/create new array from intersect arrays                  if($mutual!=''){                      $users_info = $vkf-&gt;get_users_info($mutual);\/\/getting info about users that are mutual             $vkf-&gt;view_users_info($users_info);\/\/view information about selected users                      }else{                   print(&quot;&lt;center&gt;&lt;h2 class='error'&gt;\u041e\u0431\u0449\u0438\u0445 \u0434\u0440\u0443\u0437\u0435\u0439 \u043d\u0435\u0442&lt;\/h2&gt;&lt;\/center&gt;&quot;);         }      }else{           print(&quot;&lt;center&gt;&lt;h2 class='error'&gt;\u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d&lt;\/h2&gt;&lt;\/center&gt;&quot;);      }          echo '&lt;\/div&gt;';   } <\/code><\/pre>\n<h5>3.\u0420\u0435\u0437\u044e\u043c\u0435<\/h5>\n<p>  \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430 <a href=\"http:\/\/13c.me\/\">13c.me<\/a>.<br \/>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 GitHub \u2014 <a href=\"https:\/\/github.com\/SanGreel\/vkfriends\">vkfriends<\/a>.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u043b\u0438,<br \/>  \u0438\u0441\u043a\u0440\u0435\u043d\u043d\u0435 \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0432\u0430\u043c \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/212405\/\"> http:\/\/habrahabr.ru\/post\/212405\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/ed5\/cd0\/569\/ed5cd05699dfb78e8a57af77ae166f54.png\" alt=\"image\"\/>  <\/p>\n<h5>0.\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h5>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440. <br \/>  \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430\u0439\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u0437\u043d\u0430\u044f \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0438 \u0437\u043d\u0430\u044f \u043e \u0435\u0433\u043e \u0447\u043b\u0435\u043d\u0441\u0442\u0432\u0435 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u043a\u043b\u0443\u0431\u0435. \u0422\u0430\u043a\u0436\u0435 \u044f \u0432\u043b\u0430\u0434\u0435\u043b \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438(\u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435) \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0434\u0432\u0443\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0443\u0431\u0430. \u041f\u043e\u0447\u0442\u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0438\u0441\u043a\u043e\u043c\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0431\u044b\u043b \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0432 \u0434\u0440\u0443\u0437\u044c\u044f\u0445. \u0420\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043d\u0430\u043f\u0438\u0448\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043d\u043e\u0439 \u0431\u044b\u043b\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c vk.com API.<\/p>\n<h5>1.\u0417\u0430\u0434\u0430\u0447\u0430<\/h5>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435\u0445 \u043e\u0431\u0449\u0438\u0445 \u0434\u0440\u0443\u0437\u0435\u0439 \u0434\u0432\u0443\u0445 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u0437\u044f\u0442\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431 \u043e\u0431\u0449\u0438\u0445 \u0434\u0440\u0443\u0437\u044c\u044f\u0445:  <\/p>\n<ul>\n<li>\u0438\u043c\u044f<\/li>\n<li>\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f<\/li>\n<li>ID<\/li>\n<\/ul>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043d\u0430 \u0431\u0430\u0437\u0435 API \u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435. \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e.<\/p>\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-212405","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212405","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=212405"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212405\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=212405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=212405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=212405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}