Common WordPress APIs_ HTTP API.pptx

Jonathan Bossenger
Jonathan BossengerCode instructor/ex-developer em 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
47 visualizações9 slides
Common WordPress APIs: Metadata por
Common WordPress APIs: MetadataCommon WordPress APIs: Metadata
Common WordPress APIs: MetadataJonathan Bossenger
64 visualizações10 slides
Introduction to Web Technology por
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web TechnologyRob Bertholf
11.6K visualizações260 slides
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
57 visualizações9 slides
Introduction to PHP - SDPHP por
Introduction to PHP - SDPHPIntroduction to PHP - SDPHP
Introduction to PHP - SDPHPEric Johnson
687 visualizações49 slides
Testing plugins for PHP 8 por
Testing plugins for PHP 8Testing plugins for PHP 8
Testing plugins for PHP 8Jonathan Bossenger
45 visualizações10 slides

Mais conteúdo 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 visualizações312 slides
Introduction to PHP (SDPHP) por
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)Eric Johnson
784 visualizações50 slides
Using the WP REST API por
Using the WP REST APIUsing the WP REST API
Using the WP REST APIJonathan Bossenger
95 visualizações9 slides
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 visualizações36 slides
Introduction to PHP.pptx por
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptxMarianJRuben
16 visualizações27 slides
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 visualizações38 slides

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 visualizações
Using the WP REST API por Jonathan Bossenger
Using the WP REST APIUsing the WP REST API
Using the WP REST API
Jonathan Bossenger95 visualizações
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 visualizações
Introduction to PHP.pptx por MarianJRuben
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptx
MarianJRuben16 visualizações
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 visualizações
Common WordPress APIs - Options API por Jonathan Bossenger
Common WordPress APIs - Options APICommon WordPress APIs - Options API
Common WordPress APIs - Options API
Jonathan Bossenger48 visualizações
Common WordPress APIs_ Settings API por Jonathan Bossenger
Common WordPress APIs_ Settings APICommon WordPress APIs_ Settings API
Common WordPress APIs_ Settings API
Jonathan Bossenger52 visualizações
Common WordPress APIs - Dashboard Widgets por Jonathan Bossenger
Common WordPress APIs - Dashboard WidgetsCommon WordPress APIs - Dashboard Widgets
Common WordPress APIs - Dashboard Widgets
Jonathan Bossenger99 visualizações
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 visualizações
Getting Started with ChatGPT.pdf por Manish Chopra
Getting Started with ChatGPT.pdfGetting Started with ChatGPT.pdf
Getting Started with ChatGPT.pdf
Manish Chopra646 visualizações
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 visualizações
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 visualizações
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 visualizações
Php intro por sana mateen
Php introPhp intro
Php intro
sana mateen975 visualizações
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 visualizações
WEBINAR PROFENAA NEYVEI (1).pptx por ssuserd83455
WEBINAR PROFENAA NEYVEI (1).pptxWEBINAR PROFENAA NEYVEI (1).pptx
WEBINAR PROFENAA NEYVEI (1).pptx
ssuserd834552 visualizações
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 visualizações
Intro to WordPress Plugins por zamoose
Intro to WordPress PluginsIntro to WordPress Plugins
Intro to WordPress Plugins
zamoose2.6K visualizações

Mais 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 visualizações9 slides
The WordPress Create Block tool por
The WordPress Create Block toolThe WordPress Create Block tool
The WordPress Create Block toolJonathan Bossenger
73 visualizações10 slides
PHP compatibility testing with PHPCompatibilityWP por
PHP compatibility testing with PHPCompatibilityWPPHP compatibility testing with PHPCompatibilityWP
PHP compatibility testing with PHPCompatibilityWPJonathan Bossenger
43 visualizações10 slides
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 visualizações9 slides
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 visualizações4 slides
Common WordPress APIs_ Global Variables por
Common WordPress APIs_ Global VariablesCommon WordPress APIs_ Global Variables
Common WordPress APIs_ Global VariablesJonathan Bossenger
36 visualizações10 slides

Mais 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 visualizações
The WordPress Create Block tool por Jonathan Bossenger
The WordPress Create Block toolThe WordPress Create Block tool
The WordPress Create Block tool
Jonathan Bossenger73 visualizações
PHP compatibility testing with PHPCompatibilityWP por Jonathan Bossenger
PHP compatibility testing with PHPCompatibilityWPPHP compatibility testing with PHPCompatibilityWP
PHP compatibility testing with PHPCompatibilityWP
Jonathan Bossenger43 visualizações
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 visualizações
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 visualizações
Common WordPress APIs_ Global Variables por Jonathan Bossenger
Common WordPress APIs_ Global VariablesCommon WordPress APIs_ Global Variables
Common WordPress APIs_ Global Variables
Jonathan Bossenger36 visualizações
Common WordPress APIs_ Internationalization por Jonathan Bossenger
Common WordPress APIs_ InternationalizationCommon WordPress APIs_ Internationalization
Common WordPress APIs_ Internationalization
Jonathan Bossenger21 visualizações
Testing WordPress 6.3 - Developer edition por Jonathan Bossenger
Testing WordPress 6.3 - Developer editionTesting WordPress 6.3 - Developer edition
Testing WordPress 6.3 - Developer edition
Jonathan Bossenger23 visualizações
Common WordPress APIs: Responsive Images por Jonathan Bossenger
Common WordPress APIs: Responsive ImagesCommon WordPress APIs: Responsive Images
Common WordPress APIs: Responsive Images
Jonathan Bossenger66 visualizações
Custom Tables in WordPress por Jonathan Bossenger
Custom Tables in WordPressCustom Tables in WordPress
Custom Tables in WordPress
Jonathan Bossenger80 visualizações
The WordPress Database por Jonathan Bossenger
The WordPress DatabaseThe WordPress Database
The WordPress Database
Jonathan Bossenger52 visualizações
WordPress Coding Standards por Jonathan Bossenger
WordPress Coding StandardsWordPress Coding Standards
WordPress Coding Standards
Jonathan Bossenger116 visualizações
Managing a WordPress Multisite Network por Jonathan Bossenger
Managing a WordPress Multisite NetworkManaging a WordPress Multisite Network
Managing a WordPress Multisite Network
Jonathan Bossenger12 visualizações
Debugging in WordPress por Jonathan Bossenger
Debugging in WordPressDebugging in WordPress
Debugging in WordPress
Jonathan Bossenger22 visualizações
Introduction to WordPress Multisite Networks por Jonathan Bossenger
Introduction to WordPress Multisite NetworksIntroduction to WordPress Multisite Networks
Introduction to WordPress Multisite Networks
Jonathan Bossenger15 visualizações
Developing for multisite por Jonathan Bossenger
Developing for multisiteDeveloping for multisite
Developing for multisite
Jonathan Bossenger107 visualizações
Custom Post Types and Capabilities.pptx por Jonathan Bossenger
Custom Post Types and Capabilities.pptxCustom Post Types and Capabilities.pptx
Custom Post Types and Capabilities.pptx
Jonathan Bossenger26 visualizações
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 visualizações
Let's code: WordPress multisite experiments por Jonathan Bossenger
Let's code: WordPress multisite experimentsLet's code: WordPress multisite experiments
Let's code: WordPress multisite experiments
Jonathan Bossenger14 visualizações
Creating a WordPress multisite network por Jonathan Bossenger
Creating a WordPress multisite networkCreating a WordPress multisite network
Creating a WordPress multisite network
Jonathan Bossenger49 visualizações

Último

Affiliate Marketing por
Affiliate MarketingAffiliate Marketing
Affiliate MarketingNavin Dhanuka
20 visualizações30 slides
Marketing and Community Building in Web3 por
Marketing and Community Building in Web3Marketing and Community Building in Web3
Marketing and Community Building in Web3Federico Ast
15 visualizações64 slides
hamro digital logics.pptx por
hamro digital logics.pptxhamro digital logics.pptx
hamro digital logics.pptxtupeshghimire
11 visualizações36 slides
Amine el bouzalimi por
Amine el bouzalimiAmine el bouzalimi
Amine el bouzalimiAmine EL BOUZALIMI
5 visualizações38 slides
ARNAB12.pdf por
ARNAB12.pdfARNAB12.pdf
ARNAB12.pdfArnabChakraborty499766
5 visualizações83 slides
How to think like a threat actor for Kubernetes.pptx por
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptxLibbySchulze1
7 visualizações33 slides

Último(10)

Affiliate Marketing por Navin Dhanuka
Affiliate MarketingAffiliate Marketing
Affiliate Marketing
Navin Dhanuka20 visualizações
Marketing and Community Building in Web3 por Federico Ast
Marketing and Community Building in Web3Marketing and Community Building in Web3
Marketing and Community Building in Web3
Federico Ast15 visualizações
hamro digital logics.pptx por tupeshghimire
hamro digital logics.pptxhamro digital logics.pptx
hamro digital logics.pptx
tupeshghimire11 visualizações
How to think like a threat actor for Kubernetes.pptx por LibbySchulze1
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptx
LibbySchulze17 visualizações
ATPMOUSE_융합2조.pptx por kts120898
ATPMOUSE_융합2조.pptxATPMOUSE_융합2조.pptx
ATPMOUSE_융합2조.pptx
kts12089835 visualizações
The Dark Web : Hidden Services por Anshu Singh
The Dark Web : Hidden ServicesThe Dark Web : Hidden Services
The Dark Web : Hidden Services
Anshu Singh19 visualizações
WITS Deck por W.I.T.S.
WITS DeckWITS Deck
WITS Deck
W.I.T.S.18 visualizações
cis5-Project-11a-Harry Lai por harrylai126
cis5-Project-11a-Harry Laicis5-Project-11a-Harry Lai
cis5-Project-11a-Harry Lai
harrylai1269 visualizações

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/