1.0.3 • Published 2 years ago
quotable-ts v1.0.3
quotable-ts
Wrapper for the quotable API
Import Library
import { QuotableApi } from 'quotable-ts';
Get Random Quote
const api = new QuotableApi();
console.log(await api.getRandomQuote());
All requests that can be performed
- getRandomQuote()
- getQuoteList()
- getQuoteById()
- searchQuote()
- getAuthorList()
- getAuthorById()
- searchAuthors()
- getAllTags()
Provide Parameter for Request
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