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.
- Host: GitHub
- URL: https://github.com/woodruffw/webservice-urbandictionary
- Owner: woodruffw
- License: other
- Archived: true
- Created: 2014-07-18T03:58:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-28T19:58:49.000Z (over 10 years ago)
- Last Synced: 2025-10-04T18:55:25.439Z (8 days ago)
- Topics: perl, urban-dictionary
- Language: Perl
- Homepage: http://search.cpan.org/~woodruffw/WebService-UrbanDictionary/lib/WebService/UrbanDictionary.pm
- Size: 324 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.mkdn
- License: LICENSE
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