Web Design II

Lecture 10: Going Deeper on APIs

This week we will look at how and why we would use callbacks to manage data queries made to an API. Related to this, we will briefly look at error handling.

In Class Assignment

Locate an external API, and get that API to load. Use a callback to then perform an action once the data has loaded

Home Work

For an assignment due next week, locate an external API that required an access token. Using their documentation, connect to their API, and get their Hello World Example to work.


Suggested Reading:

  • Chapter 9 in Javascript and Jquery
  • Chapter 10 in Javascript and Jquery

Here is the code from this week's lecture:

Here are some various resources to support the concepts covered in this week's lecture:

If our artists are not versed in technology, who will imagine what we can become, who will ask what we should not be?