Urban Dictionary Client to use within your Java applications
Supports:
- org.codehaus.jackson
- com.fasterxml.jackson
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.
Please submit your suggestion, we really appreciate it.