Video description
Explore using JavaScript XHR and fetch to connect to multiple web API endpoints retrieve JSON data and update HTML
About This Video
- You only need JavaScript, HTML and CSS experience.
- Examples and source code accessing over 7 different APIs
In Detail
Access several popular web APIs and retrieve response content for web applications. This course covers how to make AJAX requests using the XMLHttpRequest within JavaScript as well as fetch. JavaScript code knowledge is a prerequisite for the course. Scope of this course is focused on using JavaScript to connect to web APIs.
Examples and source code accessing over 7 different APIs
Course Covers: -
Explore what XHR is and how it worksHow to use JSON response dataConnect to Joke API to get new content and update it in your HTML pageJavaScript Objects and how it relates to JSON dataHow to iterate JSON data and output it on your HTMLUse JavaScript fetchError handling and responsesSetting up your own JSON endpoints to practice connecting to JSON contentES6 JavaScript fetch and short functionsLearn how to build an api that output country dataOnline resources and moreConnecting to web APIsPractice AJAXYou will be amazed at how easy it can be to do some much. Go ahead and hit that "take this course" button to start learning the how to use JavaScript to connect to web APIs Today. Taught by an instructor with over 20 years of web development experience. What are you waiting join now to start learning JavaScript API connections, you have nothing to lose. All the code and supporting files for this course are available at: https://github.com/PacktPublishing/API-for-Beginners-JavaScript-and-Getting-Started-with-APIs-and-AJAX
Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
Table of Contents
Chapter 1 : Introduction to connecting to API’s
API course introduction
00:04:13
web developer setup
00:04:53
JavaScript XHR request AJAX
00:04:58
Tweak and Adjust AJAX request
00:02:49
JSON methods Parse to JavaScript Objects
00:04:53
Quick Jokes API Click Button Get Joke
00:01:50
Code Tweak AJAX.
00:02:35
Getting Results AJAX
00:08:52
Error handling and updates
00:02:15
Introduction JavaScript fetch
00:04:23
Fetch array objects
00:02:16
fetch response methods
00:03:47
Fetch Error Handling
00:01:25
Fetch Adding Headers Params
00:02:13
Using myJSON endpoints
00:03:27
Short functions new JavaScript
00:02:19
More fun with APIs
00:05:55
Country Questions mini app
00:06:04
Country Application complete.
00:04:27
API Conclusion Lesson
00:01:41