PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Dictionary/Reference.pm

https://github.com/DavidMascio/zeroclickinfo-spice
Perl | 18 lines | 12 code | 6 blank | 0 comment | 1 complexity | 0470f665d1ed7215a1ac979dd7c87aa3 MD5 | raw file
 1package DDG::Spice::Dictionary::Reference;
 2
 3use DDG::Spice;
 4
 5attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
 6            twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
 7
 8spice to => 'http://api.wordnik.com/v4/word.json/$1/definitions?includeRelated=true&includeTags=true&limit=3&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
 9spice proxy_cache_valid => '200 30d';
10
11triggers startend => "///***never trigger***///";
12
13handle query_lc => sub {
14    return $_ if $_;
15    return;
16};
17
181;