ZeroXLR
September 19, 2016, 2:46am
1
I just finished my Random Quotes Machine on CodePen . However, I want to serve it out of GitHub and there are two problems with this:
As per GitHub’s recent policy , I must serve over HTTPS ; thus, I must also get the quotes over HTTPS .
As GitHub is public, I would prefer not to expose any API keys in my code.
So, does anyone know a free quotes API that serves over HTTPS and does not require API keys?
2 Likes
ZeroXLR
September 20, 2016, 4:04am
3
Sweet. I was thinking of a similar thing where I might be forced to crawl the web to make a database of quotes! Glad to see someone already doing it.
It appears a bit unstable though, given that it might get pulled down anytime. Thanks though!
If you want complete control over the endpoint, another camper came up with an interesting hack utilising codepen as his own ‘database’:
Simpsons Quote Machine Just finished the random quote machine - thought I’d keep it lighthearted. I linked to images from Frinkiac - A great way to kill a few minutes/hours if your needing to.
Reading time: 1 mins 🕑
Likes: 6 ❤
1 Like
ZeroXLR
September 20, 2016, 4:15am
5
Interesting. That does suggest the obvious idea of using my own GItHub account as the database itself. That would solve all my problems but it might cause a problem for users: if my quotes JSON/JS file is huge, each user will have an initial time cost of downloading the entire file.
I could try dividing the quotes into multiple files ordered by author. That could mitigate this upfront cost.
Thanks JacksonBates for random-quote api
1 Like
Dear JacksonBates, THANK YOU SO MUCH !!!
Thanks for your work, JacksonBates!!!