PageRenderTime 57ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 17 lines | 12 code | 5 blank | 0 comment | 1 complexity | ce3d61e853b884a550036868bf0b825a MD5 | raw file
  1. package DDG::Spice::Dictionary::Audio;
  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/audio?limit=10&useCanonical=false&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
  6. triggers any => "///***never_trigger***///";
  7. spice proxy_cache_valid => "418 1d";
  8. handle remainder => sub {
  9. return $_ if $_;
  10. return;
  11. };
  12. 1;