{"id":531,"date":"2018-09-14T18:00:49","date_gmt":"2018-09-14T09:00:49","guid":{"rendered":"http:\/\/qol-kk.com\/wp2\/?p=531"},"modified":"2018-09-26T09:49:13","modified_gmt":"2018-09-26T00:49:13","slug":"post-531","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2018\/09\/14\/post-531\/","title":{"rendered":"\u697d\u5929API\uff1aR-Cabinet\u5185\u753b\u50cf\u306e\u4e0a\u66f8\u304d"},"content":{"rendered":"<h2>R-Cabinet\u5185\u306e\u753b\u50cf\u3092\u4e0a\u66f8\u304d\u3059\u308bAPI<\/h2>\n<p>\u753b\u50cfID\u306e\u6307\u793a\u3067\u753b\u50cf\u306e\u4e0a\u66f8\u304d\u3001\u753b\u50cf\u540d\u306e\u5909\u66f4\u3092\u884c\u3046API\u3002<\/p>\n<p>\u697d\u5929\u5e02\u5834\u30b5\u30fc\u30d0\u30fc\u5185\u3067\u753b\u50cf\u306fID\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u540c\u3058ID\u306b\u5168\u304f\u5225\u306e\u753b\u50cf\u3092\u5225\u306e\u540d\u524d\u3067\u4fdd\u5b58\u3059\u308b\u4e8b\u3082\u53ef\u80fd\u3002\u753b\u50cf\u540d\u3092\u5909\u66f4\u3057\u305f\u5834\u5408HTML\u306e\u30ea\u30f3\u30af\u306f\u5207\u308c\u308b\u4e8b\u304c\u4e88\u60f3\u3055\u308c\u308b\u306e\u3067\u64cd\u4f5c\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/p>\n<h3>API\u30e1\u30bd\u30c3\u30c9\uff1a<span id=\"title-text\">cabinet.file.update<\/span><\/h3>\n<p>\u3053\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u753b\u50cfID\u3092\u6307\u5b9a\u3057\u3066\u753b\u50cf\u60c5\u5831\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<style type=\"text\/css\">table{table-layout:fixed;}table th,table td{font-size:0.9em;word-wrap:break-word;}<\/style>\n<h4 id=\"Endpoint \/ HTTP Method\">Endpoint \/ HTTP Method<\/h4>\n<table>\n<colgroup>\n<col style=\"width: 80%;\" \/>\n<col style=\"width: 20%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>Endpoint<\/th>\n<th>HTTP Method<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>https:\/\/api.rms.rakuten.co.jp\/es\/1.0\/cabinet\/file\/update<\/td>\n<td>POST<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"Request\">Request<\/h4>\n<h5 id=\"HTTP Header\">HTTP Header<\/h5>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 20%;\" \/>\n<col style=\"width: 56%;\" \/>\n<col style=\"width: 20%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Key<\/th>\n<th>Value<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Authorization<\/td>\n<td>ESA Base64(serviceSecret:licenseKey)<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Content-Type<\/td>\n<td>multipart\/form-data<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5 id=\"HTTP Body\">HTTP Body<\/h5>\n<h6 id=\"XML:result\">Form Values<\/h6>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 13%;\" \/>\n<col style=\"width: 13%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 30%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Key<\/th>\n<th>Description<\/th>\n<th>Mandatory<\/th>\n<th>Type<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>xml<\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8<\/td>\n<td>\u3007<\/td>\n<td>String<\/td>\n<td>API\u306e\u30d1\u30e9\u30e1\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>file<\/td>\n<td>\u753b\u50cf\u60c5\u5831<\/td>\n<td>\u3007<\/td>\n<td>binary<\/td>\n<td>HTML\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<br \/>\n1\u30d5\u30a1\u30a4\u30eb\u3042\u305f\u308a\u306e\u91cd\u3055 \uff1a 2MB\u307e\u3067<br \/>\n1\u30d5\u30a1\u30a4\u30eb\u3042\u305f\u308a\u306e\u30b5\u30a4\u30ba \uff1a \u6a2a1600\u00d7\u7e261200pixel\u307e\u3067<br \/>\n\u767b\u9332\u53ef\u80fd\u306a\u5f62\u5f0f \uff1a JPEG\u3001GIF\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3GIF\u3001PNG\u3001TIFF\u3001BMP<br \/>\n\u203bPNG\u3001TIFF\u3001BMP\u5f62\u5f0f\u306e\u753b\u50cf\u306fJPEG\u306b\u5909\u63db (\u305d\u306e\u4ed6\u306e\u5f62\u5f0f\u306f\u30a8\u30e9\u30fc)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h6>XML:request<\/h6>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 16%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Element<\/th>\n<th>Description<\/th>\n<th>Type<\/th>\n<th>Size(byte)<\/th>\n<th>Mandatory<\/th>\n<th>Multiplicity<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>request.fileUpdateRequest<\/td>\n<td>\u753b\u50cf\u60c5\u5831\u66f4\u65b0\u8981\u6c42<\/td>\n<td>XML: fileUpdateRequest<\/td>\n<td>-<\/td>\n<td>\u3007<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h6>XML:fileUpdateRequest<\/h6>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 16%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Element<\/th>\n<th>Description<\/th>\n<th>Type<\/th>\n<th>Size(byte)<\/th>\n<th>Mandatory<\/th>\n<th>Multiplicity<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>fileUpdateRequest.file<\/td>\n<td>\u753b\u50cf\u60c5\u5831<\/td>\n<td>XML:file<\/td>\n<td>-<\/td>\n<td>\u3007<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h6>XML:file<\/h6>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 12%;\" \/>\n<col style=\"width: 12%;\" \/>\n<col style=\"width: 12%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/> <\/colgroup>\n<colgroup>\n<col style=\"width: 20%;\" \/><\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Element<\/th>\n<th>Description<\/th>\n<th>Type<\/th>\n<th>Size(byte)<\/th>\n<th>Mandatory<\/th>\n<th>Multiplicity<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>file.fileId<\/td>\n<td>\u753b\u50cfID<\/td>\n<td>Integer<\/td>\n<td>10<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>file.fileName<\/td>\n<td>\u66f4\u65b0\u753b\u50cf\u540d<\/td>\n<td>String<\/td>\n<td>50<\/td>\n<td>\u203b1<\/td>\n<td>0,1<\/td>\n<td>50\u30d0\u30a4\u30c8\u4ee5\u5185\uff08\u5168\u89d225\u6587\u5b57\u4ee5\u5185\/\u534a\u89d250\u6587\u5b57\u4ee5\u5185\uff09<br \/>\n\u4f7f\u7528\u7981\u6b62\u6587\u5b57\uff1a\u6a5f\u7a2e\u4f9d\u5b58\u6587\u5b57\uff08\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30b3\u30fc\u30c9\u9664\u304f\uff09\u3001\u534a\u89d2\u30ab\u30bf\u30ab\u30ca<br \/>\n\u5168\u89d2\u30b9\u30da\u30fc\u30b9 \u2192 \u534a\u89d2\u30b9\u30da\u30fc\u30b9\u306b\u5909\u63db<br \/>\n\u30b9\u30da\u30fc\u30b9\u306e\u307f\u306f\u4e0d\u53ef<br \/>\n\u524d\u5f8c\u306b\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30b9\u30da\u30fc\u30b9\u3092\u81ea\u52d5\u524a\u9664<br \/>\n\u30bf\u30b0\u306f\u7121\u52b9\uff08\u5165\u529b\u3057\u305f\u5834\u5408\u306f\u3001\u30bf\u30b0\u3068\u5224\u65ad\u3055\u308c\u305f\u3082\u306e\u3092\u524a\u9664\u3057\u3066\u66f4\u65b0\uff09<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>file.filePath<\/td>\n<td>\u66f4\u65b0file\u540d<\/td>\n<td>String<\/td>\n<td>20<\/td>\n<td>\u203b1<\/td>\n<td>0,1<\/td>\n<td>20\u30d0\u30a4\u30c8\u4ee5\u5185\uff08\u534a\u89d220\u6587\u5b57\u4ee5\u5185\uff09<br \/>\nrename\u306e\u307fmove\u306f\u3057\u306a\u3044<br \/>\n\u767b\u9332\u6642\u306bdefault\u3067\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u3001img + \u5225\u6570\u5b57,imgrc + \u5225\u6570\u5b57\u306e\u5f62\u5f0f\u3078\u306f\u5909\u66f4\u4e0d\u53ef<br \/>\n\u767b\u9332\u6642\u3068\u540c\u3058\u5024\u306f\u6307\u5b9a\u4e0d\u53ef<br \/>\n\u5165\u529b\u53ef\u80fd\u306a\u6587\u5b57\u306f\u3001\u534a\u89d2\u82f1\u6570\u5b57\uff08\u5c0f\u6587\u5b57\uff09\/\u8a18\u53f7\u306f\u300c-\u300d\u300c_\u300d\u306e\u307f<br \/>\n\u4f7f\u7528\u7981\u6b62\u6587\u5b57\uff1a\u6a5f\u7a2e\u4f9d\u5b58\u6587\u5b57\uff08\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30b3\u30fc\u30c9\u542b\u3080\uff09\u3001img+8\u6841\u306e\u6570\u5b57\u3001imgrc+10\u6841\u306e\u6570\u5b57<br \/>\n\u30b9\u30da\u30fc\u30b9\u306e\u307f\/\u5b57\u9593\u306b\u30b9\u30da\u30fc\u30b9\u306f\u4e0d\u53ef(\u30b9\u30da\u30fc\u30b9\u306e\u307f\u306e\u5834\u5408\u306f\u66f4\u65b0\u3057\u306a\u3044)<br \/>\n\u524d\u5f8c\u306b\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30b9\u30da\u30fc\u30b9\u306f\u81ea\u52d5\u524a\u9664<br \/>\n\u30bf\u30b0\u306f\u7121\u52b9\uff08\u5165\u529b\u3057\u305f\u5834\u5408\u306f\u30bf\u30b0\u3068\u5224\u65ad\u3055\u308c\u305f\u3082\u306e\u3092\u524a\u9664\u3057\u3066\u66f4\u65b0\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: small;\">\u203b1. file\u3001fileName\u3001filePath\u306e\u9805\u76ee\u306e\u3046\u3061\u3001\u6700\u4f4e\u3067\u30821\u3064\u306f\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u5165\u529b\u306e\u306a\u3044\u9805\u76ee\u306f\u66f4\u65b0\u3055\u308c\u305a\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u306e\u307e\u307e\u3068\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<h4 id=\"Response\">Response<\/h4>\n<h5 id=\"HTTP Header\">HTTP Header<\/h5>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 56%;\" \/>\n<col style=\"width: 40%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Key<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Content-Type<\/td>\n<td>text\/xml<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h5>HTTP Body<\/h5>\n<h6>XML:result<\/h6>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 31%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Element<\/th>\n<th>Description<\/th>\n<th>Type<\/th>\n<th>Size(byte)<\/th>\n<th>Multiplicity<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>result.status<\/td>\n<td>\u30b9\u30c6\u30fc\u30bf\u30b9<\/td>\n<td>XML : status<\/td>\n<td>-<\/td>\n<td>1<\/td>\n<td>interfaceId=cabinet.file.update<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>result.cabinetFileUpdateResult<\/td>\n<td>\u753b\u50cf\u60c5\u5831\u66f4\u65b0\u7d50\u679c<\/td>\n<td>XML : cabinetFileUpdateResult<\/td>\n<td>-<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h6>XML:cabinetFileUpdateResult<\/h6>\n<table>\n<colgroup>\n<col style=\"width: 4%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 15%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 10%;\" \/>\n<col style=\"width: 31%;\" \/> <\/colgroup>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Element<\/th>\n<th>Description<\/th>\n<th>Type<\/th>\n<th>Size(byte)<\/th>\n<th>Multiplicity<\/th>\n<th>Note<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>cabinetFileUpdateResult.resultCode<\/td>\n<td>\u7d50\u679c\u30b3\u30fc\u30c9<\/td>\n<td>Integer<\/td>\n<td>4<\/td>\n<td>1<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>R-Cabinet\u5185\u306e\u753b\u50cf\u3092\u4e0a\u66f8\u304d\u3059\u308bAPI \u753b\u50cfID\u306e\u6307\u793a\u3067\u753b\u50cf\u306e\u4e0a\u66f8\u304d\u3001\u753b\u50cf\u540d\u306e\u5909\u66f4\u3092\u884c\u3046API\u3002 \u697d\u5929\u5e02\u5834\u30b5\u30fc\u30d0\u30fc\u5185\u3067\u753b\u50cf\u306fID\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u540c\u3058ID\u306b\u5168\u304f\u5225\u306e\u753b\u50cf\u3092\u5225\u306e\u540d\u524d\u3067\u4fdd\u5b58\u3059\u308b\u4e8b\u3082\u53ef\u80fd\u3002\u753b\u50cf\u540d\u3092\u5909\u66f4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"vkexunit_cta_each_option":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[40],"tags":[64,103,106,49,47,101,68,50],"class_list":["post-531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rakuten-specification","tag-api","tag-r-cabinet","tag-106","tag-49","tag-47","tag-101","tag-68","tag-50"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/08\/api.jpg","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=531"}],"version-history":[{"count":4,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/531\/revisions"}],"predecessor-version":[{"id":752,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/531\/revisions\/752"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/262"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}