{"id":1402,"date":"2016-06-30T17:18:12","date_gmt":"2016-06-30T21:18:12","guid":{"rendered":"https:\/\/2016.annarbor.wordcamp.org\/?post_type=wcb_session&#038;p=1402"},"modified":"2016-10-22T10:59:50","modified_gmt":"2016-10-22T14:59:50","slug":"immediately-practical-ways-to-use-the-wp-rest-api","status":"publish","type":"wcb_session","link":"https:\/\/annarbor.wordcamp.org\/2016\/session\/immediately-practical-ways-to-use-the-wp-rest-api\/","title":{"rendered":"Immediately Practical Ways to Use the WP REST API"},"content":{"rendered":"<p>Let\u2019s walk through a few common AJAX patterns and compare how they look and work using the WP REST API instead of custom admin-ajax hooks and functions.<\/p>\n<p>Specifically, we\u2019ll look at code samples for infinite scolling\/load more buttons, look-ahead search, and interacting with a totally custom data set (custom post type and custom post meta).<\/p>\n<p>Throughout the process we\u2019ll talk about what you get for free from the REST API, what you have to build yourself, and review real, working code so that you can build smarter and faster solutions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s walk through a few common AJAX patterns and compare how they look and work using the WP REST API instead of custom admin-ajax hooks and functions. Specifically, we\u2019ll look at code samples for infinite scolling\/load more buttons, look-ahead search, &hellip; <a href=\"https:\/\/annarbor.wordcamp.org\/2016\/session\/immediately-practical-ways-to-use-the-wp-rest-api\/\">Continue reading <span class=\"assistive-text\">Immediately Practical Ways to Use the WP REST API<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":648209,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1476558600,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"https:\/\/docs.google.com\/presentation\/d\/1I-41QgIrO_QUOSLIYYh0qiR8aqPyex_bV7FSAG8mgWo\/present#slide=id.g184c20d395_0_359","_wcpt_session_video":"","_wcpt_speaker_id":[1327],"footnotes":""},"session_track":[866808,5041],"session_category":[],"class_list":["post-1402","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-amphitheatre","wcb_track-developer"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6VVaR-mC","session_date_time":{"date":"October 15, 2016","time":"3:10 pm"},"session_speakers":[{"id":"1327","slug":"brian-richards","name":"Brian Richards","link":"https:\/\/annarbor.wordcamp.org\/2016\/speaker\/brian-richards\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/1402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":2,"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/1402\/revisions"}],"predecessor-version":[{"id":2589,"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/1402\/revisions\/2589"}],"speakers":[{"embeddable":true,"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/speakers\/1327"}],"author":[{"embeddable":true,"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wporg\/v1\/users\/rzen"}],"wp:attachment":[{"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/media?parent=1402"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_track?post=1402"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/annarbor.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_category?post=1402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}