Chapter 12 Remote Data and APIs

Learn to Program, Third Edition — by Chris Pine (73 / 116)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Progress Checkpoint | TOC | Random Internet Jokes 👉

This is, in my humble opinion, the most exciting chapter of the book. This chapter is where your code touches the Internet, where your programs learn to talk to other programs, and where you get your first glimpse of what it’s like to build cool things using the data and tools that others have provided — this is your chance to play with APIs.

API is an acronym for Application Programming Interface, which roughly means “a way for programs to talk to each other.” In this chapter, you’ll learn how to use web APIs. A web API is the way in which a web server talks with other programs, usually using JSON.

Let’s start with writing a program that fetches jokes from the Internet.

👈 Progress Checkpoint | TOC | Random Internet Jokes 👉

Learn to Program, Third Edition by Chris Pine can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.