
Develop api based applications from scratch using json data and request-response workflows, including a currency converter, language detector, and world clock.
See how an API acts as an interface, a middleman that simplifies tasks by accepting requests and returning data in usable formats.
Explain how an api acts as an interface between your app and another system, using a restaurant waiter as a data conduit.
Demonstrate how airlines APIs act as interfaces between travel sites and airline databases to provide flight search results and bookings.
This lecture clarifies that web services are APIs that use the internet, while APIs may not require network access, and introduces REST, SOAP, JSON, and XML formats.
Master the basics of http: request and response formats, the start line, headers, and body; learn methods (get, post, put, delete), resource paths, status codes, and content type.
Learn how http status codes signal server responses across 1xx to 5xx, including 200 ok, 404 not found, and common redirects such as 301 and 302.
Compare soap and rest: soap is a protocol using post with xml and wsdl, while rest is an architectural style using get, post, put, delete with json or xml.
Explore XML and JSON formats through endpoint examples, learning how each delivers data from an API and how to process both formats in a world clock app.
APIs shine when data updates quickly, is hard to obtain, or requires repeated computations, as with weather, stock, tweets before a date, and determining music gender via Spotify.
Build a real-time currency converter web app using a three currency converter API, with a numeric amount input, from and to currency dropdowns, and automatic updates.
Style a currency converter UI by applying fonts, centered headings, input borders, and border radius 10px, and prepare to contact the API for exchange rates and calculations in next lecture.
Develop a currency converter in an api-based app by wiring currencies and an amount input, using ajax to fetch exchange rates and display usd to inr by default.
Develop a currency converter app using an exchange rates API. Parse JSON data and compute USD to INR conversions by dividing rates, then display the result in a readable format.
Develop a language detector app using an API to identify text language, display the detected language (english, portuguese, spanish), and map language codes to names from the JSON response.
Implement a front-end workflow that uses jquery ajax to call an API on button click, sending a key and input, and displays the detected languages from the JSON response.
Explore building a language detector that fetches results via an api, maps detected language codes to names, and handles success and error cases in a jQuery Ajax workflow.
Develop a world clock app using two time zone APIs to list zones and fetch current times for a selected location, then display the formatted clock in the front end.
Fetch time zone data from the time zone list api and populate a data list. Display the current time for the selected time zone using the get time zone api.
Populate a time zone data list from API results, extract the last slash text, replace underscores with spaces, and show the chosen zone's time in the world clock.
Build the second part of the world clock by calling the timezone API to populate zones and display the selected zone's current time, processing the XML response into a clock.
Convert the string to a JavaScript date, use getTime in milliseconds, convert to seconds, and drive a clock with setInterval while formatting in 24-hour clock.
Build an API-driven world clock by fetching supported time zones with two APIs, handling errors for unsupported zones, and rendering a 12-hour clock with padded hours, minutes, and seconds.
APIs (Application Programming Interfaces) are gaining popularity nowadays among businesses in different industries. APIs allow us to create applications that access the features or data of an operating system or application. This course "APIs in Action: Build API-Based Applications" helps you understand the basics of API and also to make use of existing APIs to develop your own applications from scratch.
By completing this course, you will understand basic AJAX concepts, JSON and XML processing and also web application development. You will learn how to use XMLHttpRequest object in JavaScript as well as jQuery.
The applications you are going to develop as part of this course are
Currency Converter
Language Detector
World Clock