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