Wrapper for the quotable API
import { QuotableApi } from 'quotable-ts';
const api = new QuotableApi();
console.log(await api.getRandomQuote());
- getRandomQuote()
- getQuoteList()
- getQuoteById()
- searchQuote()
- getAuthorList()
- getAuthorById()
- searchAuthors()
- getAllTags()
const api = new QuotableApi();
console.log(await api.getRandomQuote({
author: 'Elbert Hubbard'
}));
To see what parameters you can give to the requests look at Documentation from lukePeavey