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 | 25th October 2016
Search
Samantha Miller
October 25, 2016
Programming
0
57
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
390
The Basics of Unique Theme Development | WordCamp Manchester | 28th June 2014
sambulance
0
470
Other Decks in Programming
See All in Programming
2 週間で Twitter Bot を作ってみた
contour_gara
0
460
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
180
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
5
920
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
2
190
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
1
1k
Rethinking UI building strategies @ SFI 2024
letelete
0
270
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
270
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
490
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
230
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
27
8.3k
Featured
See All Featured
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
17
1.4k
Clear Off the Table
cherdarchuk
84
310k
Testing 201, or: Great Expectations
jmmastey
28
6.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Automating Front-end Workflow
addyosmani
1356
200k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
7
1k
Producing Creativity
orderedlist
PRO
337
39k
A designer walks into a library…
pauljervisheath
200
23k
Visualization
eitanlees
136
14k
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