Wordcamp Toronto is my second Wordcamp so far; I attended Wordcamp Montreal this past summer. Not sure if it’s just Canadian Wordcamps or if they’re all this good, but so far my experience has been great both times (and I’ve another day to go in Toronto).
Below please find slides and code samples from my presentation “WordPress as API”:
- Presentation Slides (built in reveal.js)
- Sample WordPress Site
- note “Embeddable Recent Posts” widget on right side
- friendly-formatted JSON content: recent posts
- friendly-formatted JSON content: posts of category “locations”
- Code that serves up embeddable widget
- Code for simple PHP pages that consume JSON-syndicated content
- index.php shows syndication of recent posts (as sidebar list)
- locations.php shows syndication of “locations” posts (as Google Map markers)
- Ruby on Rails app that populates pages from WordPress site
- makes use of HTTParty gem to collect JSON content