{"id":135,"date":"2018-08-31T19:40:51","date_gmt":"2018-08-31T10:40:51","guid":{"rendered":"http:\/\/rugoh.co.jp\/blog\/?p=135"},"modified":"2021-09-09T02:33:32","modified_gmt":"2021-09-08T17:33:32","slug":"opauth","status":"publish","type":"post","link":"https:\/\/rugoh.co.jp\/blog\/2018\/08\/31\/opauth\/","title":{"rendered":"[FuelPHP]opAuth\u3067Facebook\u30ed\u30b0\u30a4\u30f3\u3067\u30cf\u30de\u3063\u305f\u4ef6"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-170\" src=\"http:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831.png\" alt=\"\" width=\"750\" height=\"500\" srcset=\"https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831.png 750w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>FuelPHP1.7\u306b\u3066Facebook\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u624b\u9806\u3067\u3059\u3002<br \/>\n\u3059\u3067\u306b\u3001\u3044\u304f\u3064\u3082\u306e\u540c\u3058\u3088\u3046\u306a\u89e3\u8aac\u30da\u30fc\u30b8\u306f\u3042\u308a\u307e\u3057\u305f\u304c\u3001<br \/>\n\u60c5\u5831\u304c\u53e4\u304f\u3001\u3042\u307e\u308a\u53c2\u8003\u306b\u306a\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<h2>\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u306b\u5fc5\u8981\u306aopAuth\u3092Composer\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059<\/h2>\n<p>composer.json\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ffd\u8a18<\/p>\n<pre>\"require\": {\n\"php\": \"&gt;=5.3.3\",\n\"composer\/installers\": \"~1.0\",\n\"fuel\/core\": \"1.8.*\",\n\"fuel\/auth\": \"1.8.*\",\n<strong style=\"color: red;\">\"opauth\/opauth\": \"4.*\",\n\"opauth\/facebook\": \"dev-master\",<\/strong>\n},\n<\/pre>\n<p>\u65b0\u305f\u306b\u3001opauth\/opauth,opauth\/facebook\u306e\u4e8c\u3064\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\nfuel\/auth\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u306a\u3044\u5834\u5408\u306f\u3001\u305d\u308c\u3082\u540c\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001Google\u3084twitter\u306a\u3069\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5834\u5408\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u65b0\u3057\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff08\u3053\u3053\u3067\u306f\u5272\u611b\uff09<\/p>\n<pre>\"opauth\/google\": \"dev-master\",\n\"opauth\/twitter\": \"dev-master\"\n<\/pre>\n<p>\u3067\u3001composer\u3092update\u3057\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059<\/p>\n<pre># php composer.phar update\n<\/pre>\n<p>auth\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306b\u3001<code>\/fuel\/app\/config\/config.php<\/code>\u306b\u8a2d\u5b9a\u3092\u8ffd\u8a18<\/p>\n<pre>'always_load'  =&gt; array(\n\t'packages'  =&gt; array(\n\t\t<strong>'auth',<\/strong>\n\t\t'orm',\n\t),\n),\n<\/pre>\n<h2>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/h2>\n<p><code>\/fuel\/packages\/auth\/config\/opauth.php<\/code>\u3092<code>\/fuel\/app\/config\/opauth.php<\/code>\u306b\u30b3\u30d4\u30fc\u3057\u3066\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059<\/p>\n<pre>\t\/**\n\t * A random string used for signing of auth response.\n\t *\n\t * You HAVE to set this value in your application config file!\n\t *\/\n\t<strong style=\"color: red;\">'security_salt' =&gt; '\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u3044\u308c\u308b',<\/strong>\n\n\t\/**\n\t * Strategy\n\t * Refer to individual strategy's documentation on configuration requirements.\n\t *\/\n\t'Strategy' =&gt; array(\n\n\t    'Facebook' =&gt; array(<strong style=\"color: red;\">\n\t       'app_id' =&gt; '{Facebook\u30a2\u30d7\u30ea\u306eapp id}',\n\t       'app_secret' =&gt; '{Facebook\u30a2\u30d7\u30ea\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc}'\n\t     <\/strong>),\n\n\t ),\n\n<\/pre>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u4f5c\u6210<\/h2>\n<p>\u4f8b\u3068\u3057\u3066\u3001<code>member<\/code>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e<code>login<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u30ed\u30b0\u30a4\u30f3\u3055\u305b\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre>class Controller_Member extends \\Controller\n{\n\tpublic function action_login($provider = null){\n\t\t\n\t\t\n\t\tif ($provider === null){\n\t\t\t\\Response::redirect_back();\n\t\t}\n\t\t\\Auth_Opauth::forge();\n\t\t\n\t}\n\t\n\tpublic function action_callback(){\n\t\ttry{\n\t\t\t$opauth = \\Auth_Opauth::forge(false);\n\t\t\t$status = $opauth-&gt;login_or_register();\n\t\t\t\n\t\t\tswitch($status){\n\t\t\t\tcase 'linked':\n\t\t\t\t\t\/\/ \u73fe\u5728\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u6e08\u307f\n\t\t\t\t\t\/\/ \u3055\u3089\u306bFacebook\u30e6\u30fc\u30b6\u3068\u306e\u95a2\u9023\u4ed8\u3051\u6210\u529f\n\t\t\t\tbreak;\n\t\t\t\tcase 'logged_in':\n\t\t\t\t\t\/\/ \u73fe\u5728\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u3067\u672a\u30ed\u30b0\u30a4\u30f3\n\t\t\t\t\t\/\/ \u3057\u304b\u3057Facebook\u30e6\u30fc\u30b6\u3068\u306e\u95a2\u9023\u4ed8\u3051\u304c\u6210\u529f\u3057\u305f\u306e\u3067\n\t\t\t\t\t\/\/ \u305d\u306e\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\n\t\t\t\tbreak;\n\t\t\t\tcase 'register':\n\t\t\t\t\t\/\/ \u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u3068Facebook\u30e6\u30fc\u30b6\u3068\u306e\u95a2\u9023\u898b\u3064\u304b\u3089\u305a\n\t\t\t\tbreak;\n\t\t\t\tcase 'registered':\n\t\t\t\t\t\/\/ \u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u3068Facebook\u30e6\u30fc\u30b6\u3068\u306e\u95a2\u9023\u898b\u3064\u304b\u3089\u305a\n\t\t\t\t\t\/\/ \u3057\u304b\u3057Facebook\u30e6\u30fc\u30b6\u60c5\u5831\u304c\u5341\u5206\u3060\u3063\u305f\u305f\u3081\n\t\t\t\t\t\/\/ \u305d\u308c\u3092\u5143\u306b\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u3066\u95a2\u9023\u4ed8\u3051\u308b\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t\/\/ \u72b6\u614b\u3092\u5224\u5b9a\u3067\u304d\u305a\n\t\t\t}\n\t\t}catch(\\OpauthException $e){\n\t\t\t\/\/ \u8a8d\u8a3c\u5931\u6557\n\t\t\techo \"\u8a8d\u8a3c\u5931\u6557\";\n\t\t}catch(\\OpauthCancelException $e){\n\t\t\t\/\/ \u8a8d\u8a3c\u5931\u6557\n\t\t\techo \"\u8a8d\u8a3c\u5931\u6557\";\n\t\t}\n\t}\n}\n\n<\/pre>\n<p><code>action_login<\/code>\u306b\u306f\u5f15\u6570<code>$provider<\/code>\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u308c\u304c\u306a\u3044\u3068\u30c0\u30e1\u306a\u3088\u3046\u3067\u3059\u3002<br \/>\n<code>$provider<\/code>\u3063\u3066\u4f55\u304b\u3068\u3044\u3046\u3068\u3001\u3053\u3053\u3067\u30bd\u30fc\u30b7\u30e3\u30eb\u30e1\u30c7\u30a3\u30a2\u3092\u6307\u5b9a\u3059\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001facebook\u30ed\u30b0\u30a4\u30f3\u306e\u5834\u5408\u306f\u3001<\/p>\n<p><code>https:\/\/yourdomain.com\/member\/login\/facebook\/<\/code><\/p>\n<p>\u3053\u306e\u3088\u3046\u306aURL\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\ntwitter\u306a\u3089 <code>https:\/\/yourdomain.com\/member\/login\/twitter\/<\/code><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058<\/p>\n<h2>\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u2192\u30a8\u30e9\u30fc<\/h2>\n<p>\u3053\u306e\u6642\u70b9\u3067\/login\/member\/facebook\/\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3046\u307e\u304f\u3044\u304f\u5834\u5408<br \/>\n\u3053\u308c\u4ee5\u964d\u306f\u8aad\u307e\u306a\u304f\u3066\u826f\u3044\u3067\u3059<\/p>\n<p>\u79c1\u306f\u3053\u3053\u304b\u3089\u304c\u30cf\u30de\u308a\u307e\u3057\u305f\u3002<\/p>\n<h2>Facebook\u30a2\u30d7\u30ea\u5074\u306e\u8a2d\u5b9a<\/h2>\n<h4>\u307e\u305a\u3001\u30a2\u30d7\u30eaID\u3068\u30a2\u30d7\u30ea\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d<\/h4>\n<p>Facebook Developer\u30b5\u30a4\u30c8\u306e\u30a2\u30d7\u30ea\u3092\u9078\u629e\u3057<br \/>\n[\u8a2d\u5b9a]\u21d2[\u30d9\u30fc\u30b7\u30c3\u30af]\u21d2\u30a2\u30d7\u30eaID\u3068app secret\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-137\" src=\"http:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-1-1.png\" alt=\"\" width=\"1507\" height=\"520\" srcset=\"https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-1-1.png 1507w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-1-1-300x104.png 300w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-1-1-768x265.png 768w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-1-1-1024x353.png 1024w\" sizes=\"(max-width: 1507px) 100vw, 1507px\" \/><\/p>\n<h4>\u30a2\u30d7\u30ea\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u5074\u306e\u60c5\u5831\u3092\u5165\u308c\u308b<\/h4>\n<p>\u3064\u3044\u3067\u306b\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u3084\u3001\u5229\u7528\u898f\u7d04\u7684\u306a\u30da\u30fc\u30b8\u306eURL\u3082\u5165\u308c\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-138\" src=\"http:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-2.png\" alt=\"\" width=\"1507\" height=\"520\" srcset=\"https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-2.png 1507w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-2-300x104.png 300w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-2-768x265.png 768w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-2-1024x353.png 1024w\" sizes=\"(max-width: 1507px) 100vw, 1507px\" \/><\/p>\n<h4>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URL\u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p>2018\/08\/31\u73fe\u5728\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089Facebook\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5834\u5408\u3001\u547c\u3073\u51fa\u3057\u5143\u306eURL\u3092\u5168\u3066\u7533\u544a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3069\u3053\u3067\u3084\u308b\u304b\u3068\u3044\u3046\u3068<br \/>\n[\u30d7\u30ed\u30c0\u30af\u30c8]\u21d2[Facebook\u30ed\u30b0\u30a4\u30f3]\u21d2[\u8a2d\u5b9a]\u306e[\u6709\u52b9\u306aOAuth\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URI]<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-139\" src=\"http:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-3.png\" alt=\"\" width=\"1530\" height=\"731\" srcset=\"https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-3.png 1530w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-3-300x143.png 300w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-3-768x367.png 768w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-3-1024x489.png 1024w\" sizes=\"(max-width: 1530px) 100vw, 1530px\" \/><\/p>\n<p>\u4eca\u56de\u306e\u5834\u5408\u3001<br \/>\nhttps:\/\/yourdomain.com\/member\/login\/facebook\/<br \/>\n\u3092\u767b\u9332\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3093\u3067\u3082\u3063\u3066\u3001https:\/\/yourdomain.com\/member\/login\/facebook\/\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-140\" src=\"http:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-4.png\" alt=\"\" width=\"785\" height=\"430\" srcset=\"https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-4.png 785w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-4-300x164.png 300w, https:\/\/rugoh.co.jp\/blog\/wp-content\/uploads\/2018\/08\/20180831-4-768x421.png 768w\" sizes=\"(max-width: 785px) 100vw, 785px\" \/><\/p>\n<pre>URL\u306f\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059: \u30ea\u30c0\u30a4\u30ec\u30af\u30c8URI\u304c\u30a2\u30d7\u30ea\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8OAuth\u8a2d\n\u5b9a\u3067\u30db\u30ef\u30a4\u30c8\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30a6\u30a7\u30d6OAuth\u30ed\u30b0\u30a4\u30f3\u3092\u30aa\u30f3\u306b\u3057\u3066\u3001\u3059\u3079\u3066\u306e\u30a2\u30d7\u30ea\u30c9\u30e1\u30a4\u30f3\u3092\n\u6709\u52b9\u306aOAuth\u30ea\u30c0\u30a4\u30ec\u30af\u30c8URI\u3068\u3057\u3066\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<\/pre>\n<p>\u8003\u3048\u3046\u308b\u9650\u308a\u306eURI\u3092facebook\u30a2\u30d7\u30ea\u306b\u767b\u9332\u3059\u308b\u3082\u30c0\u30e1\u3002<\/p>\n<p>\u7d50\u8ad6\u3067\u3059\u304c<\/p>\n<p><code>\/vender\/opauth\/facebook\/FacebookStrategy.php<\/code>\u306e27\u884c\u76ee\u3092\u898b\u308b\u3068<\/p>\n<pre>\tpublic $defaults = array(\n\t\t'redirect_uri' =&gt; '{complete_url_to_strategy}int_callback'\n\t);\n<\/pre>\n<p>URI\u306bint_callback\u3068\u3044\u3046\u6587\u5b57\u3092\u4ed8\u3051\u3066\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001facebook\u30a2\u30d7\u30ea\u306b\u767b\u9332\u3059\u308bURI\u306f<\/p>\n<p><strong>https:\/\/yourdomain.com\/member\/login\/facebook\/int_callback<\/strong><\/p>\n<p>\u3053\u308c\u3092\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u7121\u4e8bfacebook\u30ed\u30b0\u30a4\u30f3\u304c\u5b9f\u88c5\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\nTwitter\u306e\u307b\u3046\u3082\u30cf\u30de\u308a\u3069\u3053\u308d\u304c\u3042\u3063\u305f\u3089\u8a18\u4e8b\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FuelPHP1.7\u306b\u3066Facebook\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u73fe\u3059\u308b\u624b\u9806\u3067\u3059\u3002 \u3059\u3067\u306b\u3001\u3044\u304f\u3064\u3082\u306e\u540c\u3058\u3088\u3046\u306a\u89e3\u8aac\u30da\u30fc\u30b8&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":170,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,10],"tags":[14,13,15],"_links":{"self":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts\/135"}],"collection":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":2,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions\/171"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/media\/170"}],"wp:attachment":[{"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rugoh.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}