{"id":237,"date":"2020-08-19T04:31:58","date_gmt":"2020-08-19T08:31:58","guid":{"rendered":"https:\/\/disc4life.com\/blog\/?p=237"},"modified":"2020-08-19T16:39:38","modified_gmt":"2020-08-19T20:39:38","slug":"automated-embedded-twitch-video-iframe","status":"publish","type":"post","link":"https:\/\/disc4life.com\/blog\/?p=237","title":{"rendered":"Automated Embedded twitch video iframe"},"content":{"rendered":"\n<p>If you host your website on a Linux server, and have SSH access to your website then you can create an automated embedded twitch video iframe that shows your twitch channel, or who you&#8217;re hosting.    <\/p>\n\n\n\n<p>This is a simple way to support people on twitch.  Plus if your website gets more views than your twitch channel then it could make a big difference.  <\/p>\n\n\n\n<p>Now I believe all browsers mute iframes automatically.  To count as views the video has to be manually unmuted by the person using your website.  <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Setup autohosting on your twitch account.<\/strong><\/p>\n\n\n\n<p>Login to twitch, click on your user icon in the upper right, click on Creator Dashboard.   <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"335\" height=\"287\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/creatordashboard.png\" alt=\"\" class=\"wp-image-238\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/creatordashboard.png 335w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/creatordashboard-300x257.png 300w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>On the dashboard click on Preferences, and then Channel. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"218\" height=\"332\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelpref.png\" alt=\"\" class=\"wp-image-239\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelpref.png 218w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelpref-197x300.png 197w\" sizes=\"(max-width: 218px) 100vw, 218px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Scroll down to Auto Hosting. <br>Enable auto host channels, and then click on Host list.  Add who ever you want to your Host list.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"467\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/autohosting-1024x467.png\" alt=\"\" class=\"wp-image-240\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/autohosting-1024x467.png 1024w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/autohosting-300x137.png 300w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/autohosting-768x350.png 768w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/autohosting.png 1053w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Create an app on dev.twitch.tv<\/strong><\/p>\n\n\n\n<p>Goto <a rel=\"noreferrer noopener\" href=\"https:\/\/dev.twitch.tv\/login\" target=\"_blank\">https:\/\/dev.twitch.tv\/login<\/a> and use your twitch credentials to login, then click on <strong>Your Console<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"233\" height=\"55\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/console.png\" alt=\"\" class=\"wp-image-241\"\/><\/figure>\n\n\n\n<p>Click on <strong>Applications<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"294\" height=\"115\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/applications.png\" alt=\"\" class=\"wp-image-242\"\/><\/figure>\n\n\n\n<p>Click on <strong>Register your Application<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"241\" height=\"93\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/register.png\" alt=\"\" class=\"wp-image-243\"\/><\/figure>\n\n\n\n<p>Enter a unique name for your application <br>Enter <strong>http:\/\/localhost<\/strong> for the OAuth Redirect URL    <br>Choose any category, I&#8217;m using &#8220;Website Integration&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/createapp.png\" alt=\"\" class=\"wp-image-244\" width=\"713\" height=\"369\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/createapp.png 953w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/createapp-300x156.png 300w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/createapp-768x398.png 768w\" sizes=\"(max-width: 713px) 100vw, 713px\" \/><\/figure>\n\n\n\n<p>Click on the &#8220;<strong>Manage<\/strong>&#8221; button on your new application.  <br>Copy your <strong>Client ID<\/strong> to a notepad<br>Ask for a <strong>New Secret<\/strong> and copy that as well. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"552\" height=\"249\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/clientid.png\" alt=\"\" class=\"wp-image-245\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/clientid.png 552w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/clientid-300x135.png 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<p>Open command prompt in Windows, or terminal in Linux and ssh into your server \/ website. <a href=\"https:\/\/www.howtogeek.com\/336775\/how-to-enable-and-use-windows-10s-built-in-ssh-commands\/\"> If you&#8217;re using Windows SSH must be enabled for command prompt in Windows.<\/a> <\/p>\n\n\n\n<p>I&#8217;ve made the following code available here for easier copy and pasting. <a href=\"https:\/\/disc4life.com\/embeddedtwitchiframe.txt\">https:\/\/disc4life.com\/embeddedtwitchiframe.txt<\/a><\/p>\n\n\n\n<p>Modify this curl command using the <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">client_id<\/span><\/strong> and <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">client_secret<\/span><\/strong> from the step above, then run the <strong>curl<\/strong> request.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -X POST 'https:\/\/id.twitch.tv\/oauth2\/token?client_id=<strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">wadipzmhnzr5pchxzzngo2hufv6nut<\/span><\/strong>&amp;client_secret=<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">x2jq69uxye3496wql1oplq5v1kcl57<\/span><\/strong>&amp;grant_type=client_credentials'<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"742\" height=\"223\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/oathid-1.png\" alt=\"\" class=\"wp-image-255\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/oathid-1.png 742w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/oathid-1-300x90.png 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<h5><strong>Note<\/strong>: I do recommend using the website user when logging in via SSH. I was lazy, and used root. If you&#8217;re not familiar with permissions then use the website user. In this case the website user would have been disc4lif<\/h5>\n\n\n\n<p>The<strong> access token<\/strong>, which is your <strong>OAuth ID<\/strong>, expires in about 2 months.<br>Now we take this information to get your<strong> channel id<\/strong> from the twitch API.  <\/p>\n\n\n\n<p>Modify this curl command with your <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">client id<\/span><\/strong>, and the <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">access token<\/span><\/strong> you just received.  <br>Modify the login with your twitch name. If <strong>login=DJrunkie<\/strong> is not changed then you will just get the information for my channel from the twitch api.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> curl -H 'Client-ID: <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">wadipzmhnzr5pchxzzngo2hufv6nut<\/span><\/strong>' -H 'Authorization: Bearer <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">ezf7id5004m7gzz452770ha7y4oiw1<\/span><\/strong>' -X GET 'https:\/\/api.twitch.tv\/helix\/users?login=<strong>DJrunkie<\/strong>'<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"63\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelid-1024x63.png\" alt=\"\" class=\"wp-image-248\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelid-1024x63.png 1024w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelid-300x18.png 300w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelid-768x47.png 768w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/channelid.png 1336w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now use the <strong>channel ID<\/strong> to make a request checking if we are streaming, or if we are currently hosting someone.  Again replace the <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">client id<\/span><\/strong>, and <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">access token<\/span><\/strong>.  Then replace <strong>host=27941300<\/strong> with your <strong>channel ID<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -H 'Client-ID: <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">wadipzmhnzr5pchxzzngo2hufv6nut<\/span><\/strong>' -H 'Authorization: Bearer <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">ezf7id5004m7gzz452770ha7y4oiw1<\/span><\/strong>' -X GET 'https:\/\/tmi.twitch.tv\/hosts?include_logins=1&amp;host=<strong>27941300<\/strong>'<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"76\" src=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/hostingvsstreaming-1024x76.png\" alt=\"\" class=\"wp-image-250\" srcset=\"https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/hostingvsstreaming-1024x76.png 1024w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/hostingvsstreaming-300x22.png 300w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/hostingvsstreaming-768x57.png 768w, https:\/\/disc4life.com\/blog\/wp-content\/uploads\/2020\/08\/hostingvsstreaming.png 1342w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The top line of output is if were hosting someone, the bottom is if were streaming.<\/p>\n\n\n\n<h5 class=\"has-black-color has-text-color\">Note: Twitch will not embed video on an http site.  You must have an SSL installed and use https:\/\/ on your website<\/h5>\n\n\n\n<p>And with this info we can now create a script to update an iframe on our website. <br>This will show an iframe on <a href=\"https:\/\/disc4life.com\/hostingexample\/index.php\">https:\/\/disc4life.com\/hostingexample\/index.php<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim public_html\/hostingexample\/index.php\n\n&lt;p align=\"left\"&gt;Give my friends on twitch a view!&lt;\/p&gt;\n\n&lt;iframe src='https:\/\/player.twitch.tv\/?channel=<strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">tedster009<\/span><\/strong>&amp;enableExtensions=true&amp;muted=false&amp;parent=<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">disc4life.com&amp;parent=www.disc4life.com<\/span><\/strong>&amp;player=popout&amp;volume=.00001' frameborder=\"0\" allowfullscreen=\"true\" scrolling=\"no\" height=\"600\" width=\"1066\"&gt;&lt;\/iframe&gt;<\/code><\/pre>\n\n\n\n<p>This will show an iframe on <a href=\"https:\/\/disc4life.com\/hostingexample\/news.php\">https:\/\/disc4life.com\/hostingexample\/news.php<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim public_html\/hostingexample\/news.php\n\n&lt;h3 align=\"center\">Give my friends on twitch a view!&lt;\/h3>\n&lt;p align=\"center\"> \n&lt;iframe src='https:\/\/player.twitch.tv\/?channel=tedster009&amp;enableExtensions=true&amp;muted=false&amp;parent=disc4life.com&amp;parent=www.disc4life.com&amp;parent=vpn.disc4life.com&amp;player=popout&amp;volume=.00001' frameborder=\"0\" allowfullscreen=\"true\" scrolling=\"no\" height=\"300\" width=\"525\">&lt;\/iframe> \n&lt;\/p>\n<\/code><\/pre>\n\n\n\n<p><strong>Note:<\/strong> For text editing in SSH use <strong>nano <\/strong>if you prefer.  The text editor <strong>vim<\/strong> can be confusing if you&#8217;re not familiar with it.<\/p>\n\n\n\n<p>Change <strong>channel=tedster009<\/strong> to whose channel you want.<br>Replace <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">disc4life.com&amp;parent=www.disc4life.com&amp;parent=vpn.disc4life.com<\/span><\/strong> with your website names. <br>Change the height and width to what you prefer, some 16:9 ratio, this is in pixels.<br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>This script will update the index.php iframe with who you&#8217;re currently hosting, or your name if you&#8217;re streaming.  <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Modify <strong>all <span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/public_html\/hostingexample\/<\/span> directory paths<\/strong> here with the <strong>full path<\/strong> to the website files the script will be updating.<\/p>\n\n\n\n<p>Update <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">nhosting=<\/span><\/strong> and <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">istream=<\/span><\/strong> with your last the <strong>curl<\/strong> command<br>Update <strong>cname=djrunkie<\/strong> with your channel name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/home\/disc4lif\/twitchcheck.sh\n\n#!\/bin\/bash\n#check for the iframe line from the file were updating, and cut out the text were interested in changing\nchosting=$(grep iframe <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/public_html\/hostingexample\/index.php<\/span><\/strong> | cut -f3 -d= | cut -f1 -d\\&amp;)\n\n#check the twitch api to see if this information has changed\nnhosting=$(<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">curl -H 'Client-ID: wadipzmhnzr5pchxzzngo2hufv6nut' -H 'Authorization: Bearer ezf7id5004m7gzz452770ha7y4oiw1' -X GET 'https:\/\/tmi.twitch.tv\/hosts?include_logins=1&amp;host=27941300'<\/span><\/strong> | cut -f14 -d\\\")\n\n#we also need to check the twitch api to see if we are streaming.\nistream=$(<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">curl -H 'Client-ID: wadipzmhnzr5pchxzzngo2hufv6nut' -H 'Authorization: Bearer ezf7id5004m7gzz452770ha7y4oiw1' -X GET 'https:\/\/tmi.twitch.tv\/hosts?include_logins=1&amp;host=27941300'<\/span><\/strong> | cut -f6 -d\\\")\n\n#our channel name\ncname=<strong>djrunkie<\/strong>\n\n#If were currently streaming, and the chosting value does not equal our twitch name, then update chosting with our twitch name in our files.  Otherwise if chosting already = nhosting, or nhosting is blank then exit because either its already set, or were not hosting anyone currently.  Otherwise chosting needs to be updated with nhosting.\nif [[ \"$istream\" = host_login ]] &amp;&amp; [[ \"$chosting\" != \"$cname\" ]]\n then\n sed -i \"s\/channel=$chosting\/channel=$cname\/g\" <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/public_html\/hostingexample\/index.php<\/span><\/strong>\n sed -i \"s\/channel=$chosting\/channel=$cname\/g\" <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/public_html\/hostingexample\/news.php<\/span><\/strong>\n  elif [[ \"$chosting\" = \"$nhosting\" ]] || [[ \"$nhosting\" = '' ]]\n   then\n   echo \"They're the same dude, or nhosting was blank\"\n   exit\n else\n sed -i \"s\/channel=$chosting\/channel=$nhosting\/g\" <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/public_html\/hostingexample\/index.php<\/span><\/strong>\n sed -i \"s\/channel=$chosting\/channel=$nhosting\/g\" <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/public_html\/hostingexample\/news.php<\/span><\/strong>\nfi<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Create a script that grabs a new <strong>OAuthID<\/strong> token, and updates the token in the <strong>twitchcheck.sh<\/strong> file. <\/p>\n\n\n\n<p>Modify <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">both directory paths<\/span><\/strong> here with the full path to the <strong>twitchcheck.sh<\/strong> script.<br>Update <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">ntoken=<\/span><\/strong> with your first <strong>curl<\/strong> command <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim newtoken.sh\n\n#!\/bin\/bash\n\n#get the current token from the twitchcheck script we just created\nctoken=$(grep -m 1 'Bearer' <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/twitchcheck.sh<\/span><\/strong> | cut -f4 -d\\' | awk {'print $3'})\n\n#get a new token using our client_id and client_secret from our twitch application\nntoken=$(<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">curl -X POST 'https:\/\/id.twitch.tv\/oauth2\/token?client_id=wadipzmhnzr5pchxzzngo2hufv6nut&amp;client_secret=x2jq69uxye3496wql1oplq5v1kcl57&amp;grant_type=client_credentials'<\/span><\/strong> | cut -f4 -d\\\")\n\n#replace the current token with the new token\nsed -i \"s\/$ctoken\/$ntoken\/g\" <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">\/home\/disc4lif\/twitchcheck.sh<\/span><\/strong><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Now make a crontab executing these scripts. The first one I run every five minutes. The second one I run once a month every month.  <\/p>\n\n\n\n<p>Replace <strong>\/home\/disc4lif\/<\/strong> with the path to your scripts. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>crontab -e\n\n*\/5 * * * * sh <strong>\/home\/disc4lif\/<\/strong>twitchcheck.sh\n* 2 7 *\/1 * sh <strong>\/home\/disc4lif\/<\/strong>newtoken.sh<\/code><\/pre>\n\n\n\n<p>Now you have an embedded twitch iframe video on your website that updates automatically according to if you&#8217;re streaming, or if you&#8217;re hosting someone.  <\/p>\n\n\n\n<p>Check out the video if you&#8217;re confused about any part of the process!<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Create an automated Embedded twitch video iframe on your website\" width=\"792\" height=\"446\" src=\"https:\/\/www.youtube.com\/embed\/5SkOGnzQ5xA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you host your website on a Linux server, and have SSH access to your website then you can create an automated embedded twitch video iframe that shows your twitch channel, or who you&#8217;re hosting. This is a simple way to support people on twitch. Plus if your website gets more views than your twitch <a class=\"read-more\" href=\"https:\/\/disc4life.com\/blog\/?p=237\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/237"}],"collection":[{"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=237"}],"version-history":[{"count":19,"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/disc4life.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}