How do I use this?
# shell
$ curl https://johnmulapi.givensuman.com/api
// javascript
fetch('https://johnmulapi.givensuman.com/api')
.then(res => res.json())
.then(data => console.log(data);
# python
import requests
quote = (requests
.get('https://johnmulapi.givensuman.com/api')
.json())
print(quote)
☟
{"data":"I don't look older, I just look worse."}
Parameters
name | type | description |
---|---|---|
quantity | number | Number of quotes to return |
maxLength | number | Maximum length of quote(s) |
minLength | number | Minimum length of quote(s) |
# example usage
curl https://johnmulapi.givensuman.com/api?quantity=3&maxLength=50
Can I use this in a project?
Please do. Let me know how it goes.