-
Notifications
You must be signed in to change notification settings - Fork 490
Use quotes' API #129
Comments
I thought about it. But, I wanted a completely offline app. That's why I went this way |
Yeah I understand. |
We're pulling quotes via the JSON files exposed by Github in a humble attempt to solve mubaris/motivate#129
I've added the JSON files from mubaris/motivate to a small hobby project website I've setup, based around JSON-formatted quotes. https://your-fortune.github.io/motivate If you inspect source, you can see that I'm sourcing the JSON files straight from github's raw content server, loading one JSON file randomly and selecting a random item from the list. The hash on the URL is updated with the file number and index so you can actually inspect various quotes. Note this isn't an API per-se, but just a Javascript based implementation that loads a random quote on page refresh (or clicking the button in the bottom right). I'm curating various other kinds of quotes on the site, mostly aggregated from various |
Hey @mubaris, nice app :)
Have you considered using any randomly generated quotes API? Here are some free options:
examples:
http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1
https://api.forismatic.com/api/1.0/?method=getQuote&format=jsonp&jsonp=parseQuote&lang=en
If you're in I could start implementation.
The text was updated successfully, but these errors were encountered: