{"id":13372,"date":"2021-04-18T20:37:47","date_gmt":"2021-04-18T11:37:47","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=13372"},"modified":"2023-05-07T21:42:23","modified_gmt":"2023-05-07T12:42:23","slug":"%e3%80%90api%e3%80%91%e8%bf%94%e3%81%99json%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e4%b8%ad%e8%ba%ab%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=13372","title":{"rendered":"\u3010API\u3011\u8fd4\u3059JSON\u30c7\u30fc\u30bf\u306e\u4e2d\u8eab\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>\u30a8\u30f3\u30d9\u30ed\u30fc\u30d7\u306f\u5fc5\u8981\u304b\uff1f<\/h2>\n<p>\u30a8\u30f3\u30d9\u30ed\u30fc\u30d7\uff08\u65e5\u672c\u8a9e\u3067\u3044\u3048\u3070\u5c01\u7b52\uff09\u3068\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u4ee5\u5916\u306e\u4ed8\u52a0\u60c5\u5831\u306e\u3053\u3068\u3067\u3059\u3002\u4e00\u898b\u3059\u308b\u3068\u7d71\u4e00\u7684\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u7d50\u8ad6\u304b\u3089\u7533\u3057\u307e\u3059\u3068\u5197\u9577\u306a\u306e\u3067\u5fc5\u8981\u306a\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">[\r\n  \"header\": {\r\n    \"status\": \"success\",\r\n    \"errorCode\": 0,\r\n  },\r\n  \"response\": {\r\n     ...\r\n  },\r\n]<\/pre>\n<h3>\u306a\u305c\u30a8\u30f3\u30d9\u30ed\u30fc\u30d6\u306f\u4e0d\u8981\u304b\uff1f<\/h3>\n<p>Web API\u306f\u57fa\u672c\u7684\u306bHTTP\u3092\u5229\u7528\u3057\u3066\u3044\u3066HTTP\u304c\u30a8\u30f3\u30d9\u30ed\u30fc\u30d6\u306e\u5f79\u5272\u3092\u679c\u305f\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002HTTP\u306b\u306f\u30d8\u30c3\u30c0\u304c\u3042\u3063\u3066\u305d\u306e\u30d8\u30c3\u30c0\u304c\u30a8\u30f3\u30d9\u30ed\u30fc\u30d6\u306e\u5f79\u5272\u3092\u679c\u305f\u3057\u3066\u3044\u307e\u3059\u3002\u3088\u308a\u8a73\u7d30\u306a\u60c5\u5831\u306fHTTP\u30d8\u30c3\u30c0\u306b\u5165\u308c\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3044\u3067\u3059\u3002<\/p>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u3084\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u306a\u3069\u306fHTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u306b\u5168\u3066\u5165\u308c\u8fbc\u3093\u3067\u4ed5\u821e\u3048\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305f\u3060\u3001\u4e00\u90e8\u4f8b\u5916\u304c\u3042\u3063\u3066JSONP\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u30d6\u30e9\u30a6\u30b6\u3067\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\u306f\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3084\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u305d\u306e\u5834\u5408\u306f\u30a8\u30f3\u30d9\u30ed\u30fc\u30d6\u306f\u3042\u3063\u305f\u65b9\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30c7\u30fc\u30bf\u306f\u30d5\u30e9\u30c3\u30c8\u306b\u3059\u3079\u304d\u304b\uff1f<\/h2>\n<p>\u968e\u5c64\u5316\u3059\u308b\u3068JSON\u306e\u30c7\u30fc\u30bf\u5bb9\u91cf\u304c\u5897\u3048\u308b\u306e\u3067\u3067\u304d\u308b\u3060\u3051\u30d5\u30e9\u30c3\u30c8\u306b\u3059\u308b\u306e\u304c\u671b\u307e\u3057\u3044\u3067\u3057\u3087\u3046\u3002\u5fc5\u8981\u304c\u3042\u3063\u305f\u5834\u5408\u306f\u968e\u5c64\u5316\u3059\u308b\u3068\u3044\u3046\u65b9\u5f0f\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n<h2>\u914d\u5217\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f7f\u3044\u5206\u3051<\/h2>\n<p>JSON\u306f\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u306b\u914d\u5217\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u3069\u3061\u3089\u3067\u3082\u914d\u7f6e\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u304c\u3001\u3069\u3061\u3089\u304b\u3068\u3044\u3048\u3070\u4ee5\u4e0b\u306e\u7406\u7531\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u306b\u3057\u305f\u65b9\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u304c\u4f55\u3092\u793a\u3057\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u308b\u3002<\/li>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u30ea\u30b9\u30af\u304c\u4f4e\u304f\u306a\u308b\u3002\uff08JSON\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u653b\u6483\u306b\u5f37\u304f\u306a\u308b\u3002\uff09<\/li>\n<\/ul>\n<h3>\u914d\u5217<\/h3>\n<ul>\n<li>\u9806\u5e8f\u304c\u4fdd\u8a3c\u3055\u308c\u308b\u3002<\/li>\n<li>\u30c7\u30fc\u30bf\u306f\u308f\u304b\u308a\u3065\u3089\u3044\u3002<\/li>\n<\/ul>\n<h3>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h3>\n<ul>\n<li>\u30c7\u30fc\u30bf\u69cb\u9020\u304c\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u308b\u3002<\/li>\n<li>\u9806\u5e8f\u304c\u4fdd\u8a3c\u3055\u308c\u306a\u3044\u3002<\/li>\n<\/ul>\n<h2>\u65e5\u4ed8\u306e\u8868\u73fe\u65b9\u6cd5<\/h2>\n<p>\u3044\u308d\u3044\u308d\u306a\u65e5\u4ed8\u5f62\u5f0f\u304c\u3042\u308a\u307e\u3059\u304c\u3001RFC 3339\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u7528\u3044\u308b\u6a19\u6e96\u5f62\u5f0f\u3068\u3057\u3066\u5b9a\u3081\u3089\u308c\u305f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u5f62\u5f0f\u540d<\/th>\n<th>\u4f8b<\/th>\n<th>\u7279\u5fb4<\/th>\n<\/tr>\n<tr>\n<td>RFC 822(RFC1123\u3067\u5ec3\u6b62)<\/td>\n<td>Sun,12 Dec 2004 08:12:10 GMT<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>RFC 850(RFC1036\u3067\u5ec3\u6b62)<\/td>\n<td>Sunday,12 Dec 2004 08:12:10 GMT<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>ANSI C\u306easctime\u5f62\u5f0f<\/td>\n<td>Sun Dec 12:11:34:21 2004<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>RFC 3339<\/td>\n<td>2004-11-1211:34:22+09:00<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Unix\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7(epoch\u79d2\uff09<\/td>\n<td>128473838<\/td>\n<td>1970\u5e741\u67081\u65e5\u304b\u3089\u306e\u7d4c\u904e\u6642\u9593\u3092\u79d2\u3067\u8868\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"\u30a8\u30f3\u30d9\u30ed\u30fc\u30d7\u306f\u5fc5\u8981\u304b\uff1f \u30a8\u30f3\u30d9\u30ed\u30fc\u30d7\uff08\u65e5\u672c\u8a9e\u3067\u3044\u3048\u3070\u5c01\u7b52\uff09\u3068\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u4ee5\u5916\u306e\u4ed8\u52a0\u60c5\u5831\u306e\u3053\u3068\u3067\u3059\u3002\u4e00\u898b\u3059\u308b\u3068\u7d71\u4e00\u7684\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u7d50\u8ad6\u304b\u3089\u7533\u3057\u307e\u3059\u3068\u5197\u9577\u306a\u306e\u3067\u5fc5\u8981\u306a\u3044\u3067\u3059\u3002 [ \"header\" [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[118],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13372"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13372"}],"version-history":[{"count":5,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13372\/revisions"}],"predecessor-version":[{"id":19572,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/13372\/revisions\/19572"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13372"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}