Querying external APIs with XML data using WordPress

Published: 20 December 2022
on channel: TechiePress
2,410
34

Welcome to part 4 of our series on querying external APIs with XML data using WordPress! In this video, we'll be learning how to use recommended and native WordPress methods like wp_remote_post() to make API requests.

We'll start off by discussing the requirements for this tutorial, and then we'll delve into XML and SOAP in WordPress. From there, we'll take a look at the WordPress HTTP Requests class and its various methods.

We'll also be using Postman to make API query requests, and then we'll move on to making an external WordPress API XML request. Along the way, we'll use error_log to debug in WordPress and learn how to get the WordPress API request response body.

Finally, we'll wrap up the video by converting an XML string to JSON in PHP and then converting that JSON string to a PHP array.

Thanks for watching!

VIDEO CHAPTERS
00:00 Intro & Requirements
01:52 XML & SOAP in WordPress
02:34 WordPress HTTP Requests Class & methods
04:57 Using Postman for API query requests
07:27 External WordPress API XML Request
12:24 Using error_log to debug in WordPress
14:31 Getting WordPress API request response body
15:17 Convert XML string to JSON in PHP
16:43 Convert JSON string to PHP array
17:43 Conclusion

Code sample: https://github.com/YTTechiePress/tech...

HOW TO SUPPORT THE CHANNEL
=============================================
Do you like what I am doing?
- Buy me a coffee through https://www.buymeacoffee.com/techiepress
- Give via PayPal: https://paypal.me/laurencebahiirwa
- Visit https://omukiguy.com/support-my-work/

I am social too:
Facebook:   / techiepress-100149655032583  
Twitter:   / omukiguy  
Blog & Newsletter: https://omukiguy.com
Github: https://github.com/yttechiepress
-------------------------------------------------------------------------------
LEARN MORE IN THE WELL CURATED PLAYLISTS BELOW
--------------------------------------------------------------------------------

Learn how to build a plugin from scratch:    • Plugins Vs Functions.php - Where shou...  

WooCommerce E-Commerce customizations
== Build Free Custom E-commerce Online Shop using WooCommerce -    • WooCommerce customizations - Free Wor...  

== Build Free Custom Theme for E-commerce Online Shop using WooCommerce -
   • Woocommerce Restaurant Shop - Custom ...  

====== Build Dynamic Websites with Elementor ======

== Learn the Elementor basics -    • Elementor Beginner Tutorials  

== Build a custom Elementor Widget from Scratch -    • Build Custom Elementor Widgets from s...  

====== How to use WordPress Gutenberg Block Editor ======

WordPress 5.4 Gutenberg Blocks Updates
==    • WordPress 5.4 Gutenberg Blocks Updates  

WordPress Gutenberg blocks for Designers
==    • WordPress Basics Training: Gutenberg ...  

Gutenberg WordPress Block Editor tutorials for beginners
==    • WordPress Basics Training: WordPress ...  

Custom WooCommerce Gateway Development from Scratch
==    • Build Custom WooCommerce Payment Gateway  

WordPress Custom REST API Namespaces, Endpoints and Examples from Scratch
==    • Create Custom WordPress REST API POST...  

====== WordPress Plugin Development from Scratch ======

Build Most Popular & Most Commented Post Plugin
==    • Build WordPress Most Popular & Most C...  

Build SMS Plugin with External WordPress API Integration using custom WordPress Databases
==    • Build SMS Plugin - External WordPress...  

WordPress External APIs Integration Plugin Development
==    • WordPress External APIs Integration P...  

Convert WordPress to mobile App in Headless WordPress
== Convert WordPress Sports Website into Mobile Application - https://www.youtube.com/playlist?list...

Make GraphQL API endpoints with WordPress Headless CMS WPGraphQL Plugin
==    • Make GraphQL API endpoints with WordP...  

Customize Your WordPress & ClassicPress
== Build Custom REST API Endpoints with WordPress or ClassicPress -    • Build Custom REST API Endpoints with ...  

Custom Dashboard Widgets
==    • Custom Dashboard Widgets WordPress & ...  

Build Custom Admin
==    • Custom Admin for WordPress or Classic...  

Learn Git
== Git tutorial for writers + software developers for beginners -    • Git tutorial for beginners - writers ...  


Watch video Querying external APIs with XML data using WordPress online without registration, duration hours minute second in high quality. This video was added by user TechiePress 20 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,41 once and liked it 3 people.