{"id":269920,"date":"2015-12-08T22:26:02","date_gmt":"2015-12-08T19:26:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=269920"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=269920","title":{"rendered":"\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b VK API"},"content":{"rendered":"\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f52\/777\/229\/f5277722963447118aaac5a2df1b854f.jpg\" alt=\"\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b VK API\" \/><\/div>\n<p>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c. \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 VK.  <\/p>\n<table>\n<tr>\n<th>\u041c\u0435\u0442\u043e\u0434<\/th>\n<th>\u0424\u0443\u043d\u043a\u0446\u0438\u044f<\/th>\n<th>\u041c\u0438\u043d\u0443\u0441 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430<\/th>\n<\/tr>\n<tr>\n<td><a href=\"#tag1\">getMembers<\/a><\/td>\n<td>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ID \u0432\u0441\u0435\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0433\u0440\u0443\u043f\u043f\u044b<\/td>\n<td>1000 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0437\u0430 \u043e\u0434\u043d\u0443 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e<\/td>\n<\/tr>\n<tr>\n<td><a href=\"#tag2\">getSearchFriendsInGroups<\/a><\/td>\n<td>\u041f\u043e\u0438\u0441\u043a \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u0432\u0430\u0448\u0438 \u0434\u0440\u0443\u0437\u044c\u044f<\/td>\n<td>\u0414\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0435\u0442 \u0432 VK API<\/td>\n<\/tr>\n<tr>\n<td><a href=\"#tag3\">getCreated<\/a><\/td>\n<td>\u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u0442\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432<\/td>\n<td>\u0414\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0435\u0442 \u0432 VK API<\/td>\n<\/tr>\n<\/table>\n<p>  <a name=\"habracut\"><\/a>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c <a href=\"http:\/\/jquery.com\/download\/\">Jquery<\/a> \u0438 <a href=\"http:\/\/byunow.ru\/VKAPI\/methods_vkapi.js\">\u0441\u0430\u043c\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443<\/a>.  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head lang=&quot;en&quot;&gt;     &lt;meta charset=&quot;UTF-8&quot;&gt; &lt;\/head&gt; &lt;body&gt; &lt;script src=&quot;\/\/code.jquery.com\/jquery-1.11.3.min.js&quot;&gt;&lt;\/script&gt; &lt;script src=&quot;VKAPI\/methods_vkapi.js&quot;&gt;&lt;\/script&gt; &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043c\u0435\u0442\u043e\u0434\u0430\u043c API \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0432\u044b\u0448\u0435.<\/p>\n<h1><a name=\"tag1\"><\/a>I. getMembers<\/h1>\n<p>  \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435: \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 ID \u0432\u0441\u0435\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430.<\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<br \/>  <b><i>groupID<\/i><\/b> \u2014 ID \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430<br \/>  <b><i>access_token<\/i><\/b> \u2014 \u0442\u043e\u043a\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"javascript\">VKR.Group('getMembers', {     groupID: 1,     access_token: &quot;f43af342fe6e684e5037dd46e8866c44025e1a81ac10c9c6455fe103109a285a105281d13b4b53e9d92&quot; }, function (data) {     console.log('\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: ', data); }, function (load) {     console.log('\u041f\u0440\u043e\u0446\u0435\u0441\u0441: ' + load + '%'); }); <\/code><\/pre>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u0435\u0440\u043d\u0435\u0442 json \u0444\u043e\u0440\u043c\u0430\u0442\u0430: <i>[1, 2, 4, 613, 431]<\/i><br \/>  \u0412\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u043e \u0445\u043e\u0434\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0444\u043e\u0440\u043c\u0430\u0442\u0430: <i>8.3231<\/i><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f95\/8e8\/104\/f958e8104d274f2f87d06b5978c2407b.JPG\"\/><\/p>\n<h1><a name=\"tag2\"><\/a>II. getSearchFriendsInGroups<\/h1>\n<p>  \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435: \u041f\u043e\u0438\u0441\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0445 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u0432\u0430\u0448\u0438 \u0434\u0440\u0443\u0437\u044c\u044f.<\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<br \/>  <b><i>q<\/i><\/b> \u2014 \u041f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<br \/>  <b><i>access_token<\/i><\/b> \u2014 \u0442\u043e\u043a\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"javascript\">VKR.Group('getSearchFriendsInGroups', {q: '\u043f\u043e\u0440\u043d\u043e', access_token: &quot;f43af342fe6e684e5037dd46e8866c44025e1a81ac10c9c6455fe103109a285a105281d13b4b53e9d92&quot;}, function (data) {     console.log('\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: ', data); }, function (load) {     console.log('\u041f\u0440\u043e\u0446\u0435\u0441\u0441: ' + load + '%'); }); <\/code><\/pre>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u0435\u0440\u043d\u0435\u0442 json \u0444\u043e\u0440\u043c\u0430\u0442\u0430: <i>[{\u00abgroupID\u00bb: 1, \u00abfriends\u00bb: [5325, 45345, 1241]}]<\/i><br \/>  \u0412\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u043e \u0445\u043e\u0434\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0444\u043e\u0440\u043c\u0430\u0442\u0430: <i>8.3231<\/i><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/19b\/7f0\/cbd\/19b7f0cbd2c345eb9ebbbc0420a96cf9.JPG\"\/><\/p>\n<h1><a name=\"tag3\"><\/a>III. getCreated<\/h1>\n<p>  \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435: \u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435.<\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<br \/>  <b><i>ids<\/i><\/b> \u2014 \u041c\u0430\u0441\u0441\u0438\u0432 ID \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"javascript\">VKR.User('getCreated', {ids: [33610634,2,3]}, function (data) {     console.log('\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: ', data); }); <\/code><\/pre>\n<p>  \u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u0435\u0440\u043d\u0435\u0442 json \u0444\u043e\u0440\u043c\u0430\u0442\u0430: <i>[{\u00abid\u00bb: 33610634, \u00abcreatedDate\u00bb: \u00ab2009-03-21T17:03:35+03:00\u00bb},{\u00abid\u00bb: 2, \u00abcreatedDate\u00bb: \u00ab2009-09-08T23:51:10+03:00\u00bb}]<\/i><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/64d\/48e\/5db\/64d48e5db87747d092a091954b07d6c1.JPG\"\/><\/p>\n<p>  GitHub: <a href=\"https:\/\/github.com\/romkagolovadvayha\/romkagolovadvayha.github.io\/tree\/master\/library_VKAPI\">github.com\/romkagolovadvayha\/romkagolovadvayha.github.io\/tree\/master\/library_VKAPI<\/a><br \/>  \u041f\u043e \u0445\u043e\u0434\u0443 \u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0431\u0443\u0434\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0442\u0435\u043c\u0443.               <\/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\/272687\/\"> http:\/\/habrahabr.ru\/post\/272687\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f52\/777\/229\/f5277722963447118aaac5a2df1b854f.jpg\" alt=\"\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b VK API\" \/><\/div>\n<p>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c. \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 VK.  <\/p>\n<table>\n<tr>\n<th>\u041c\u0435\u0442\u043e\u0434<\/th>\n<th>\u0424\u0443\u043d\u043a\u0446\u0438\u044f<\/th>\n<th>\u041c\u0438\u043d\u0443\u0441 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430<\/th>\n<\/tr>\n<tr>\n<td><a href=\"#tag1\">getMembers<\/a><\/td>\n<td>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ID \u0432\u0441\u0435\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0433\u0440\u0443\u043f\u043f\u044b<\/td>\n<td>1000 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0437\u0430 \u043e\u0434\u043d\u0443 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e<\/td>\n<\/tr>\n<tr>\n<td><a href=\"#tag2\">getSearchFriendsInGroups<\/a><\/td>\n<td>\u041f\u043e\u0438\u0441\u043a \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u0432\u0430\u0448\u0438 \u0434\u0440\u0443\u0437\u044c\u044f<\/td>\n<td>\u0414\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0435\u0442 \u0432 VK API<\/td>\n<\/tr>\n<tr>\n<td><a href=\"#tag3\">getCreated<\/a><\/td>\n<td>\u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u0442\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432<\/td>\n<td>\u0414\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0435\u0442 \u0432 VK API<\/td>\n<\/tr>\n<\/table>\n<p>  <\/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-269920","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269920","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=269920"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269920\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}