An open API service indexing awesome lists of open source software.

https://github.com/woodruffw/webservice-urbandictionary

A perl module for accessing UrbanDictionary's API.
https://github.com/woodruffw/webservice-urbandictionary

perl urban-dictionary

Last synced: 1 day ago
JSON representation

A perl module for accessing UrbanDictionary's API.

Awesome Lists containing this project

README

          

# NAME

WebService::UrbanDictionary - An OO interface to UrbanDictionary.com's JSON API.

# VERSION

version 2.015

# SYNOPSIS

use WebService::UrbanDictionary;

my $ud = WebService::UrbanDictionary->new;

my $results = $ud->request('perl');

for my $each (@{ $results->definitions }) {
printf "Definition: %s\n(by %s)\n\n", $each->definition, $each->author;
}

# DESCRIPTION

WebService::UrbanDictionary provides an object-oriented to UrbanDictionary's online JSON API.

## Methods

- `request(word)`

Requests data on the given word from UrbanDictionary's API.
Returns a [WebService::UrbanDictionary::Term](https://metacpan.org/pod/WebService::UrbanDictionary::Term) object.

# SEE ALSO

[WebService::UrbanDictionary::Term](https://metacpan.org/pod/WebService::UrbanDictionary::Term)

[WebService::UrbanDictionary::Term::Definition](https://metacpan.org/pod/WebService::UrbanDictionary::Term::Definition)

[WWW::Search::UrbanDictionary](https://metacpan.org/pod/WWW::Search::UrbanDictionary) - Module for accessing UrbanDictionary's (deprecated) SOAP API.

# AUTHOR

William Woodruff

# CONTRIBUTORS

- Gabriel Vieira
- Scott C
- William Woodruff

# COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by William Woodruff.

This is free software, licensed under:

The MIT (X11) License