Skip to content

jbug-brasil/urban-dictionary-client-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Urban Dictionary Java Client

Urban Dictionary Client to use within your Java applications

Supports:

  • org.codehaus.jackson
  • com.fasterxml.jackson

How to use it?

Add the following dependency on your pom.xml:

<!-- Urban Dictionary client -->
<dependency>
    <groupId>br.com.jbugbrasil</groupId>
    <artifactId>urban-dictionary-client-api</artifactId>
    <version>1.2.Final</version>
</dependency>

Then

UrbanDictionaryClient client = new UrbanDictionaryClientBuilder().term("lol").numberOfResults(1).showExample().build();
List<CustomTermResponse> response = client.execute();

Where:

  • term is the word that you want to search.
  • numberOfResults in it absence the default value is 1, you can add more results to your search by setting this parameter.
  • showExample by default it is false, if you set it the result will bring a exemple about the term usage.

Issues or suggestions?

Please submit your suggestion, we really appreciate it.

About

Urban Dictionary Client to use within your Java applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages