Random Quote Machine - API/AJAX help

Random Quote Machine - API/AJAX help
0

#1

Here’s my Random quote machine. I managed to get it working through filling an array with quotes but I would like to use an API. Does anyone have any good resources where I can learn more about AJAX? I’ve gone through the freeCodeCamp material and I still don’t feel I have a grasp on it


#2

Intro to Ajax and this series of videos were a great help for me. Also Intro to jQuery.


#3

Here are some threads about AJAX resources.


#4

Hey heenslice, I used https://market.mashape.com/andruxnet/random-famous-quotes in my Quote Machine.

You can use the documentation on the site and even create your own API.


#5

I would still read up on AJAX (the above links look great), but APIs usually publish some form of “how-to”. For example, I used Quotes on Design. Their API is described with examples here:

If you use this API, make note of the cache: false property in the example. You need to prevent your browser from caching responses, otherwise you won’t receive new random quotes.