{"id":7475,"date":"2021-06-02T14:19:52","date_gmt":"2021-06-02T05:19:52","guid":{"rendered":"http:\/\/assist-tencho.com\/faq\/?p=7475"},"modified":"2025-10-23T11:37:31","modified_gmt":"2025-10-23T02:37:31","slug":"01-507","status":"publish","type":"post","link":"https:\/\/ec.smaregi.jp\/oms\/faq\/set-config\/01-507\/","title":{"rendered":"\u74b0\u5883\u8a2d\u5b9a\uff1e\u5916\u90e8\u30a2\u30d7\u30ea\u9023\u643a"},"content":{"rendered":"\n<div id=\"keni_toc\" class=\"disp_tree\">\u76ee\u6b21<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u6982\u8981<\/h2>\n\n\n\n<p>API\u9023\u643a\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u753b\u9762\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u753b\u9762\u89e3\u8aac<\/h2>\n\n\n\n<p>\u74b0\u5883\u8a2d\u5b9a\uff1e\u5916\u90e8\u30a2\u30d7\u30ea\u9023\u643a<\/p>\n\n\n\n<h3 class=\"wp-block-heading koumoku\" id=\"list1\">\u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7de8\u96c6<\/h3>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>\u30b9\u30de\u30ec\u30b8EC\u30fb\u30ea\u30d4\u30fc\u30c8\u3068\u306eAPI\u9023\u643a\u306b\u3064\u3044\u3066\u306f<\/strong><a rel=\"noreferrer noopener\" aria-label=\"\u3053\u3061\u3089 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"\/\/assist-faq.netshop-supporters.com\/api\/raku2repeat-api-manual\/\" target=\"_blank\"><strong>\u3053\u3061\u3089<\/strong><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/raku2repeat.com\/faq\/wp-content\/uploads\/0e9140acaed3fda29870226ea1a88ed9.png\" alt=\"\" class=\"wp-image-16605\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9805\u76ee<\/th><th>\u5185\u5bb9<\/th><\/tr><\/thead><tbody><tr><td>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d<\/td><td>\u4efb\u610f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d<\/td><\/tr><tr><td>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL<\/td><td>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL\u306e\u8a2d\u5b9a\u3002<br>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL\u306b\u306f\u8a8d\u8a3c\u60c5\u5831\u3092\u53d7\u3051\u53d6\u308bURL\u3092\u6307\u5b9a\u3059\u308b\u3002<\/td><\/tr><tr><td>IP\u5236\u9650<\/td><td>\u8a31\u53ef\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9\u306e\u8a2d\u5b9a\u3002<br>\u672a\u8a2d\u5b9a\u306e\u5834\u5408\u306f\u7121\u5236\u9650\u3068\u306a\u308b\u3002<\/td><\/tr><tr><td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID<\/td><td>\u65b0\u898f\u767b\u9332\u6642\u306f\u7a7a\u6b04\u3067\u767b\u9332\u3059\u308b\u3053\u3068<br>\u203b\u81ea\u52d5\u767a\u884c\u3055\u308c\u307e\u3059<\/td><\/tr><tr><td>\u30b7\u30fc\u30af\u30ec\u30c3\u30c8ID<\/td><td>\u65b0\u898f\u767b\u9332\u6642\u306f\u7a7a\u6b04\u3067\u767b\u9332\u3059\u308b\u3053\u3068<br>\u203b\u81ea\u52d5\u767a\u884c\u3055\u308c\u307e\u3059<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"list2\">\u8a8d\u8a3c\u30da\u30fc\u30b8\u8868\u793a<\/h4>\n\n\n\n<p>https:\/\/{\u30c9\u30e1\u30a4\u30f3\u540d}\/api\/oauth\/authorize.php \u306b\u3001\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u3064\u3051\u3066GET\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br>\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a8d\u8a3c\u3092\u884c\u3046HTML\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<table class=\"tbl-spec\">\n<colgroup>\n<col width=\"30%\">\n<col width=\"70%\"> <\/colgroup>\n<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf\u540d<\/th>\n<th>\u6709\u52b9\u306a\u5024<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>client_id<\/td>\n<td>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a73\u7d30\u753b\u9762\u3067\u78ba\u8a8d\u3067\u304d\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID<\/td>\n<\/tr>\n<tr>\n<td>response_type<\/td>\n<td>&#8220;code&#8221;\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>redirect_uri<\/td>\n<td>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u767b\u9332\u6642\u306b\u5165\u529b\u3057\u305f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL\u3068\u540c\u4e00\u306e\u3082\u306e\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>state<\/td>\n<td>\u4efb\u610f\u306e\u6587\u5b57\u5217<\/td>\n<\/tr>\n<tr>\n<td>scope<\/td>\n<td><span style=\"color: #ff0000;\">\u4e88\u7d04\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059\u3002\u73fe\u5728\u306f\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002<\/span><br \/><span style=\"color: #000000;\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5229\u7528\u3057\u305f\u3044\u6a5f\u80fd\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span><br \/>\u201cread_sales\u201d = \u53d7\u6ce8\u30c7\u30fc\u30bf\u3092\u53c2\u7167<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n<pre class=\"wp-block-preformatted\">\uff08\u4f8b\uff09 <br>https:\/\/{\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406\u30c9\u30e1\u30a4\u30f3\u540d}\/oauth\/authorize.php?client_id=CLIENT_ID&amp;redirect_uri=REDIRECT_URL&amp;response_type=code&amp;scope=read_sales&amp;state=a397aabc602f7e296db23b0717edd1fda06c345f <br><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>URL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u8a8d\u53ef\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6301\u3064\u5229\u7528\u8005\u306f\u3001\u3053\u306e\u30da\u30fc\u30b8\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30b7\u30e7\u30c3\u30d7\u306e\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u308b\u3053\u3068\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u306f\u3058\u3081\u3066\u8a31\u53ef\u30da\u30fc\u30b8\u3078\u8a2a\u308c\u308b\u5229\u7528\u8005\u306f\u3001\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406\u306e\u7ba1\u7406\u8005\u30ed\u30b0\u30a4\u30f3ID\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"list3\">\u8a8d\u53ef\u30b3\u30fc\u30c9\u3092\u53d6\u5f97<\/h4>\n\n\n\n<p>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL\u306b\u6307\u5b9a\u3057\u305fURL\u3067\u8a31\u53ef\u30b3\u30fc\u30c9\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\uff09 <br>https:\/\/{\u5fa1\u793e\u30c4\u30fc\u30eb\u30c9\u30e1\u30a4\u30f3\u540d}\/getAuth.php?code=xxxxxxxxx&amp;state=zzzzzzzzz <\/p>\n\n\n\n<p>code\u306e\u5024\u304c\u8a8d\u53ef\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"list4\">\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u53d6\u5f97<\/h4>\n\n\n\n<p>\u8a8d\u53ef\u30b3\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br>https:\/\/{\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406\u30c9\u30e1\u30a4\u30f3\u540d}\/{\u74b0\u5883\u540d}\/api\/oauth\/token.php \u306b\u5bfe\u3057\u3066POST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color\"><strong>\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf<\/strong><\/p>\n\n\n<table class=\"tbl-spec\">\n<colgroup>\n<col width=\"30%\">\n<col width=\"70%\"> <\/colgroup>\n<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf\u540d<\/th>\n<th>\u6709\u52b9\u306a\u5024<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>client_id<\/td>\n<td>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a73\u7d30\u753b\u9762\u3067\u78ba\u8a8d\u3067\u304d\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID<\/td>\n<\/tr>\n<tr>\n<td>client_secret<\/td>\n<td>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a73\u7d30\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u6587\u5b57\u5217<\/td>\n<\/tr>\n<tr>\n<td>code<\/td>\n<td>\u53d6\u5f97\u3057\u305f\u8a8d\u53ef\u30b3\u30fc\u30c9\u6587\u5b57\u5217<\/td>\n<\/tr>\n<tr>\n<td>grant_type<\/td>\n<td>&#8220;client_credentials&#8221;\u3092\u6307\u5b9a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color\"><strong>\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf<\/strong><\/p>\n\n\n<table class=\"tbl-spec\">\n<colgroup>\n<col width=\"30%\">\n<col width=\"70%\"> <\/colgroup>\n<thead>\n<tr>\n<th>\u30d1\u30e9\u30e1\u30fc\u30bf\u540d<\/th>\n<th>\u6709\u52b9\u306a\u5024<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>access_token<\/td>\n<td>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3<\/td>\n<\/tr>\n<tr>\n<td>expires_in<\/td>\n<td>\u6709\u52b9\u671f\u9650<\/td>\n<\/tr>\n<tr>\n<td>refresh_token<\/td>\n<td>\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u30c8\u30fc\u30af\u30f3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u304cJSON\u3067\u8fd4\u308a\u307e\u3059\u3002<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\"access_token\":\"d461ab8XXXXXXXXXXXXXXXXXXXXXXXXX\",\"token_type\":\"beare r\",\"expires_in\":null,\"refresh_token\":null,\"scope\":\"\"}<br><\/pre>\n\n\n\n<p>access_token\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u5024\u304c\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3067\u3059\u3002<br>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3059\u308c\u3070\u3001\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406API\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8a8d\u53ef\u30b3\u30fc\u30c9\u3092\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306b\u4ea4\u63db\u3067\u304d\u308b\u306e\u306f\uff11\u5ea6\u3060\u3051\u3067\u3059\u3002<\/li>\n\n\n\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306f\u3001\u8a31\u53ef\u6e08\u307f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e00\u89a7\u753b\u9762\u304b\u3089\u5931\u52b9\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"list5\">API\u60c5\u5831\u306e\u547c\u3073\u51fa\u3057<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3064\u304d\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406API\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3001\u3069\u3061\u3089\u3082JSON\u3067\u3084\u308a\u3068\u308a\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u5404API\u306f\u3001URL\u3068HTTP\u30e1\u30bd\u30c3\u30c9\u3067\u64cd\u4f5c\u3092\u8868\u3057\u307e\u3059\u3002\u3000<\/li>\n<\/ul>\n\n\n\n<p>\u3000\u3000\u30fbGET\u53c2\u7167<br>\u3000\u3000\u30fbPOST\u65b0\u898f\u767b\u9332<br>\u3000\u3000\u30fbPUT\u66f4\u65b0<br>\u3000\u3000\u30fbDELETE\u524a\u9664<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>POST,PUT\u306e\u969b\u306b\u306f\u3001\u30d8\u30c3\u30c0\u306b Content-Type: application\/json \u3092\u3064\u3051\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u306bJSON\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u306eJSON\u306b\u65e5\u672c\u8a9e\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u306f\u6587\u5b57\u30b3\u30fc\u30c9\u306fUTF-8\u3001\\uNNNN\u5f62\u5f0f\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>Authorization\u30d8\u30c3\u30c0\u306b\u4ee5\u4e0b\u306e\u5f62\u5f0f\u3067\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u4ed8\u4e0e\u3057\u3001\u5404API\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">Authorization: Bearer 0908dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"list6\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h4>\n\n\n\n<p>\u203b\u4ee5\u4e0b\u306f\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002URL\u3084\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u4fbf\u5b9c\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eWeb\u30b5\u30fc\u30d0\u306e\u30b5\u30f3\u30d7\u30eb<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php<br><br> define(\"OAUTH2_SITE\", 'https:\/\/{\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406\u30c9\u30e1\u30a4\u30f3}');<br> define(\"OAUTH2_CLIENT_ID\",'XXXXX');      \/\/ \u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br> define(\"OAUTH2_CLIENT_SECRET\", 'XXXXX'); \/\/ \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br> define(\"OAUTH2_REDIRECT_URI\", 'http:\/\/example.com\/index.php');<br><br> $code = $_GET['code'];<br> $state = sha1(uniqid(mt_rand(), true));  \/\/\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u30bb\u30c3\u30c8\u3002<br>\/\/ \u8a8d\u53ef\u30da\u30fc\u30b8\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b <br>if (empty($code)) {<br>     $params = array( <br>        'client_id'     =&gt; OAUTH2_CLIENT_ID, <br>        'redirect_uri'  =&gt; OAUTH2_REDIRECT_URI,<br>         'response_type' =&gt; 'code',<br>         'scope'         =&gt; 'read_sales',<br> &nbsp;      &nbsp;'state'         =&gt; $state<br>     );<br>     $auth_url = OAUTH2_SITE . '\/api\/oauth\/authorize.php?' . http_build_query($params);<br>     header('Location: ' . $auth_url);<br>     exit;<br> } <br>\/\/ \u8a8d\u53ef\u5f8c<br> $params = array(<br>     'client_id'     =&gt; OAUTH2_CLIENT_ID,<br>     'client_secret' =&gt; OAUTH2_CLIENT_SECRET,<br>     'code'          =&gt; $code,<br>     'grant_type'    =&gt; 'client_credentials',<br>     'redirect_uri'  =&gt; OAUTH2_REDIRECT_URI<br> );<br> $request_options = array(<br>     'http' =&gt; array(<br>         'method'  =&gt; 'POST',<br>         'content' =&gt; http_build_query($params)<br>     )<br> );<br> $context = stream_context_create($request_options);<br><br> $token_url = OAUTH2_SITE . '\/api\/oauth\/token.php';<br> $response_body = file_get_contents($token_url, false, $context);<br> $response_json = json_decode($response_body);<\/pre>\n\n\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\">\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u7528\u3044\u305fPUT\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30b5\u30f3\u30d7\u30eb<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php<br><br> $arrParam = array();<br> $arrParam['serial_order_id'] = '5'<br><br><br> $api_url = 'https:\/\/{\u30b9\u30de\u30ec\u30b8EC\u30fb\u4e00\u5143\u7ba1\u7406\u30c9\u30e1\u30a4\u30f3}\/api\/v1\/orders.php?' . http_build_query($arrParam);<br> $api = new HTTP_Request($api_url, $option);<br> \/\/ POST\u3067\u9001\u4fe1<br> $api-&gt;setMethod(HTTP_REQUEST_METHOD_GET);<br> \/\/ Header\u8a2d\u5b9a<br> $api-&gt;addHeader('Authorization', \"Bearer {\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3}\");<br> \/\/ HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u5b9f\u884c<br> $response_api = $api-&gt;sendRequest();<br> $status_code = $api-&gt;getResponseCode();<br> $response_body_api = $api-&gt;getResponseBody();<br> $response_body_api = json_decode($response_body_api);<br> ?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 API\u9023\u643a\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u753b\u9762\u3067\u3059\u3002 \u753b\u9762\u89e3\u8aac \u74b0\u5883\u8a2d\u5b9a\uff1e\u5916\u90e8\u30a2\u30d7\u30ea\u9023\u643a \u5916\u90e8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7de8\u96c6 \u30b9\u30de\u30ec\u30b8EC\u30fb\u30ea\u30d4\u30fc\u30c8\u3068\u306eAPI\u9023\u643a\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089 \u9805\u76ee \u5185\u5bb9 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d \u4efb\u610f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d \u30ea\u30c0\u30a4\u30fb\u30fb\u30fb<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":[],"meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":{"0":"post-7475","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-set-config"},"views":1585,"_links":{"self":[{"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/posts\/7475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/comments?post=7475"}],"version-history":[{"count":8,"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/posts\/7475\/revisions"}],"predecessor-version":[{"id":22444,"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/posts\/7475\/revisions\/22444"}],"wp:attachment":[{"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/media?parent=7475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/categories?post=7475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/tags?post=7475"},{"taxonomy":"format","embeddable":true,"href":"https:\/\/ec.smaregi.jp\/oms\/faq\/wp-json\/wp\/v2\/format?post=7475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}