Common WordPress APIs_ HTTP API.pptx

Jonathan Bossenger
Jonathan BossengerCode instructor/ex-developer um 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 von 13

Recomendados

The WordPress HTML API von
The WordPress HTML APIThe WordPress HTML API
The WordPress HTML APIJonathan Bossenger
47 views9 Folien
Common WordPress APIs: Metadata von
Common WordPress APIs: MetadataCommon WordPress APIs: Metadata
Common WordPress APIs: MetadataJonathan Bossenger
64 views10 Folien
Introduction to Web Technology von
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web TechnologyRob Bertholf
11.6K views260 Folien
Let's code_ WP REST API - custom routes and endpoints.pptx von
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
57 views9 Folien
Introduction to PHP - SDPHP von
Introduction to PHP - SDPHPIntroduction to PHP - SDPHP
Introduction to PHP - SDPHPEric Johnson
687 views49 Folien
Testing plugins for PHP 8 von
Testing plugins for PHP 8Testing plugins for PHP 8
Testing plugins for PHP 8Jonathan Bossenger
45 views10 Folien

Más contenido relacionado

Similar a Common WordPress APIs_ HTTP API.pptx

Advanced php for web professionals von
Advanced php for web professionalsAdvanced php for web professionals
Advanced php for web professionalsSudha Hari Tech Solution Pvt ltd
1.6K views312 Folien
Introduction to PHP (SDPHP) von
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)Eric Johnson
784 views50 Folien
Using the WP REST API von
Using the WP REST APIUsing the WP REST API
Using the WP REST APIJonathan Bossenger
95 views9 Folien
Its easy! contributing to open source - Devnexus 2020 von
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 views36 Folien
Introduction to PHP.pptx von
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptxMarianJRuben
16 views27 Folien
Es fácil contribuir al open source - Bolivia JUG 2020 von
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 views38 Folien

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

Introduction to PHP (SDPHP) von Eric Johnson
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)
Eric Johnson784 views
Its easy! contributing to open source - Devnexus 2020 von 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
Es fácil contribuir al open source - Bolivia JUG 2020 von 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 views
How to contribute to Open Source von hor phallin
How to contribute to Open SourceHow to contribute to Open Source
How to contribute to Open Source
hor phallin359 views
Getting Started with ChatGPT.pdf von Manish Chopra
Getting Started with ChatGPT.pdfGetting Started with ChatGPT.pdf
Getting Started with ChatGPT.pdf
Manish Chopra646 views
30 days gcp info session final von Domendra Sahu
30 days gcp info session final30 days gcp info session final
30 days gcp info session final
Domendra Sahu96 views
It is easy contributing to open source - JCON 2020 von 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 views
Let's code: extending the WP REST API - modifying responses von 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
Advanced PHP Web Development Tools in 2015 von iScripts
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts11.1K views
WEBINAR PROFENAA NEYVEI (1).pptx von ssuserd83455
WEBINAR PROFENAA NEYVEI (1).pptxWEBINAR PROFENAA NEYVEI (1).pptx
WEBINAR PROFENAA NEYVEI (1).pptx
ssuserd834552 views
It is easy contributing to Open Source - ECLIPSE CON 2020 von 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 views
Intro to WordPress Plugins von zamoose
Intro to WordPress PluginsIntro to WordPress Plugins
Intro to WordPress Plugins
zamoose2.6K views

Más de Jonathan Bossenger

WordPress 6.4 improvements - developer edition von
WordPress 6.4 improvements - developer editionWordPress 6.4 improvements - developer edition
WordPress 6.4 improvements - developer editionJonathan Bossenger
35 views9 Folien
The WordPress Create Block tool von
The WordPress Create Block toolThe WordPress Create Block tool
The WordPress Create Block toolJonathan Bossenger
73 views10 Folien
PHP compatibility testing with PHPCompatibilityWP von
PHP compatibility testing with PHPCompatibilityWPPHP compatibility testing with PHPCompatibilityWP
PHP compatibility testing with PHPCompatibilityWPJonathan Bossenger
43 views10 Folien
What’s new for developers_ (August 2023).pptx von
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 views9 Folien
Testing your plugins for PHP version compatibility von
Testing your plugins for PHP version compatibilityTesting your plugins for PHP version compatibility
Testing your plugins for PHP version compatibilityJonathan Bossenger
27 views4 Folien
Common WordPress APIs_ Global Variables von
Common WordPress APIs_ Global VariablesCommon WordPress APIs_ Global Variables
Common WordPress APIs_ Global VariablesJonathan Bossenger
36 views10 Folien

Más de Jonathan Bossenger(20)

PHP compatibility testing with PHPCompatibilityWP von Jonathan Bossenger
PHP compatibility testing with PHPCompatibilityWPPHP compatibility testing with PHPCompatibilityWP
PHP compatibility testing with PHPCompatibilityWP
What’s new for developers_ (August 2023).pptx von 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 views
Testing your plugins for PHP version compatibility von Jonathan Bossenger
Testing your plugins for PHP version compatibilityTesting your plugins for PHP version compatibility
Testing your plugins for PHP version compatibility

Último

hamro digital logics.pptx von
hamro digital logics.pptxhamro digital logics.pptx
hamro digital logics.pptxtupeshghimire
11 views36 Folien
ARNAB12.pdf von
ARNAB12.pdfARNAB12.pdf
ARNAB12.pdfArnabChakraborty499766
5 views83 Folien
Amine el bouzalimi von
Amine el bouzalimiAmine el bouzalimi
Amine el bouzalimiAmine EL BOUZALIMI
5 views38 Folien
The Dark Web : Hidden Services von
The Dark Web : Hidden ServicesThe Dark Web : Hidden Services
The Dark Web : Hidden ServicesAnshu Singh
19 views24 Folien
cis5-Project-11a-Harry Lai von
cis5-Project-11a-Harry Laicis5-Project-11a-Harry Lai
cis5-Project-11a-Harry Laiharrylai126
9 views11 Folien
WITS Deck von
WITS DeckWITS Deck
WITS DeckW.I.T.S.
18 views22 Folien

Último(10)

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/