This is my talk from WPCampus online, The Case for the WordPress REST API. In it I talk high level about the REST API, what is an API, why do we need it?
2. ROY SIVAN
WHO AM I?
• Been using WordPress since the beginning
• Currently Working: The Walt Disney Company
• WPCrowd member - www.thewpcrowd.com
• RoySivan.com
• Github / Twitter / WPCrowd - @royboy789
5. THE CASE FOR THE WORDPRESS REST API
WHAT IS AN API?
Definition: Application program interface (API) is a set of routines,
protocols, and tools for building software applications.
YOU LOST ME AT “DEFINITION”
An API lets you access, or create data.
WordPress Terms: The REST API lets you access, or create, WordPress
content.
6. THE CASE FOR THE WORDPRESS REST API
WHY DO WE NEED THAT?
You still don’t.
7. THE CASE FOR THE WORDPRESS REST API
HOW DO YOU API?
Leveraging the API isn’t that difficult once you get the hang of
JSON (JavaScript Object Notation)
Use JavaScript or PHP
9. THE CASE FOR THE WORDPRESS REST API
SO I REALLY DO NEED
TO LEARN JS DEEPLY?
10. THE CASE FOR THE WORDPRESS REST API
WHAT CAN YOU
BUILD WITH IT?
11. THE CASE FOR THE WORDPRESS REST API
EXAMPLE USE CASE
•Phone App with calendar of events
•Widget for other websites which has event calendar
•Custom dashboard to allow others to create / edit events
without wp-admin access
•If multiple websites, each a department, could combine to
create 1 school-wide calendar
•Customized UI / App which easily toggles between types of
events (categories)
Case: Website which is used to create events
12. THE CASE FOR THE WORDPRESS REST API
EXAMPLE USE CASE
•Showcase professor content on the department site, directly
linking to their site.
•Widget on professor site to showcase content from other
professors
•Showcases can use shared categories, so content is related,
even not on same professor / sub-site.
Case: Multiple Sites under 1 main site (professors under dept.)
13. BUILDING SOMETHING COOL
THANK YOU! ANY QUESTIONS?
Find me Online - @royboy789
https://roysivan.com
The WP Crowd
https://www.thewpcrowd.com
https://www.thewpcrowd.com/author/roysivan/
Lynda - Tutorials & Courses Online
https://lynda.com