SlideShare a Scribd company logo
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/

More Related Content

PPTX
The WordPress HTML API
PPTX
Common WordPress APIs: Metadata
PDF
Introduction to Web Technology
PDF
PHP Web Development.pdf
PPTX
Let's code_ WP REST API - custom routes and endpoints.pptx
PPT
Introduction to PHP - SDPHP
PPTX
Testing plugins for PHP 8
PDF
Contributing to StrongLoop LoopBack (and other open source projects)
The WordPress HTML API
Common WordPress APIs: Metadata
Introduction to Web Technology
PHP Web Development.pdf
Let's code_ WP REST API - custom routes and endpoints.pptx
Introduction to PHP - SDPHP
Testing plugins for PHP 8
Contributing to StrongLoop LoopBack (and other open source projects)

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

DOC
PHP, PHP Developer, Hire PHP Developer, PHP Web Development, Hire PHP Program...
PDF
Advanced php for web professionals
PDF
Introduction to PHP (SDPHP)
PPTX
Using the WP REST API
PDF
Its easy! contributing to open source - Devnexus 2020
PPTX
Introduction to PHP.pptx
PDF
Es fácil contribuir al open source - Bolivia JUG 2020
PPTX
Common WordPress APIs - Options API
PPTX
Common WordPress APIs_ Settings API
PPTX
Common WordPress APIs - Dashboard Widgets
PPTX
Understanding APIs.pptx
PPTX
Understanding APIs.pptx introduction chk
PDF
How to contribute to Open Source
PDF
Getting Started with ChatGPT.pdf
PDF
30 days gcp info session final
PPTX
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
PDF
It is easy contributing to open source - JCON 2020
PPTX
Let's code: extending the WP REST API - modifying responses
PPTX
Php intro
PPSX
Advanced PHP Web Development Tools in 2015
PHP, PHP Developer, Hire PHP Developer, PHP Web Development, Hire PHP Program...
Advanced php for web professionals
Introduction to PHP (SDPHP)
Using the WP REST API
Its easy! contributing to open source - Devnexus 2020
Introduction to PHP.pptx
Es fácil contribuir al open source - Bolivia JUG 2020
Common WordPress APIs - Options API
Common WordPress APIs_ Settings API
Common WordPress APIs - Dashboard Widgets
Understanding APIs.pptx
Understanding APIs.pptx introduction chk
How to contribute to Open Source
Getting Started with ChatGPT.pdf
30 days gcp info session final
lec1 (1).pptxkeoiwjwoijeoiwjeoijwoeijewoi
It is easy contributing to open source - JCON 2020
Let's code: extending the WP REST API - modifying responses
Php intro
Advanced PHP Web Development Tools in 2015
Ad

More from Jonathan Bossenger (20)

PPTX
New WordPress Developer APIs The Interactivity API
PPTX
The WordPress Create Block tool
PPTX
PHP compatibility testing with PHPCompatibilityWP
PPTX
What’s new for developers_ (August 2023).pptx
PPTX
Testing your plugins for PHP version compatibility
PPTX
Common WordPress APIs_ Global Variables
PPTX
Common WordPress APIs_ Internationalization
PPTX
Testing WordPress 6.3 - Developer edition
PPTX
Common WordPress APIs: Responsive Images
PPTX
Custom Tables in WordPress
PPTX
The WordPress Database
PPTX
WordPress Coding Standards
PPTX
Managing a WordPress Multisite Network
PPTX
Debugging in WordPress
PPTX
Introduction to WordPress Multisite Networks
PPTX
Developing for multisite
PPTX
Custom Post Types and Capabilities.pptx
PPTX
Developing WordPress User Roles and Capabilities
PPTX
Let's code: WordPress multisite experiments
PPTX
Creating a WordPress multisite network
New WordPress Developer APIs The Interactivity API
The WordPress Create Block tool
PHP compatibility testing with PHPCompatibilityWP
What’s new for developers_ (August 2023).pptx
Testing your plugins for PHP version compatibility
Common WordPress APIs_ Global Variables
Common WordPress APIs_ Internationalization
Testing WordPress 6.3 - Developer edition
Common WordPress APIs: Responsive Images
Custom Tables in WordPress
The WordPress Database
WordPress Coding Standards
Managing a WordPress Multisite Network
Debugging in WordPress
Introduction to WordPress Multisite Networks
Developing for multisite
Custom Post Types and Capabilities.pptx
Developing WordPress User Roles and Capabilities
Let's code: WordPress multisite experiments
Creating a WordPress multisite network
Ad

Recently uploaded (20)

PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
E -tech empowerment technologies PowerPoint
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PPTX
Funds Management Learning Material for Beg
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPTX
Introduction to Information and Communication Technology
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Digital Literacy And Online Safety on internet
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PptxGenJS_Demo_Chart_20250317130215833.pptx
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
E -tech empowerment technologies PowerPoint
Introuction about ICD -10 and ICD-11 PPT.pptx
introduction about ICD -10 & ICD-11 ppt.pptx
Funds Management Learning Material for Beg
Exploring VPS Hosting Trends for SMBs in 2025
An introduction to the IFRS (ISSB) Stndards.pdf
SAP Ariba Sourcing PPT for learning material
newyork.pptxirantrafgshenepalchinachinane
Introduction to Information and Communication Technology
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Tenda Login Guide: Access Your Router in 5 Easy Steps
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
tcp ip networks nd ip layering assotred slides
Digital Literacy And Online Safety on internet
The New Creative Director: How AI Tools for Social Media Content Creation Are...
WebRTC in SignalWire - troubleshooting media negotiation
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...

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/