chucknorris.io client-java

chucknorris.io api client library for java

License

License

Categories

Categories

Java Languages CLI User Interface
GroupId

GroupId

io.chucknorris
ArtifactId

ArtifactId

client-java
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

chucknorris.io client-java
chucknorris.io api client library for java
Project URL

Project URL

https://github.com/chucknorris-io/client-java
Source Code Management

Source Code Management

https://github.com/chucknorris-io/client-java

Download client-java

How to add to project

<!-- https://jarcasting.com/artifacts/io.chucknorris/client-java/ -->
<dependency>
    <groupId>io.chucknorris</groupId>
    <artifactId>client-java</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.chucknorris/client-java/
implementation 'io.chucknorris:client-java:1.0.1'
// https://jarcasting.com/artifacts/io.chucknorris/client-java/
implementation ("io.chucknorris:client-java:1.0.1")
'io.chucknorris:client-java:jar:1.0.1'
<dependency org="io.chucknorris" name="client-java" rev="1.0.1">
  <artifact name="client-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.chucknorris', module='client-java', version='1.0.1')
)
libraryDependencies += "io.chucknorris" % "client-java" % "1.0.1"
[io.chucknorris/client-java "1.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.json : json jar 20160810

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

Official chucknorris.io api client for Java

Maven Central Javadocs Apache 2.0 License

chucknorris.io is a free JSON API for hand curated Chuck Norris facts.

Chuck Norris facts are satirical factoids about martial artist and actor Chuck Norris that have become an Internet phenomenon and as a result have become widespread in popular culture. The 'facts' are normally absurd hyperbolic claims about Norris' toughness, attitude, virility, sophistication, and masculinity.

Chuck Norris facts have spread around the world, leading not only to translated versions, but also spawning localized versions mentioning country-specific advertisements and other Internet phenomena. Allusions are also sometimes made to his use of roundhouse kicks to perform seemingly any task, his large amount of body hair with specific regard to his beard, and his role in the action television series Walker, Texas Ranger.

Installation

Add the dependency to your project:

Maven:

<dependency>
  <groupId>io.chucknorris</groupId>
  <artifactId>client-java</artifactId>
  <version>1.0.1</version>
</dependency>

Gradle:

dependencies {
    compile "io.chucknorris:client-java:1.0.1"
}

Usage

// create the chuck norris client
ChuckNorrisClient client = new ChuckNorrisClient();

// get a random joke and print it
Joke joke = client.getRandomJoke();
System.out.println(joke.getValue());

// get a random joke with a specifc category
Joke joke = client.getRandomJoke("dev");

// search jokes with free-text
List<Joke> jokes = client.searchJokes("developer");

// get a list of available categories
List<String> categories = client.getCategories();

License

This software is released under version 2.0 of the Apache License.

io.chucknorris

Chuck Norris IO

chucknorris.io is a free JSON API for hand curated Chuck Norris facts.

Versions

Version
1.0.1
1.0.0