Help with random quote generator project

Help with random quote generator project
0

#1

hi I am trying to make a random quote generator but I am having trouble with the api. Can someone please tell me how i can fix it. this is my project http://codepen.io/qwertytrewq/pen/mWXwrb.


#2

Have a look at your browser console, it gives the following error: GET http://quotes.rest/quote/random.json 401 (Unauthorized). For this API you need an API key (which seems to be paid…). So, I suggest using another API.


#3

This is the API I used:
http://api.forismatic.com/api/1.0/?method=getQuote&format=jsonp&lang=en&jsonp=?
It’s quick and the JSON is easy to understand.


#4

You don’t actually have to use an API of any kind for this project. You can just throw a bunch of quotes in an array and iterate through. You might as well, there are other challenges further down the list that DO require APIs.