{"id":18,"date":"2013-05-31T22:43:12","date_gmt":"2013-05-31T22:43:12","guid":{"rendered":"http:\/\/www.brianroizen.com\/blog\/?p=18"},"modified":"2013-06-06T06:48:29","modified_gmt":"2013-06-06T06:48:29","slug":"cutest-404-page-ever","status":"publish","type":"post","link":"https:\/\/www.brianroizen.com\/blog\/cutest-404-page-ever\/","title":{"rendered":"Cutest 404 page ever!"},"content":{"rendered":"<p><a href=\"http:\/\/www.alertification.com\/404.php\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-22\" alt=\"Screen Shot 2013-05-31 at 3.44.05 PM\" src=\"http:\/\/www.brianroizen.com\/blog\/wp-content\/uploads\/2013\/05\/Screen-Shot-2013-05-31-at-3.44.05-PM-300x229.png\" width=\"300\" height=\"229\" srcset=\"https:\/\/www.brianroizen.com\/blog\/wp-content\/uploads\/2013\/05\/Screen-Shot-2013-05-31-at-3.44.05-PM-300x229.png 300w, https:\/\/www.brianroizen.com\/blog\/wp-content\/uploads\/2013\/05\/Screen-Shot-2013-05-31-at-3.44.05-PM-391x300.png 391w, https:\/\/www.brianroizen.com\/blog\/wp-content\/uploads\/2013\/05\/Screen-Shot-2013-05-31-at-3.44.05-PM.png 928w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I wrote an easy to use API for displaying cute animal pictures on any webpage.The API uses my website <a href=\"http:\/\/www.iGoAww.com\" target=\"_blank\">iGoAww.com<\/a>, and chooses a random picture from amongst tens of thousands of adorable animal pictures.<\/p>\n<p>To use this free API, just request <a href=\"http:\/\/www.igoaww.com\/api.php\" target=\"_blank\">http:\/\/www.igoaww.com\/api.php<\/a>, and a JSON string will be returned containing the image URL and caption.<\/p>\n<p>This is an example:<\/p>\n<p>{&#8220;url&#8221;:&#8221;http:\\\/\\\/i.imgur.com\\\/ElNcPxF.jpg&#8221;,&#8221;caption&#8221;:&#8221;My parents got a new dog. We named it Bruce.&#8221;}<\/p>\n<p>You can use the following code to parse the JSON and display the resulting HTML:<\/p>\n<p>[code lang=&#8217;php]<br \/>\n$jsonString = file_get_contents(&#8220;http:\/\/www.igoaww.com\/api.php&#8221;);<br \/>\n$jsonArray = json_decode($jsonString, true);<br \/>\n$imageUrl = $jsonArray[&#8216;url&#8217;];<br \/>\n$caption = $jsonArray[&#8216;caption&#8217;];<br \/>\necho &#8220;&lt;br&gt;While we work to fix it, we hope you enjoy this cute animal picture!&lt;br&gt;<br \/>\nCourtesy of &lt;a href=&#8217;http:\/\/www.igoaww.com&#8217;&gt;iGoAww.com&lt;\/a&gt;&lt;br&gt;<br \/>\n&lt;img style=&#8217;max-height: 700px; max-width: 700px;&#8217; src=&#8217;$imageUrl&#8217;&gt;&lt;br&gt;$caption&#8221;;[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wrote an easy to use API for displaying cute animal pictures on any webpage.The API uses my website iGoAww.com, and chooses a random picture from amongst tens of thousands of adorable animal pictures. To use this free API, just request http:\/\/www.igoaww.com\/api.php, and a JSON string will be returned containing the image URL and caption. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":27,"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.brianroizen.com\/blog\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}