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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Samantha Miller
October 25, 2016
Programming
77
0
Share
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
More Decks by Samantha Miller
See All by Samantha Miller
The Basics of Unique Theme Development | WordCamp London | 21st March 2015
sambulance
0
610
The Basics of Unique Theme Development | WordCamp Manchester | 28th June 2014
sambulance
0
550
Other Decks in Programming
See All in Programming
Coding at the Speed of Thought: The New Era of Symfony Docker
dunglas
0
4.8k
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
360
Vibe NLP for Applied NLP
inesmontani
PRO
0
210
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
170
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
250
CDK Deployのための ”反響定位”
watany
3
610
3分でわかるatama plusのQA/about atama plus QA
atamaplus
0
130
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
250
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.2k
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
5
2.5k
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
750
Symfonyの特性(設計思想)を手軽に活かす特性(trait)
ickx
0
130
Featured
See All Featured
Marketing to machines
jonoalderson
1
5.1k
Why Our Code Smells
bkeepers
PRO
340
58k
4 Signs Your Business is Dying
shpigford
187
22k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
720
The Curious Case for Waylosing
cassininazir
0
290
Evolving SEO for Evolving Search Engines
ryanjones
0
180
The agentic SEO stack - context over prompts
schlessera
0
740
KATA
mclloyd
PRO
35
15k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
エンジニアに許された特別な時間の終わり
watany
106
240k
Mind Mapping
helmedeiros
PRO
1
150
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