PageRenderTime 49ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Tumblr.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 22 lines | 16 code | 6 blank | 0 comment | 1 complexity | 80e10c30663e62cd26bb01e80bca8cb8 MD5 | raw file
  1. package DDG::Spice::Tumblr;
  2. use DDG::Spice;
  3. spice to => 'http://api.tumblr.com/v2/tagged?tag=$1&feature_type=popular&api_key={{ENV{DDG_SPICE_TUMBLR_APIKEY}}}&callback={{callback}}';
  4. primary_example_queries "tumblr flowers";
  5. description "Tumblr pictures";
  6. name "Tumblr";
  7. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Tumblr.pm";
  8. topics "everyday", "social";
  9. category "entertainment";
  10. attribution github => ['https://github.com/nilnilnil','Caine Tighe'],
  11. twitter => ['http://twitter.com/__nil','__nil'];
  12. triggers any => "tumblr";
  13. handle remainder => sub {
  14. return $_ if $_;
  15. };
  16. 'im a little teapot';