{"id":2395,"date":"2023-05-12T11:30:43","date_gmt":"2023-05-12T08:30:43","guid":{"rendered":"https:\/\/smartanalytics.io\/ru\/blog\/?post_type=documentation&#038;p=2395"},"modified":"2023-05-29T18:34:54","modified_gmt":"2023-05-29T15:34:54","slug":"0-proizvodim-autentifikaciju","status":"publish","type":"documentation","link":"https:\/\/smartanalytics.io\/ru\/blog\/documentation\/0-proizvodim-autentifikaciju\/","title":{"rendered":"\u26a0\ufe0f 0. \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e"},"content":{"rendered":"\n<p>\ud83d\udcc2 \u0414\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430: \u043d\u0430\u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0438 \u0432 \u043e\u0442\u0432\u0435\u0442 \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d. \u042d\u0442\u043e\u0442 \u0442\u043e\u043a\u0435\u043d \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 API.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/smartanalytics.io\/ru\/blog\/wp-content\/uploads\/2023\/05\/opapi_1-01-1440x223.png\" alt=\"\" class=\"wp-image-3741\" width=\"698\" height=\"108\" srcset=\"https:\/\/smartanalytics.io\/ru\/blog\/wp-content\/uploads\/2023\/05\/opapi_1-01-1440x223.png 1440w, https:\/\/smartanalytics.io\/ru\/blog\/wp-content\/uploads\/2023\/05\/opapi_1-01-300x46.png 300w, https:\/\/smartanalytics.io\/ru\/blog\/wp-content\/uploads\/2023\/05\/opapi_1-01-768x119.png 768w, https:\/\/smartanalytics.io\/ru\/blog\/wp-content\/uploads\/2023\/05\/opapi_1-01.png 1500w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/figure><\/div>\n\n\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0442\u043e\u0434&nbsp;<a href=\"https:\/\/apps.smartanalytics.io\/crm\/v1\/redoc\/#operation\/login_for_access_token_crm_v1_api_auth_token__post\" target=\"_blank\" rel=\"noreferrer noopener\">Login for Access token<\/a>&nbsp;\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udce4 <strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438:<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>POST https:\/\/apps.smartanalytics.io\/crm\/v1\/api\/auth\/token\/\n\nRequest body:\n{\n\"username\": \"string\",\n\"password\": \"string\",\n}\n\nResponse:\n{\n  \"access_token\": \"string\",\n  \"refresh_token\": \"string\",\n  \"token_type\": \"string\",\n  \"expires\": 0,\n  \"expires_in\": 0\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcdd <strong>\u041b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c, \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0432 API<\/strong><\/td><td><strong>\u0422\u0438\u043f \u043f\u043e\u043b\u044f<\/strong><\/td><td><strong>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f<\/strong><\/td><\/tr><tr><td>username<\/td><td>string<\/td><td>\u041b\u043e\u0433\u0438\u043d<\/td><\/tr><tr><td>password<\/td><td>string<\/td><td>\u041f\u0430\u0440\u043e\u043b\u044c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u0430\u043b\u0435\u0435 \u043a<\/strong> \u26a0\ufe0f <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/smartanalytics.io\/ru\/blog\/documentation\/1-sozdanie-voronki\/\" target=\"_blank\">1. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u043e\u0440\u043e\u043d\u043a\u0438<\/a><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udcc2 \u0414\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430: \u043d\u0430\u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0438 \u0432 \u043e\u0442\u0432\u0435\u0442 \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0442\u043e\u043a\u0435\u043d. \u042d\u0442\u043e\u0442 \u0442\u043e\u043a\u0435\u043d \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 API. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0442\u043e\u0434&nbsp;Login for Access token&nbsp;\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \ud83d\udce4 \u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438: \ud83d\udcdd \u041b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c, \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","meta":{"pgc_sgb_lightbox_settings":""},"_links":{"self":[{"href":"https:\/\/smartanalytics.io\/ru\/blog\/wp-json\/wp\/v2\/documentation\/2395"}],"collection":[{"href":"https:\/\/smartanalytics.io\/ru\/blog\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/smartanalytics.io\/ru\/blog\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/smartanalytics.io\/ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"wp:attachment":[{"href":"https:\/\/smartanalytics.io\/ru\/blog\/wp-json\/wp\/v2\/media?parent=2395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}