Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 900 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 900 Bytes

Jokes One API

A client for popular jokes.one jokes API. Jokes one offers plenty on the jokes area Joke of the day, Knock Knock Jokes, Blonde Jokes, Chuck Norris and more.

This repository aims to collect different clients (php, python, swift, java, javascript etc) for jokes one API.

PHP

Installation

Use Composer to install the library.

$ composer require orthosie/jokes-api

Basic usage

use Jokes\One\RestClient;

$jorc = new RestClient();

$jo = $jorc->joke_of_the_day();
$joc = $jorc->joke_of_the_day_categories();

print_r($jo);
print_r($joc);

print "Limit : " . $jorc->rate_limit_limit();
print "Remaining : " . $jorc->rate_limit_remaining();