Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to the REST API | WordPress Leeds ...
Search
Samantha Miller
October 25, 2016
Programming
0
76
Introduction to the REST API | WordPress Leeds | 25th October 2016
A brief introduction to the WordPress REST API and what it can be used for
Samantha Miller
October 25, 2016
Tweet
Share
More Decks by Samantha Miller
See All by Samantha Miller
The Basics of Unique Theme Development | WordCamp London | 21st March 2015
sambulance
0
590
The Basics of Unique Theme Development | WordCamp Manchester | 28th June 2014
sambulance
0
540
Other Decks in Programming
See All in Programming
One Enishi After Another
snoozer05
PRO
0
130
Leading Effective Engineering Teams in the AI Era
addyosmani
7
510
CSC509 Lecture 04
javiergs
PRO
0
300
理論と実務のギャップを超える
eycjur
0
170
CSC509 Lecture 05
javiergs
PRO
0
310
品質ワークショップをやってみた
nealle
0
580
Google Opalで使える37のライブラリ
mickey_kubo
2
120
Go言語の特性を活かした公式MCP SDKの設計
hond0413
1
370
SwiftDataを使って10万件のデータを読み書きする
akidon0000
0
230
なぜあの開発者はDevRelに伴走し続けるのか / Why Does That Developer Keep Running Alongside DevRel?
nrslib
3
410
ALL CODE BASE ARE BELONG TO STUDY
uzulla
25
6.5k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
500
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
Designing for Performance
lara
610
69k
How GitHub (no longer) Works
holman
315
140k
Music & Morning Musume
bryan
46
6.9k
Done Done
chrislema
185
16k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
A better future with KSS
kneath
239
18k
Fireside Chat
paigeccino
40
3.7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Into the Great Unknown - MozCon
thekraken
40
2.1k
Transcript
REST API INTRODUCTION TO THE
WHAT IS “THE REST API”?
A WAY TO COMMUNICATE WITH WORDPRESS, WITHOUT WORDPRESS
PROVIDES A CLEAR PATH FOR OTHER TECHNOLOGIES TO GET TO
THE CONTENT CREATED IN WORDPRESS
WORDPRESS IOS APP REACT APP ANDROID APP WEBSITE
WHAT DOES API EVEN MEAN?
APPLICATION PROGRAMMING INTERFACE
A WAY FOR TWO PROGRAMS TO INTERACT WITH EACH OTHER
WHAT ABOUT REST?
REPRESENTATIONAL STATE TRANSFER
USES HTTP TO SEND AND RECEIVE DATA
HTTP://WPLEEDS.CO.UK
GET = SEE DATA POST = SEND DATA
None
None
None
None
ENDPOINTS
A URL TO POINT OUR REQUESTS TO
RETURNS DATA FROM WORDPRESS VIA THE API
HTTP://EXAMPLE.COM/ WP-JSON/WP/V2/POSTS
None
JSONVIEW CHROME EXTENSION
PROVIDES A CLEAR PATH FOR OTHER TECHNOLOGIES TO GET TO
THE CONTENT CREATED IN WORDPRESS
STANDARDISED URL
STANDARDISED DATA STRUCTURE
CONTENT ENDPOINTS COMING IN WORDPRESS 4.7 (DECEMBER 2016)
OTHER ENDPOINTS… TBC
CAN STRANGERS POST TO MY WORDPRESS WEBSITE USING THE API?
NO
AUTHENTICATION
USER WOULD LOG IN VIA THE ADMIN
PROGRAM NEEDS TO AUTHENTICATE
None
WHAT CAN THE API BE USED FOR?
POWER MOBILE APPS
SHARE DATA BETWEEN SITES
BESPOKE ADMIN INTERFACES
JAVASCRIPT POWERED THEMES
REALTIME DATA
INTEGRATION WITH THIRD PARTIES
WHERE CAN I FIND OUT MORE?
HUMAN MADE WHITEPAPER: HMN.MD/WHITEPAPER
DOCUMENTATION: WP-API.ORG
THANKS