{"id":225460,"date":"2013-08-25T10:52:05","date_gmt":"2013-08-25T15:52:05","guid":{"rendered":"https:\/\/2013.toronto.wordcamp.org\/?post_type=wcb_session&#038;p=225460"},"modified":"2013-08-25T10:52:05","modified_gmt":"2013-08-25T15:52:05","slug":"10-wordpress-as-api","status":"publish","type":"wcb_session","link":"https:\/\/toronto.wordcamp.org\/2013\/session\/10-wordpress-as-api\/","title":{"rendered":"10 &#8211; WordPress as API"},"content":{"rendered":"<p>Twitter, Google, and other sites offer access to their content via an API, often via JSON. This presentation will explore how one might set up a similar API for a WordPress site: expose posts and other content with JSON, and offer client sites access via both embeddable code and through a more complex, authenticated API.<\/p>\n<p>Visitors to my WordPress site might see an &#8220;&#8221;Embed This Content&#8221;&#8221; form on which they could set some options (number of posts, border and link color, width and height) then receive copy-and-paste code to embed a feed of my content on their (perhaps non-Wordpress) site.<\/p>\n<p>Developers might sign up to receive an API key from my WordPress site, after which they could leverage my site&#8217;s API to consume content (my posts, say) in whatever technology they choose &#8211; allowing for interesting, easier, and more complex mashups and interactions between and among my site and others.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Twitter, Google, and other sites offer access to their content via an API, often via JSON. This presentation will explore how one might set up a similar API for a WordPress site: expose posts and other content with JSON, and offer client sites access via both embeddable code and through a more complex, authenticated API. [&hellip;]<\/p>\n","protected":false},"author":4215205,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1380999600,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[225458],"footnotes":""},"session_track":[10024],"session_category":[],"class_list":["post-225460","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-advanced"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"October 5, 2013","time":"2:00 pm"},"session_speakers":[{"id":"225458","slug":"brian-hoke","name":"Brian Hoke","link":"https:\/\/toronto.wordcamp.org\/2013\/speaker\/brian-hoke\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/225460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/225460\/revisions"}],"predecessor-version":[{"id":225461,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/225460\/revisions\/225461"}],"speakers":[{"embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/speakers\/225458"}],"author":[{"embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wporg\/v1\/users\/tcais"}],"wp:attachment":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/media?parent=225460"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_track?post=225460"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_category?post=225460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}