PageRenderTime 63ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/csytan/zeroclickinfo-spice
Perl | 18 lines | 12 code | 6 blank | 0 comment | 1 complexity | 0470f665d1ed7215a1ac979dd7c87aa3 MD5 | raw file
  1. package DDG::Spice::Dictionary::Reference;
  2. use DDG::Spice;
  3. attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
  4. twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
  5. spice 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}}';
  6. spice proxy_cache_valid => '200 30d';
  7. triggers startend => "///***never trigger***///";
  8. handle query_lc => sub {
  9. return $_ if $_;
  10. return;
  11. };
  12. 1;