{"id":16023,"date":"2024-03-13T18:01:00","date_gmt":"2024-03-14T00:01:00","guid":{"rendered":"https:\/\/macblaze.ca\/?p=16023"},"modified":"2024-03-13T16:07:58","modified_gmt":"2024-03-13T22:07:58","slug":"i-used-my-first-api","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=16023","title":{"rendered":"I  used my first API!!!"},"content":{"rendered":"<p>Booksonix, the book management software <a href=\"https:\/\/www.orcabook.com\/\" rel=\"noopener\" target=\"_blank\">Orca<\/a> uses to manage their publications and workflow released an API (Application Programming Interface) a few weeks ago \u2014 so I started playing with it to see if I could automate some of my work.<\/p>\n<p>After much playing with flask, jinja and json files I made a thing of beauty. Just plug in the print ISBN and it  delivers me the cover for download and all the metadata, formatted and everything so I can just copy and paste it into the epub&#8217;s .opf file. That&#8217;s what an API does, let you get info out of a system without having to go through the regular interface so you can manipulate it the way you want. All the best websites have one: Facebook, YouTube, Twitter etc.<\/p>\n<p><a href=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-13-at-4.07.08-PM.png\"><img loading=\"lazy\" src=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-13-at-4.07.08-PM-959x1024.png\" alt=\"\" width=\"959\" height=\"1024\" class=\"aligncenter size-large wp-image-16024\" srcset=\"https:\/\/macblaze.ca\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-13-at-4.07.08-PM-959x1024.png 959w, https:\/\/macblaze.ca\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-13-at-4.07.08-PM-374x400.png 374w, https:\/\/macblaze.ca\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-13-at-4.07.08-PM-140x150.png 140w, https:\/\/macblaze.ca\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-13-at-4.07.08-PM-768x820.png 768w, https:\/\/macblaze.ca\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-13-at-4.07.08-PM.png 1072w\" sizes=\"(max-width: 959px) 100vw, 959px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Booksonix, the book management software Orca uses to manage their publications and workflow released an API (Application Programming Interface) a few weeks ago \u2014 so I started playing with it to see if I could automate some of my work. After much playing with flask, jinja and json files I made a thing of beauty. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/16023"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16023"}],"version-history":[{"count":1,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/16023\/revisions"}],"predecessor-version":[{"id":16025,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/16023\/revisions\/16025"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}