PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Twitter/Trends.pm

https://github.com/aembleton/zeroclickinfo-spice
Perl | 26 lines | 19 code | 6 blank | 1 comment | 0 complexity | 4a1e97ad733d69568ea6b06896257f3a MD5 | raw file
  1. package DDG::Spice::Twitter::Trends;
  2. # ABSTRACT: Give Twitter's trending topics for the specificed location.
  3. use DDG::Spice;
  4. primary_example_queries "trending";
  5. secondary_example_queries "trending tweets in japan";
  6. description "Trending tweets";
  7. name "Trends";
  8. icon_url "/i/twitter.com.ico";
  9. source "Twitter";
  10. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Twitter/Trends.pm";
  11. topics "everyday", "social";
  12. category "ids";
  13. attribution web => ['http://kevinschaul.com','Kevin Schaul'],
  14. email => ['kevin.schaul@gmail.com','Kevin Schaul'];
  15. triggers start => "///***never_trigger***///";
  16. spice to => 'http://api.twitter.com/1/trends/$1.json?callback={{callback}}';
  17. handle remainder => sub {
  18. return;
  19. };
  20. 1;