

{"id":1485,"date":"2022-05-24T18:45:33","date_gmt":"2022-05-24T17:45:33","guid":{"rendered":"https:\/\/the-it-guru.co.uk\/?p=1485"},"modified":"2022-05-24T19:00:24","modified_gmt":"2022-05-24T18:00:24","slug":"endoflife-date-json-api-examples","status":"publish","type":"post","link":"https:\/\/the-it-guru.co.uk\/index.php\/2022\/05\/24\/endoflife-date-json-api-examples\/","title":{"rendered":"endoflife.date json API examples"},"content":{"rendered":"\n<p>Are you looking for working API examples for the website endoflife.date to work with WordPress, then look no further.<\/p>\n\n\n\n<p>Firstly you will need to install a plugin called &#8220;JSON content importer&#8221; by <a href=\"https:\/\/json-content-importer.com\/\">Bernhard Kux<\/a> once installed you can use the following examples i use on my website.<\/p>\n\n\n\n<p>This first example pulls end of life dates for Windows (code below) into a nice looking table.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;table>\n&lt;tr>\n&lt;th>Version\n&lt;th>Build\n&lt;th>Released\n&lt;th>Home &amp;amp; Pro EOL\n&lt;th>Enterprise \/ Education EOL\n&lt;\/tr>\n&#91;jsoncontentimporter url=\"https:\/\/endoflife.date\/api\/windows.json\"]\n&lt;!-- add debugmode=10 to above for debugging -->\n&lt;tr>\n&lt;td>{cycle}\n&lt;td>{cycleShortHand}\n&lt;td>{release}\n&lt;td>{support}\n&lt;td>{eol}\n&lt;\/tr>\n&#91;\/jsoncontentimporter]\n&lt;\/table>\n&lt;br>&lt;br><\/code><\/pre>\n\n\n\n<p>In this next example it pulls Android versions and EOL details.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;table>\n&lt;tr>\n&lt;th>Version No\n&lt;th>Version Name\n&lt;th>Released\n&lt;th>EOL\n&lt;\/tr>\n&#91;jsoncontentimporter url=\"https:\/\/endoflife.date\/api\/android.json\"]\n&lt;tr>\n&lt;td>{cycle}\n&lt;td>{codename}\n&lt;td>{release}\n&lt;td>{eol}\n&lt;\/tr>\n&#91;\/jsoncontentimporter]\n&lt;\/table>\n&lt;br>&lt;br><\/code><\/pre>\n\n\n\n<p>Don&#8217;t forget to add something like &#8220;Data provided by endoflife.date&#8221; at the end of your pull.<\/p>\n\n\n\n<p>If you have any comments about any of the above please fill in our form on the support page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you looking for working API examples for the website endoflife.date to work with WordPress, then look no further. Firstly you will need to install a plugin called &#8220;JSON content importer&#8221; by Bernhard Kux once installed you can use the following examples i use on my website. This first example pulls end of life dates&#8230;  <br \/><a class=\"excerpt-read-more btn btn-primary\" href=\"https:\/\/the-it-guru.co.uk\/index.php\/2022\/05\/24\/endoflife-date-json-api-examples\/\" title=\"Readendoflife.date json API examples\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1485","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/1485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1485"}],"version-history":[{"count":6,"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/1485\/revisions"}],"predecessor-version":[{"id":1497,"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/1485\/revisions\/1497"}],"wp:attachment":[{"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=1485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-it-guru.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=1485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}