WordPress is advancing rAPIdly - WordCamp San Antonio 2015

Preview:

Citation preview

W O R D P R E S S I S A D VA N C I N G R A P I D LYA P R E S E N TA T I O N B Y W A Y N E M C W I L L I A M S

M Y N A M E I S W AY N E M C W I L L I A M S

• Graphic Designer

• WordPress Front-end developer

• A member of the San Antonio WordPress Meetup Group

• WordCamp San Antonio 2015 organizer

• Overall WordPress enthusiast

– W AY N E M C W I L L I A M S

“The Internet and how we interact with it changes EVERYDAY. We as individuals have to find a way to keep up with it by

constantly staying on top of new technologies and adapting so that we aren’t left behind.”

– W AY N E M C W I L L I A M S

“Investing is risky but when it is done properly and with insight you can really make it big. You have to watch the trends

and most of the time new technology is going to be a safe bet for revenue potential.”

”  

W O R D C A M P S A N F R A N C I S C O 2 0 1 4

F I N D O U T A L L A B O U T T H E W P - A P I

• Official WP-API site and documentation — http://wp-api.org/

• WP Tavern article on Ryan McCue — http://wptavern.com/ryan-mccue-on-creating-the-json-rest-api-for-wordpress

• WordCamp Presentation by Rachel Baker — http://wordpress.tv/2014/07/06/rachel-baker-put-your-content-to-rest-with-wp-api/

• WP Engine article on Torque — http://torquemag.io/introduction-wordpress-new-universal-connector-json-rest-api/

W O R D P R E S S S TAT S

• As of August 2013, more than 22% of the top 10 million websites are on WordPress

• It is currently the most popular blogging system on the web with more than 60 million websites.

• On average, 16 billion pages are viewed by more than 409 million people each month

W H AT I S A N A P I ?

• API stands for Application Programming Interface and is a set of entry points that allow you to interact with a platform.

A N A P I R E M I N D S M E O F A N H D M I P O R T B U T F O R Y O U R W E B S I T E

Y O U ’ V E P R O B A B LY H E A R D O F T H E S E S G U Y S

WHAT ARE A FEW POPULAR APIs?

T H E Y J U S T D E C I D E D T O S T O P C O U N T I N G A F T E R 2 0 1 1 …

T H E G R O W T H O F T H E A P I

T W I T T E R A P I I N A C T I O N

PLUMETWEET CASTERFALCON PRO

T W I T T E R A P P V S FA L C O N P R O

T W I T T E R A P P V S FA L C O N P R O

M O R E R O B U S T P L AT F O R M SF I R S T B E N E F I T

B O C O U P B U I LT W I T H N O D E . J SA R E A L L I F E E X A M P L E

L E T ’ S TA L K A B O U T J S O N B E H I N D H I S B A C K

• JSON is a data format based on Javascript’s representation of objects, but it’s widely used because it can be easily represented in almost every programming language.

E X T E N S I B I L I T YS E C O N D B E N E F I T

E X A M P L E S O F W P - A P I E X T E N S I B I L I T Y

• Many people who run WordPress run multiple instances of it. The WP-API would allow these instances to talk to each other, list each other’s content, or even react to events that happen on the other.

• Imagine you have a Multisite install, and each site is a store that sells items. You may want to display all of the sale items from each site that are tagged “Summer Sale”. The WP-API would mash-up this data and make it easy to implement.

E X A M P L E S O F W P - A P I E X T E N S I B I L I T Y

• You could have a plugin built from the content on your site that could then be downloaded and installed on another site and display a dynamic feed of your posts with your featured image, an excerpt, and a link to read more.

• We even have popular plugins starting to be extended as APIs. One such plugin is BuddyPress which is a plugin that helps when building chat forums and such.

A C C E S S I N G T H E I N F O T H R O U G H W P - A P I

• REQUEST INFO —— example.com/api/team-members

• REQUEST SINGLE —— example.com/api/team-member/4/

• CREATE INFO —— example.com/api/team-members

• EDIT SINGLE —— example.com/api/team-member/4/

• DELETE SINGLE —— example.com/api/team-member/4/

GET

GET

POST

PUT

DELETE

T H E W P D A S H B O A R D L O O K S L I K E T H I S … F O R N O W

S O Y O U R W P D A S H B O A R D C O U L D L O O K L I K E

O R L I K E

E V E N L I K E

G O F O R T H A N D W P - A P I

Thank You.

C O N N E C T W I T H M E

• http://wordpressdev.solutions

• Twitter @WPDevSolutions

• LinkedIn — www.linkedin.com/in/wordpresswayne