/lib/DDG/Spice/GooglePlus.pm

https://github.com/pardocz/zeroclickinfo-spice · Perl · 26 lines · 19 code · 6 blank · 1 comment · 1 complexity · 1fe5e4393598d97def1f6f081ebf39e2 MD5 · raw file

  1. package DDG::Spice::GooglePlus;
  2. # ABSTRACT: Search for Google+ users and return their bio.
  3. use DDG::Spice;
  4. primary_example_queries "google+ duckduckgo";
  5. description "Find Google+ users";
  6. name "GooglePlus";
  7. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/GooglePlus.pm";
  8. topics "everyday", "social";
  9. category "ids";
  10. attribution github => ['https://github.com/jagtalon','jagtalon'],
  11. twitter => ['http://twitter.com/juantalon','juantalon'];
  12. spice to => 'https://www.googleapis.com/plus/v1/people/?query=$1&key={{ENV{DDG_SPICE_GOOGLE_PLUS_APIKEY}}}&callback={{callback}}&maxResults=12';
  13. spice proxy_ssl_session_reuse => "off";
  14. my @triggers = share("triggers.txt")->slurp;
  15. triggers startend => @triggers;
  16. handle remainder => sub {
  17. return $_ if $_;
  18. return;
  19. };
  20. 1;