Common WordPress APIs_ HTTP API.pptx

Jonathan Bossenger
Jonathan BossengerCode instructor/ex-developer en Automattic
1
Common WordPress APIs:
HTTP Request API
Jonathan Bossenger
Learn.WordPress.org
2
👋🏽 Welcome!
As you join, let everyone know in the chat where you’re
joining us from, and feel free to share a little about what
you do with WordPress.
Hello!
○ My name is Jonathan Bossenger
○ From Cape Town, South Africa
○ Developer educator at Automattic
○ Sponsored to work with the Training Team
○ jonathanbossenger.com
Learn.WordPress.org
HTTP Request API
Jonathan Bossenger
Announcements
○ Welcome.
○ Please let me know if you can’t see this slide!
○ We are presenting in focus mode, but please feel free to enable your video.
○ You are welcome to ask questions.
○ You are welcome to post questions in the chat, or unmute to ask questions.
Announcements
○ Make sure your local install is ready
○ If I am going too fast, please let me know!
○ We are recording this session and will be posting it to https://wordpress.tv/ afterwards.
○ https://learn.wordpress.org/ - WordPress learning resources
○ https://developer.wordpress.org/news/ - WordPress developer news
Learning outcomes
○ The HTTP Request API
• What HTTP Request API
⁃ A quick detour into some terminology
⁃ Debugging your HTTP Requests
• How to use the HTTP Request API to fetch data
• How to use the HTTP Request API to send data
• Considering performance
• Advanced HTTP Request API topics
Question time
○ On a scale of 1 to 5, how well do you know this topic?
Requirements
○ A local WordPress install
○ A text editor
○ An example HTTP API
• https://fakestoreapi.com/
○ A plugin to test HTTP API requests
• https://gist.github.com/jonathanbossenger/41391ce7329a9290215ca7528f35b6b2
Let’s go!
Terminology
○ API: Application Programming Interface, a set of functions and procedures that allow one
application to interact with another.
○ HTTP: Hypertext Transfer Protocol, an application protocol for distributed,
collaborative, hypermedia information systems.
○ HTTP API: A set of functions and procedures that allow one application to interact with
another using the HTTP protocol.
Terminology
○ REST: Representational State Transfer, a software architectural style that defines a set of
constraints to be used for creating Web services.
○ HTTP REST API: A set of functions and procedures that allow one application to
interact with another using the HTTP protocol and the REST architectural style (more
commonly called a REST API).
Terminology
○ HTTP Request: A request for the server to do something. Requests usually have a method
(GET, POST, PUT, DELETE, etc), a URL, and headers.
○ HTTP Response: A response from the server. Responses usually have a status code (200,
404, 500, etc), headers, and a body.
○ HTTP Client: A program that makes HTTP requests. Browsers are HTTP clients, as are
programs like cURL and Postman.
Resources
○ https://fakestoreapi.com/
○ https://gist.github.com/jonathanbossenger/41391ce7329a9290215ca7528f35b6b2
○ https://curl.se/
○ https://www.postman.com/
○ https://developer.wordpress.org/apis/making-http-requests/
○ https://developer.wordpress.org/reference/classes/wp_http/
1 de 13

Recomendados

The WordPress HTML API por
The WordPress HTML APIThe WordPress HTML API
The WordPress HTML APIJonathan Bossenger
44 vistas9 diapositivas
Common WordPress APIs: Metadata por
Common WordPress APIs: MetadataCommon WordPress APIs: Metadata
Common WordPress APIs: MetadataJonathan Bossenger
64 vistas10 diapositivas
Introduction to Web Technology por
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web TechnologyRob Bertholf
11.6K vistas260 diapositivas
Let's code_ WP REST API - custom routes and endpoints.pptx por
Let's code_ WP REST API - custom routes and endpoints.pptxLet's code_ WP REST API - custom routes and endpoints.pptx
Let's code_ WP REST API - custom routes and endpoints.pptxJonathan Bossenger
56 vistas9 diapositivas
Introduction to PHP - SDPHP por
Introduction to PHP - SDPHPIntroduction to PHP - SDPHP
Introduction to PHP - SDPHPEric Johnson
687 vistas49 diapositivas
Testing plugins for PHP 8 por
Testing plugins for PHP 8Testing plugins for PHP 8
Testing plugins for PHP 8Jonathan Bossenger
45 vistas10 diapositivas

Más contenido relacionado

Similar a Common WordPress APIs_ HTTP API.pptx

Advanced php for web professionals por
Advanced php for web professionalsAdvanced php for web professionals
Advanced php for web professionalsSudha Hari Tech Solution Pvt ltd
1.6K vistas312 diapositivas
Introduction to PHP (SDPHP) por
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)Eric Johnson
784 vistas50 diapositivas
Using the WP REST API por
Using the WP REST APIUsing the WP REST API
Using the WP REST APIJonathan Bossenger
93 vistas9 diapositivas
Its easy! contributing to open source - Devnexus 2020 por
Its easy! contributing to open source - Devnexus 2020Its easy! contributing to open source - Devnexus 2020
Its easy! contributing to open source - Devnexus 2020César Hernández
75 vistas36 diapositivas
Introduction to PHP.pptx por
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptxMarianJRuben
15 vistas27 diapositivas
Es fácil contribuir al open source - Bolivia JUG 2020 por
Es fácil contribuir al open source - Bolivia JUG 2020Es fácil contribuir al open source - Bolivia JUG 2020
Es fácil contribuir al open source - Bolivia JUG 2020César Hernández
144 vistas38 diapositivas

Similar a Common WordPress APIs_ HTTP API.pptx(20)

Introduction to PHP (SDPHP) por Eric Johnson
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)
Eric Johnson784 vistas
Its easy! contributing to open source - Devnexus 2020 por César Hernández
Its easy! contributing to open source - Devnexus 2020Its easy! contributing to open source - Devnexus 2020
Its easy! contributing to open source - Devnexus 2020
César Hernández75 vistas
Introduction to PHP.pptx por MarianJRuben
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptx
MarianJRuben15 vistas
Es fácil contribuir al open source - Bolivia JUG 2020 por César Hernández
Es fácil contribuir al open source - Bolivia JUG 2020Es fácil contribuir al open source - Bolivia JUG 2020
Es fácil contribuir al open source - Bolivia JUG 2020
César Hernández144 vistas
How to contribute to Open Source por hor phallin
How to contribute to Open SourceHow to contribute to Open Source
How to contribute to Open Source
hor phallin359 vistas
Getting Started with ChatGPT.pdf por Manish Chopra
Getting Started with ChatGPT.pdfGetting Started with ChatGPT.pdf
Getting Started with ChatGPT.pdf
Manish Chopra636 vistas
30 days gcp info session final por Domendra Sahu
30 days gcp info session final30 days gcp info session final
30 days gcp info session final
Domendra Sahu96 vistas
It is easy contributing to open source - JCON 2020 por César Hernández
It is easy contributing to open source - JCON 2020It is easy contributing to open source - JCON 2020
It is easy contributing to open source - JCON 2020
César Hernández182 vistas
Let's code: extending the WP REST API - modifying responses por Jonathan Bossenger
Let's code: extending the WP REST API - modifying responsesLet's code: extending the WP REST API - modifying responses
Let's code: extending the WP REST API - modifying responses
Jonathan Bossenger61 vistas
Advanced PHP Web Development Tools in 2015 por iScripts
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts11.1K vistas
WEBINAR PROFENAA NEYVEI (1).pptx por ssuserd83455
WEBINAR PROFENAA NEYVEI (1).pptxWEBINAR PROFENAA NEYVEI (1).pptx
WEBINAR PROFENAA NEYVEI (1).pptx
ssuserd834552 vistas
It is easy contributing to Open Source - ECLIPSE CON 2020 por César Hernández
It is easy contributing to Open Source - ECLIPSE CON 2020It is easy contributing to Open Source - ECLIPSE CON 2020
It is easy contributing to Open Source - ECLIPSE CON 2020
César Hernández136 vistas
Intro to WordPress Plugins por zamoose
Intro to WordPress PluginsIntro to WordPress Plugins
Intro to WordPress Plugins
zamoose2.6K vistas

Más de Jonathan Bossenger

WordPress 6.4 improvements - developer edition por
WordPress 6.4 improvements - developer editionWordPress 6.4 improvements - developer edition
WordPress 6.4 improvements - developer editionJonathan Bossenger
35 vistas9 diapositivas
The WordPress Create Block tool por
The WordPress Create Block toolThe WordPress Create Block tool
The WordPress Create Block toolJonathan Bossenger
70 vistas10 diapositivas
PHP compatibility testing with PHPCompatibilityWP por
PHP compatibility testing with PHPCompatibilityWPPHP compatibility testing with PHPCompatibilityWP
PHP compatibility testing with PHPCompatibilityWPJonathan Bossenger
43 vistas10 diapositivas
What’s new for developers_ (August 2023).pptx por
What’s new for developers_ (August 2023).pptxWhat’s new for developers_ (August 2023).pptx
What’s new for developers_ (August 2023).pptxJonathan Bossenger
221 vistas9 diapositivas
Testing your plugins for PHP version compatibility por
Testing your plugins for PHP version compatibilityTesting your plugins for PHP version compatibility
Testing your plugins for PHP version compatibilityJonathan Bossenger
27 vistas4 diapositivas
Common WordPress APIs_ Global Variables por
Common WordPress APIs_ Global VariablesCommon WordPress APIs_ Global Variables
Common WordPress APIs_ Global VariablesJonathan Bossenger
36 vistas10 diapositivas

Más de Jonathan Bossenger(20)

WordPress 6.4 improvements - developer edition por Jonathan Bossenger
WordPress 6.4 improvements - developer editionWordPress 6.4 improvements - developer edition
WordPress 6.4 improvements - developer edition
Jonathan Bossenger35 vistas
PHP compatibility testing with PHPCompatibilityWP por Jonathan Bossenger
PHP compatibility testing with PHPCompatibilityWPPHP compatibility testing with PHPCompatibilityWP
PHP compatibility testing with PHPCompatibilityWP
Jonathan Bossenger43 vistas
What’s new for developers_ (August 2023).pptx por Jonathan Bossenger
What’s new for developers_ (August 2023).pptxWhat’s new for developers_ (August 2023).pptx
What’s new for developers_ (August 2023).pptx
Jonathan Bossenger221 vistas
Testing your plugins for PHP version compatibility por Jonathan Bossenger
Testing your plugins for PHP version compatibilityTesting your plugins for PHP version compatibility
Testing your plugins for PHP version compatibility
Jonathan Bossenger27 vistas
Developing WordPress User Roles and Capabilities por Jonathan Bossenger
Developing WordPress User Roles and CapabilitiesDeveloping WordPress User Roles and Capabilities
Developing WordPress User Roles and Capabilities
Jonathan Bossenger13 vistas

Último

WEB 2.O TOOLS: Empowering education.pptx por
WEB 2.O TOOLS: Empowering education.pptxWEB 2.O TOOLS: Empowering education.pptx
WEB 2.O TOOLS: Empowering education.pptxnarmadhamanohar21
16 vistas16 diapositivas
Audience profile.pptx por
Audience profile.pptxAudience profile.pptx
Audience profile.pptxMollyBrown86
12 vistas2 diapositivas
google forms survey (1).pptx por
google forms survey (1).pptxgoogle forms survey (1).pptx
google forms survey (1).pptxMollyBrown86
14 vistas10 diapositivas
Serverless cloud architecture patterns por
Serverless cloud architecture patternsServerless cloud architecture patterns
Serverless cloud architecture patternsJimmy Dahlqvist
17 vistas52 diapositivas
informing ideas.docx por
informing ideas.docxinforming ideas.docx
informing ideas.docxMollyBrown86
12 vistas10 diapositivas
childcare.pdf por
childcare.pdfchildcare.pdf
childcare.pdffatma alnaqbi
14 vistas4 diapositivas

Último(20)

google forms survey (1).pptx por MollyBrown86
google forms survey (1).pptxgoogle forms survey (1).pptx
google forms survey (1).pptx
MollyBrown8614 vistas
Serverless cloud architecture patterns por Jimmy Dahlqvist
Serverless cloud architecture patternsServerless cloud architecture patterns
Serverless cloud architecture patterns
Jimmy Dahlqvist17 vistas
Building trust in our information ecosystem: who do we trust in an emergency por Tina Purnat
Building trust in our information ecosystem: who do we trust in an emergencyBuilding trust in our information ecosystem: who do we trust in an emergency
Building trust in our information ecosystem: who do we trust in an emergency
Tina Purnat92 vistas
UiPath Document Understanding_Day 3.pptx por UiPathCommunity
UiPath Document Understanding_Day 3.pptxUiPath Document Understanding_Day 3.pptx
UiPath Document Understanding_Day 3.pptx
UiPathCommunity101 vistas
AI Powered event-driven translation bot por Jimmy Dahlqvist
AI Powered event-driven translation botAI Powered event-driven translation bot
AI Powered event-driven translation bot
Jimmy Dahlqvist16 vistas
𝐒𝐨𝐥𝐚𝐫𝐖𝐢𝐧𝐝𝐬 𝐂𝐚𝐬𝐞 𝐒𝐭𝐮𝐝𝐲 por Infosec train
𝐒𝐨𝐥𝐚𝐫𝐖𝐢𝐧𝐝𝐬 𝐂𝐚𝐬𝐞 𝐒𝐭𝐮𝐝𝐲𝐒𝐨𝐥𝐚𝐫𝐖𝐢𝐧𝐝𝐬 𝐂𝐚𝐬𝐞 𝐒𝐭𝐮𝐝𝐲
𝐒𝐨𝐥𝐚𝐫𝐖𝐢𝐧𝐝𝐬 𝐂𝐚𝐬𝐞 𝐒𝐭𝐮𝐝𝐲
Infosec train9 vistas
IETF 118: Starlink Protocol Performance por APNIC
IETF 118: Starlink Protocol PerformanceIETF 118: Starlink Protocol Performance
IETF 118: Starlink Protocol Performance
APNIC186 vistas
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdf por RIPE NCC
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdfOpportunities for Youth in IG - Alena Muravska RIPE NCC.pdf
Opportunities for Youth in IG - Alena Muravska RIPE NCC.pdf
RIPE NCC9 vistas
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf por RIPE NCC
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdfIGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf
IGF UA - Dialog with I_ organisations - Alena Muavska RIPE NCC.pdf
RIPE NCC15 vistas
PORTFOLIO 1 (Bret Michael Pepito).pdf por brejess0410
PORTFOLIO 1 (Bret Michael Pepito).pdfPORTFOLIO 1 (Bret Michael Pepito).pdf
PORTFOLIO 1 (Bret Michael Pepito).pdf
brejess04107 vistas
We see everywhere that many people are talking about technology.docx por ssuserc5935b
We see everywhere that many people are talking about technology.docxWe see everywhere that many people are talking about technology.docx
We see everywhere that many people are talking about technology.docx
ssuserc5935b6 vistas
Existing documentaries (1).docx por MollyBrown86
Existing documentaries (1).docxExisting documentaries (1).docx
Existing documentaries (1).docx
MollyBrown8613 vistas

Common WordPress APIs_ HTTP API.pptx

  • 1. 1 Common WordPress APIs: HTTP Request API Jonathan Bossenger Learn.WordPress.org
  • 2. 2 👋🏽 Welcome! As you join, let everyone know in the chat where you’re joining us from, and feel free to share a little about what you do with WordPress. Hello! ○ My name is Jonathan Bossenger ○ From Cape Town, South Africa ○ Developer educator at Automattic ○ Sponsored to work with the Training Team ○ jonathanbossenger.com
  • 4. Announcements ○ Welcome. ○ Please let me know if you can’t see this slide! ○ We are presenting in focus mode, but please feel free to enable your video. ○ You are welcome to ask questions. ○ You are welcome to post questions in the chat, or unmute to ask questions.
  • 5. Announcements ○ Make sure your local install is ready ○ If I am going too fast, please let me know! ○ We are recording this session and will be posting it to https://wordpress.tv/ afterwards. ○ https://learn.wordpress.org/ - WordPress learning resources ○ https://developer.wordpress.org/news/ - WordPress developer news
  • 6. Learning outcomes ○ The HTTP Request API • What HTTP Request API ⁃ A quick detour into some terminology ⁃ Debugging your HTTP Requests • How to use the HTTP Request API to fetch data • How to use the HTTP Request API to send data • Considering performance • Advanced HTTP Request API topics
  • 7. Question time ○ On a scale of 1 to 5, how well do you know this topic?
  • 8. Requirements ○ A local WordPress install ○ A text editor ○ An example HTTP API • https://fakestoreapi.com/ ○ A plugin to test HTTP API requests • https://gist.github.com/jonathanbossenger/41391ce7329a9290215ca7528f35b6b2
  • 10. Terminology ○ API: Application Programming Interface, a set of functions and procedures that allow one application to interact with another. ○ HTTP: Hypertext Transfer Protocol, an application protocol for distributed, collaborative, hypermedia information systems. ○ HTTP API: A set of functions and procedures that allow one application to interact with another using the HTTP protocol.
  • 11. Terminology ○ REST: Representational State Transfer, a software architectural style that defines a set of constraints to be used for creating Web services. ○ HTTP REST API: A set of functions and procedures that allow one application to interact with another using the HTTP protocol and the REST architectural style (more commonly called a REST API).
  • 12. Terminology ○ HTTP Request: A request for the server to do something. Requests usually have a method (GET, POST, PUT, DELETE, etc), a URL, and headers. ○ HTTP Response: A response from the server. Responses usually have a status code (200, 404, 500, etc), headers, and a body. ○ HTTP Client: A program that makes HTTP requests. Browsers are HTTP clients, as are programs like cURL and Postman.
  • 13. Resources ○ https://fakestoreapi.com/ ○ https://gist.github.com/jonathanbossenger/41391ce7329a9290215ca7528f35b6b2 ○ https://curl.se/ ○ https://www.postman.com/ ○ https://developer.wordpress.org/apis/making-http-requests/ ○ https://developer.wordpress.org/reference/classes/wp_http/