The one-liners RESTful API lets you fetch a random one liner for use in all sorts of applications.
The one-liners api is for any developer needing some random oneliner in their life or application.
GET: https://one-liners.herokuapp.com/api
Just do a GET request on the API URL.
GET: https://one-liners.herokuapp.com/api
curl -X GET \
'https://one-liners.herokuapp.com/api'
import requests
requests.get('https://one-liners.herokuapp.com/api')
var request = require('request');
let options = {
url: 'https://one-liners.herokuapp.com/api',
method: 'GET'
}
request(options, (err, response, body) => {
if(!err && response.statusCode == 200)
console.log(body)
});
visit the url: https://one-liners.herokuapp.com/api to get a joke. Press refresh button for more jokes.
MIT
Contact me here: [email protected]