Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 990 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 990 Bytes

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.