wordpress and the rest api

12
WordPress + REST Are API-Driven Applications the Future of WordPress? ( Hint: Yes, they are. ) Calgary WordPress Meetup January 12, 2016

Upload: re-carlson

Post on 13-Feb-2017

268 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: WordPress and the REST API

WordPress + RESTAre API-Driven Applications

the Future of WordPress?( Hint: Yes, they are. )

Calgary WordPress MeetupJanuary 12, 2016

Page 2: WordPress and the REST API

Please follow @YYCWPMUG on Twitter

Page 3: WordPress and the REST API

SAY THANK YOU TO OUR SPONSORS!

Venue Provided by Assembly Coworking Space@AssemblyCS

Pizza Provided by Pizza Bob’s Classic Pie@PizzaBobsYYC

Beer Provided by Startup Calgary@StartupCalgary

Page 4: WordPress and the REST API

WHAT IS REST?• Stands for:

Re presentational S tate T ransfer• Protocol for retrieving information

from a database using JSON and Authentication tokens.• A reliable way to separate database

and PHP functions from the frontend interface using JSON and JavaScript.

REST API concepts and examplesvia WebConcepts on YouTube

Page 5: WordPress and the REST API

Examples of WordPress data you can use in

JavaScript apps.via https://developer.wordpress.com/docs/api/

Page 10: WordPress and the REST API

LEARN JAVASCRIPT… DEEPLY.• Matt Mullenweg, founder of Automattic, said during the 2015

State of the Word that we should all learn JavaScript because API-driven JS apps will be the future of WordPress.

Link: http://wordpress.tv/2015/12/07/matt-mullenweg-state-of-the-word-2015/• WordPress is a great choice for an app framework because of it’s powerful CMS

abilities, hooks and filters.• The web is moving toward encryption. Free SSL certificates are on the way, and

even big players like Facebook say, Let’s Encrypt.• Hardening connections with SSL increases resource usage on the server, so

leveraging the power of the browser (using JavaScript in front-end design) helps reduce the load and handle traffic spikes.

Page 11: WordPress and the REST API

RESOURCES & LINKS• WordPress REST API Resources

https://developer.wordpress.com/docs/api/ • WP REST API Documentation

http://wp-api.org/ (version 1) + Pluginhttp://v2.wp-api.org/ (version 2) + Plugin• Introduction to the WP REST API

http://code.tutsplus.com/tutorials/introducing-the-wp-rest-api--cms-24533http://torquemag.io/introduction-wordpress-new-universal-connector-json-rest-api/

• Use Case Examples of the WP REST API in actionhttp://torquemag.io/use-cases-wp-rest-api-wordcamp-us-edition/

• A Day of REST – 1st WordPress REST API Conference – January 28th https://feelingrestful.com/

Page 12: WordPress and the REST API

THANK YOU FOR YOUR SUPPORT!

Next Month: WordPress 101: Setup and Launch Your First Site

@AssemblyCS @PizzaBobsYYC @StartupCalgary