quotable-ts
v1.0.3
Published
Wrapper for the quotable api by lukePeavey
Downloads
0
Readme
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