011 - How I Learned to Call My First API

26 Apr, 2017

I’ve just completed my first project where I call an API to randomly generate an inspiring quote, and this episode is all about how I did it.

One of the Free Code Camp projects that must be completed while learning JavaScript is to build a random quote generator by calling an external API, and including a button that lets people tweet the randomly generated quote. It was a great project and not as hard as I thought it would be!

Before getting started though, I spent a lot of time procrastinating. Part of that led me to the Dev Tips YouTube channel (and in particular this video), which was the inspiration behind my quote machine’s video background.

Here are the other resources mentioned in the episode:

My main takeaways / things to remember from this exercise were:

And finally, you can see the final outcome of my random quote machine on CodePen.

Thoughts on this episode? Leave a comment below or tweet me @startovercoder.