July 2018
Intermediate to advanced
324 pages
8h 14m
English
This API will return quote data as a JSON-formatted response. As we've already scheduled an event to store the quote record into a SQLite database, we will now return the quote based on today's date. When called repeatedly on the same day, it will return the same quote; but once the day has changed, then another quote would be needed. The following is a log snippet of the curl command execution:
$ curl https://quote-api.abdulwahid.info/daily{"quote": "May the Force be with you.", "author": "Star Wars", "category": "Movies"}
Read now
Unlock full access