Demo built using react-wot-quotes
You can use a web browser to hit the serverless function here: https://sbardian.api.stdlib.com/wotQuotes@0.0.1/
URL parameter options:
- credit (string): Character responsible for quote
- limit (number): Number of quotes to return
- random (boolean): Return one random quote
https://sbardian.api.stdlib.com/wotQuotes@0.0.1/?credit=Thom&limit=2
https://sbardian.api.stdlib.com/wotQuotes@0.0.1/?random=true
fetch(
'https://sbardian.api.stdlib.com/wotQuotes@0.0.1/?credit=Thom&random=true',
)
.then(function(response) {
return response.json();
})
.then(function(myJson) {
console.log(JSON.stringify(myJson));
});