{"id":343342,"date":"2022-12-30T03:00:30","date_gmt":"2022-12-30T03:00:30","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=343342"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=343342","title":{"rendered":"<span>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 Adobe<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041c\u043d\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0443: \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 Adobe API. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u044b\u043b\u043e \u043c\u0438\u043d\u0438\u043c\u0443\u043c &#8212; \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u0428\u0430\u0431\u043b\u043e\u043d \u044f \u043c\u043e\u0433 \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041d\u043e \u0441\u0430\u043c \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u0430\u043a \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0441 API \u044f \u043d\u0435 \u0437\u043d\u0430\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u044b\u0440\u043d\u0443\u043b \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u044b \u0447\u0430\u0441\u043e\u0432 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u044f \u043e\u0442\u0447\u0430\u044f\u043b\u0441\u044f. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043e\u0440\u0435, \u043d\u043e \u043d\u0443\u0436\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u041d\u043e \u0437\u0430\u0442\u043e \u043d\u0430\u0448\u0435\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u0430\u0440\u0443 \u0441\u0442\u0430\u0442\u0435\u0439 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u0435\u043e-\u0443\u0440\u043e\u043a\u043e\u0432. \u0412\u0441\u0451 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u043b\u043e \u043c\u0435\u043d\u044f \u043a \u0446\u0435\u043b\u0438 \u043d\u0438 \u043d\u0430 \u0448\u0430\u0433.<\/p>\n<p>\u041d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439, \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0440\u0432\u043e\u0432 \u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0441\u0434\u0430\u0442\u044c\u0441\u044f, \u044f \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0443. \u0418 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0442\u0443\u0442.<\/p>\n<h2>Adobe Document Generation API<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430: \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 Adobe \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0443\u0436\u0435\u043d.\u00a0<\/p>\n<p>Adobe Document Generation API. \u041e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e, \u0441\u0436\u0430\u0442\u0438\u0435, \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0438\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u041d\u043e \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (access token)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d<\/p>\n<\/li>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442<\/p>\n<\/li>\n<\/ol>\n<h2>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"https:\/\/developer.adobe.com\/console\/projects\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/developer.adobe.com\/console\/projects<\/u><\/a>, \u0437\u0430\u0442\u0435\u043c:<\/p>\n<ol>\n<li>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c &#171;Create new Project&#187;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c &#171;Add to project&#187; &#8212; \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c API \u0438 \u0438\u0449\u0435\u043c \u0442\u0430\u043c PDF Services API<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0436\u043c\u0435\u043c &#171;Continue&#187; \u043a\u0443\u0447\u0443 \u0440\u0430\u0437 <\/p>\n<\/li>\n<li>\n<p>\u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 Adobe \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0445<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &#171;Credentials&#187; \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 JWT. <\/p>\n<p>\u0415\u0441\u043b\u0438 Adobe \u043d\u0435 \u043f\u0440\u0438\u0441\u043b\u0430\u043b Client Secret, \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0443\u0442 \u0436\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u0435\u0431\u0435.<\/p>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (access token)<\/h2>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c JWT \u0441\u0442\u0440\u043e\u043a\u0443, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0442\u0443\u0442: <a href=\"https:\/\/developer.adobe.com\/developer-console\/docs\/guides\/authentication\/JWT\/\" rel=\"noopener noreferrer nofollow\">https:\/\/developer.adobe.com\/developer-console\/docs\/guides\/authentication\/JWT\/<\/a><\/p>\n<pre><code class=\"php\">&lt;?php use Firebase\\JWT\\JWT;  $organizationID = 'Organization ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; $accountID = 'Technical Account ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials';   $privateKey  = file_get_contents('\u043f\u0443\u0442\u044c \u0434\u043e \u0444\u0430\u0439\u043b\u0430 private.key \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430');  $payload = [     'exp'                                                    => time() + 60 * 60 * 2,     'iss'                                                    => $organizationID,     'sub'                                                    => $accountID,     'aud'                                                    => 'https:\/\/ims-na1.adobelogin.com\/c\/' . $clientID,     'https:\/\/ims-na1.adobelogin.com\/s\/ent_documentcloud_sdk' => true ];  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f firebase\/php-jwt $jwt = JWT::encode($payload, $privateKey, 'RS256');<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c access token. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0430\u0448\u0435\u043b \u0432 <a href=\"https:\/\/www.postman.com\/api-evangelist\/workspace\/adobe\/request\/35240-9959f850-7d1c-49a4-b026-f16a4436188e\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 Adobe \u0432 Postman(Adobe Target Admin APIs\/Exchange JWT for Access token)<\/a>: <\/p>\n<pre><code class=\"php\">&lt;?php \/\/ JWT \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435  $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; $clientSecret = 'Client Secret \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials';  $query    = [     'client_id'     => $clientID,     'client_secret' => $clientSecret,     'jwt_token'     => $jwt, ];  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http \u0438\u0437 Laravel. \u041d\u043e \u0441\u0443\u0442\u044c \u0435\u0433\u043e \u0432 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e POST \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u0414\u0430, \u0431\u0435\u0437 \u0442\u0435\u043b\u0430. \u0422\u0430\u043a \u043d\u0430\u0434\u043e $response = Http::post('https:\/\/ims-na1.adobelogin.com\/ims\/exchange\/jwt?' . http_build_query($query));  $token = $response->json('access_token');<\/code><\/pre>\n<p>\u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435 access_token \u0441 \u043d\u0430\u0448\u0438\u043c \u0442\u043e\u043a\u0435\u043d\u043e\u043c. \u041b\u0438\u0431\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0438 \u0435\u0451 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435.<\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d<\/h3>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f JSON \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0410 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e JSON.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 JSON:<\/p>\n<pre><code class=\"json\">{   \"name\": \"Dmitry\",   \"meta\":{     \"age\": 23   } }<\/code><\/pre>\n<p>\u0412 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 <code>{{name}}<\/code> \u0438 <code>{{meta.age}}<\/code><\/p>\n<h2>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d<\/h2>\n<p>Adobe \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0443 \u0441\u0435\u0431\u044f \u0444\u0430\u0439\u043b\u044b. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Amazon. <\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 Adobe \u0434\u043e\u0441\u0442\u0443\u043f \u043a Amazon, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0430\u0448 \u0448\u0430\u0431\u043b\u043e\u043d.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a Amazon:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ access token \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $token = '';  $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; \/\/ \u0423 docx mime \u0442\u0438\u043f \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document\" $mime = 'mime \u0442\u0438\u043f \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e docx'  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http Laravel: \/\/ - POST \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0422\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 raw application\/json \/\/ - \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f Bearer \u0441 access token \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"x-api-key\" \u0441 \u0432\u0430\u0448\u0438\u043c ClientID $response = Http     ::withToken($token)     ->asJson()     ->withHeaders([         'x-api-key' => $clientID     ])     ->post('https:\/\/pdf-services.adobe.io\/assets', [         \"mediaType\" => $mime     ]);  $assetID   = $response->json('assetID'); $uploadUri = $response->json('uploadUri');  \/\/ \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 assetID \u0438 uploadUri. \u0412\u0442\u043e\u0440\u043e\u0439 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u0430<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ $uploadUri \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $mime = 'mime \u0442\u0438\u043f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430'    \/\/ \u0422\u0443\u0442 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u0432\u0441\u0435\u043c Guzzle: \/\/ - PUT \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0422\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0444\u0430\u0439\u043b \u0432 \u0431\u0430\u0439\u0442\u0430\u0445 \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"Content-Type\" \u0441 \u0432\u0430\u0448\u0438\u043c mime \u0442\u0438\u043f\u043e\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 $request  = new \\GuzzleHttp\\Psr7\\Request(             'PUT',             $uploadUri,             ['Content-Type' => $mime],             file_get_contents('\u043f\u0443\u0442\u044c \u0434\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430')         ); $client   = new Client(); $response = $client->send($request);  \/\/ \u0415\u0441\u043b\u0438 \u043d\u0435 200 \u043a\u043e\u0434, \u0442\u043e \u044f\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 if ($response->getStatusCode() != 200) {   \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438, \u0438\u043d\u0430\u0447\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c assetID \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 }<\/code><\/pre>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d<\/p>\n<h2>\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430<\/h2>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ assetID \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; \/\/ access token \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $token = '';  $data = [   \"name\" => \"Dmitry\",   \"meta\" => [\"age\" => 23] ];  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http Laravel: \/\/ - POST \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0422\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 raw application\/json \/\/ - \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f Bearer \u0441 access token \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"x-api-key\" \u0441 \u0432\u0430\u0448\u0438\u043c ClientID $response = Http     ::withToken($token)     ->asJson()     ->withHeaders([         'x-api-key' => $clientID     ])     ->post('https:\/\/pdf-services.adobe.io\/operation\/documentgeneration', [         \"assetID\"          => $assetID,         \"outputFormat\"     => \"pdf\",         \"jsonDataForMerge\" => $data     ]);  \/\/ \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0435 201, \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 if ($response->status() != 201) {   \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 }  \/\/ \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a x-request-id $requestID = $response->header('x-request-id')<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ x-request-id \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $requestID = ''; \/\/ access token \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $token = '';  $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials';  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http Laravel: \/\/ - GET \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f Bearer \u0441 access token \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"x-api-key\" \u0441 \u0432\u0430\u0448\u0438\u043c ClientID $response = Http     ::withHeaders([         'x-api-key' => $clientID     ])     ->withToken($token)     ->get(\"https:\/\/pdf-services.adobe.io\/operation\/documentgeneration\/{$requestID}\/status\"); $status   = $response->json('status');  \/\/ \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0435 done, \u0442\u043e \u043b\u0438\u0431\u043e \u043e\u0448\u0438\u0431\u043a\u0430, \u043b\u0438\u0431\u043e \u0435\u0449\u0451 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f if ($status != 'done') {     \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 }  \/\/ \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ID \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 $assetID     = $response->json('asset.assetID'); $downloadUri = $response->json('asset.downloadUri');<\/code><\/pre>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <code>$downloadUri<\/code><\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/developer-console\/docs\/guides\/authentication\/JWT\/\" rel=\"noopener noreferrer nofollow\">\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 JWT<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Assets\/operation\/asset.uploadpresignedurl\" rel=\"noopener noreferrer nofollow\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/overview\/pdf-services-api\/howtos\/api-usage\/\" rel=\"noopener noreferrer nofollow\">\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Document-Generation\/operation\/pdfoperations.documentgeneration\" rel=\"noopener noreferrer nofollow\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Document-Generation\/operation\/pdfoperations.documentgeneration.jobstatus\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.postman.com\/api-evangelist\/workspace\/adobe\/collection\/35240-99b807d0-abac-481e-a509-d69785137b6b?action=share&amp;creator=16350209\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0432 Postman, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><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\/ru\/post\/708566\/\"> https:\/\/habr.com\/ru\/post\/708566\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041c\u043d\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0443: \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 Adobe API. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u044b\u043b\u043e \u043c\u0438\u043d\u0438\u043c\u0443\u043c &#8212; \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u0428\u0430\u0431\u043b\u043e\u043d \u044f \u043c\u043e\u0433 \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041d\u043e \u0441\u0430\u043c \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u0430\u043a \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0441 API \u044f \u043d\u0435 \u0437\u043d\u0430\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u044b\u0440\u043d\u0443\u043b \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u044b \u0447\u0430\u0441\u043e\u0432 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u044f \u043e\u0442\u0447\u0430\u044f\u043b\u0441\u044f. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u043e \u043c\u043e\u0440\u0435, \u043d\u043e \u043d\u0443\u0436\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u041d\u043e \u0437\u0430\u0442\u043e \u043d\u0430\u0448\u0435\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u0430\u0440\u0443 \u0441\u0442\u0430\u0442\u0435\u0439 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u0435\u043e-\u0443\u0440\u043e\u043a\u043e\u0432. \u0412\u0441\u0451 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u043b\u043e \u043c\u0435\u043d\u044f \u043a \u0446\u0435\u043b\u0438 \u043d\u0438 \u043d\u0430 \u0448\u0430\u0433.<\/p>\n<p>\u041d\u043e \u0441\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439, \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0440\u0432\u043e\u0432 \u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0441\u0434\u0430\u0442\u044c\u0441\u044f, \u044f \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0443. \u0418 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0442\u0443\u0442.<\/p>\n<h2>Adobe Document Generation API<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430: \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 Adobe \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0443\u0436\u0435\u043d.\u00a0<\/p>\n<p>Adobe Document Generation API. \u041e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e, \u0441\u0436\u0430\u0442\u0438\u0435, \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0438\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u041d\u043e \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (access token)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d<\/p>\n<\/li>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442<\/p>\n<\/li>\n<\/ol>\n<h2>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"https:\/\/developer.adobe.com\/console\/projects\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/developer.adobe.com\/console\/projects<\/u><\/a>, \u0437\u0430\u0442\u0435\u043c:<\/p>\n<ol>\n<li>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c &#171;Create new Project&#187;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c &#171;Add to project&#187; &#8212; \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c API \u0438 \u0438\u0449\u0435\u043c \u0442\u0430\u043c PDF Services API<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0436\u043c\u0435\u043c &#171;Continue&#187; \u043a\u0443\u0447\u0443 \u0440\u0430\u0437 <\/p>\n<\/li>\n<li>\n<p>\u0416\u0434\u0435\u043c \u043f\u043e\u043a\u0430 Adobe \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0445<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &#171;Credentials&#187; \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 JWT. <\/p>\n<p>\u0415\u0441\u043b\u0438 Adobe \u043d\u0435 \u043f\u0440\u0438\u0441\u043b\u0430\u043b Client Secret, \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0443\u0442 \u0436\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u0435\u0431\u0435.<\/p>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (access token)<\/h2>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c JWT \u0441\u0442\u0440\u043e\u043a\u0443, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0442\u0443\u0442: <a href=\"https:\/\/developer.adobe.com\/developer-console\/docs\/guides\/authentication\/JWT\/\" rel=\"noopener noreferrer nofollow\">https:\/\/developer.adobe.com\/developer-console\/docs\/guides\/authentication\/JWT\/<\/a><\/p>\n<pre><code class=\"php\">&lt;?php use Firebase\\JWT\\JWT;  $organizationID = 'Organization ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; $accountID = 'Technical Account ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials';   $privateKey  = file_get_contents('\u043f\u0443\u0442\u044c \u0434\u043e \u0444\u0430\u0439\u043b\u0430 private.key \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430');  $payload = [     'exp'                                                    => time() + 60 * 60 * 2,     'iss'                                                    => $organizationID,     'sub'                                                    => $accountID,     'aud'                                                    => 'https:\/\/ims-na1.adobelogin.com\/c\/' . $clientID,     'https:\/\/ims-na1.adobelogin.com\/s\/ent_documentcloud_sdk' => true ];  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f firebase\/php-jwt $jwt = JWT::encode($payload, $privateKey, 'RS256');<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c access token. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0430\u0448\u0435\u043b \u0432 <a href=\"https:\/\/www.postman.com\/api-evangelist\/workspace\/adobe\/request\/35240-9959f850-7d1c-49a4-b026-f16a4436188e\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 Adobe \u0432 Postman(Adobe Target Admin APIs\/Exchange JWT for Access token)<\/a>: <\/p>\n<pre><code class=\"php\">&lt;?php \/\/ JWT \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435  $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; $clientSecret = 'Client Secret \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials';  $query    = [     'client_id'     => $clientID,     'client_secret' => $clientSecret,     'jwt_token'     => $jwt, ];  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http \u0438\u0437 Laravel. \u041d\u043e \u0441\u0443\u0442\u044c \u0435\u0433\u043e \u0432 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e POST \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u0414\u0430, \u0431\u0435\u0437 \u0442\u0435\u043b\u0430. \u0422\u0430\u043a \u043d\u0430\u0434\u043e $response = Http::post('https:\/\/ims-na1.adobelogin.com\/ims\/exchange\/jwt?' . http_build_query($query));  $token = $response->json('access_token');<\/code><\/pre>\n<p>\u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435 access_token \u0441 \u043d\u0430\u0448\u0438\u043c \u0442\u043e\u043a\u0435\u043d\u043e\u043c. \u041b\u0438\u0431\u043e \u043e\u0448\u0438\u0431\u043a\u0430 \u0438 \u0435\u0451 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435.<\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d<\/h3>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f JSON \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0410 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e JSON.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 JSON:<\/p>\n<pre><code class=\"json\">{   \"name\": \"Dmitry\",   \"meta\":{     \"age\": 23   } }<\/code><\/pre>\n<p>\u0412 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 <code>{{name}}<\/code> \u0438 <code>{{meta.age}}<\/code><\/p>\n<h2>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d<\/h2>\n<p>Adobe \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0443 \u0441\u0435\u0431\u044f \u0444\u0430\u0439\u043b\u044b. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Amazon. <\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 Adobe \u0434\u043e\u0441\u0442\u0443\u043f \u043a Amazon, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043d\u0430\u0448 \u0448\u0430\u0431\u043b\u043e\u043d.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a Amazon:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ access token \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $token = '';  $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; \/\/ \u0423 docx mime \u0442\u0438\u043f \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document\" $mime = 'mime \u0442\u0438\u043f \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e docx'  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http Laravel: \/\/ - POST \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0422\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 raw application\/json \/\/ - \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f Bearer \u0441 access token \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"x-api-key\" \u0441 \u0432\u0430\u0448\u0438\u043c ClientID $response = Http     ::withToken($token)     ->asJson()     ->withHeaders([         'x-api-key' => $clientID     ])     ->post('https:\/\/pdf-services.adobe.io\/assets', [         \"mediaType\" => $mime     ]);  $assetID   = $response->json('assetID'); $uploadUri = $response->json('uploadUri');  \/\/ \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0431\u0443\u0434\u0435\u0442 assetID \u0438 uploadUri. \u0412\u0442\u043e\u0440\u043e\u0439 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u0430<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ $uploadUri \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $mime = 'mime \u0442\u0438\u043f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430'    \/\/ \u0422\u0443\u0442 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u0432\u0441\u0435\u043c Guzzle: \/\/ - PUT \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0422\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0444\u0430\u0439\u043b \u0432 \u0431\u0430\u0439\u0442\u0430\u0445 \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"Content-Type\" \u0441 \u0432\u0430\u0448\u0438\u043c mime \u0442\u0438\u043f\u043e\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 $request  = new \\GuzzleHttp\\Psr7\\Request(             'PUT',             $uploadUri,             ['Content-Type' => $mime],             file_get_contents('\u043f\u0443\u0442\u044c \u0434\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430')         ); $client   = new Client(); $response = $client->send($request);  \/\/ \u0415\u0441\u043b\u0438 \u043d\u0435 200 \u043a\u043e\u0434, \u0442\u043e \u044f\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 if ($response->getStatusCode() != 200) {   \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438, \u0438\u043d\u0430\u0447\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c assetID \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 }<\/code><\/pre>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d<\/p>\n<h2>\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430<\/h2>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ assetID \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials'; \/\/ access token \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $token = '';  $data = [   \"name\" => \"Dmitry\",   \"meta\" => [\"age\" => 23] ];  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http Laravel: \/\/ - POST \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0422\u0435\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 raw application\/json \/\/ - \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f Bearer \u0441 access token \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"x-api-key\" \u0441 \u0432\u0430\u0448\u0438\u043c ClientID $response = Http     ::withToken($token)     ->asJson()     ->withHeaders([         'x-api-key' => $clientID     ])     ->post('https:\/\/pdf-services.adobe.io\/operation\/documentgeneration', [         \"assetID\"          => $assetID,         \"outputFormat\"     => \"pdf\",         \"jsonDataForMerge\" => $data     ]);  \/\/ \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0435 201, \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 if ($response->status() != 201) {   \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 }  \/\/ \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a x-request-id $requestID = $response->header('x-request-id')<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u0430:<\/p>\n<pre><code class=\"php\">&lt;?php \/\/ x-request-id \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $requestID = ''; \/\/ access token \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u0432\u044b\u0448\u0435 $token = '';  $clientID = 'Client ID \u0441 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 Credentials';  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0441\u0430\u0434 Http Laravel: \/\/ - GET \u0437\u0430\u043f\u0440\u043e\u0441 \/\/ - \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f Bearer \u0441 access token \/\/ - \u0414\u043e\u043f. \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \"x-api-key\" \u0441 \u0432\u0430\u0448\u0438\u043c ClientID $response = Http     ::withHeaders([         'x-api-key' => $clientID     ])     ->withToken($token)     ->get(\"https:\/\/pdf-services.adobe.io\/operation\/documentgeneration\/{$requestID}\/status\"); $status   = $response->json('status');  \/\/ \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0435 done, \u0442\u043e \u043b\u0438\u0431\u043e \u043e\u0448\u0438\u0431\u043a\u0430, \u043b\u0438\u0431\u043e \u0435\u0449\u0451 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f if ($status != 'done') {     \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438 }  \/\/ \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c ID \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 $assetID     = $response->json('asset.assetID'); $downloadUri = $response->json('asset.downloadUri');<\/code><\/pre>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <code>$downloadUri<\/code><\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/developer-console\/docs\/guides\/authentication\/JWT\/\" rel=\"noopener noreferrer nofollow\">\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 JWT<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Assets\/operation\/asset.uploadpresignedurl\" rel=\"noopener noreferrer nofollow\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/overview\/pdf-services-api\/howtos\/api-usage\/\" rel=\"noopener noreferrer nofollow\">\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Document-Generation\/operation\/pdfoperations.documentgeneration\" rel=\"noopener noreferrer nofollow\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/developer.adobe.com\/document-services\/docs\/apis\/#tag\/Document-Generation\/operation\/pdfoperations.documentgeneration.jobstatus\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.postman.com\/api-evangelist\/workspace\/adobe\/collection\/35240-99b807d0-abac-481e-a509-d69785137b6b?action=share&amp;creator=16350209\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0432 Postman, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><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\/ru\/post\/708566\/\"> https:\/\/habr.com\/ru\/post\/708566\/<\/a><br \/><\/br><\/br><\/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-343342","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343342","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=343342"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343342\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=343342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=343342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=343342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}