PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Dictionary/Audio.pm

http://github.com/duckduckgo/zeroclickinfo-spice
Perl | 19 lines | 13 code | 5 blank | 1 comment | 1 complexity | 67221ee93f104f3626907dd80177c042 MD5 | raw file
 1package DDG::Spice::Dictionary::Audio;
 2# ABSTRACT: Get audio file for pronounciation of a word
 3
 4use strict;
 5use DDG::Spice;
 6
 7attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
 8            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
 9
10spice to => 'http://api.wordnik.com/v4/word.json/$1/audio?limit=10&useCanonical=false&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11triggers any => "///***never_trigger***///";
12spice proxy_cache_valid => "418 1d";
13
14handle remainder => sub {
15    return $_ if $_;
16    return;
17};
18
191;