PageRenderTime 60ms CodeModel.GetById 36ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/Dictionary/Pronunciation.pm

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