This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---Steve Martin Query--- | |
DDG::ZeroClickInfo::Spice { | |
Parents Moo::Object | |
Linear @ISA DDG::ZeroClickInfo::Spice, Moo::Object | |
public methods (8) : call, caller, call_path, call_type, has_call, has_call_type, is_cached, new | |
private methods (0) | |
internals: { | |
call "/js/spice/google_plus/steve%20martin", | |
caller "DDG::Spice::GooglePlus", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DDG::Spice::GooglePlus; | |
# ABSTRACT: Give the Google+ users matching the search item. | |
use DDG::Spice; | |
spice to => 'https://www.googleapis.com/plus/v1/people/$1?key={{ENV{DDG_SPICE_RANDWORD_APIKEY}}}&callback={{callback}}'; | |
triggers startend => 'google+'; | |
handle remainder => sub { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response": { | |
"status": { | |
"version": "4.2", | |
"code": 0, | |
"message": "Success" | |
}, | |
"artist": { | |
"name": "Weezer", | |
"biographies": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"total": 143, | |
"movies": [ | |
{ | |
"id": "771206971", | |
"title": "Madagascar 3: Europe's Most Wanted", | |
"year": 2012, | |
"mpaa_rating": "PG", | |
"runtime": 93, | |
"critics_consensus": "Dazzlingly colorful and frenetic, Madagascar 3 is silly enough for young kids, but boasts enough surprising smarts to engage parents along the way.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Query: similar to kanye west | |
You entered: similar to kanye west | |
DDG::ZeroClickInfo::Spice { | |
Parents Moo::Object | |
public methods (9) : call, call_data, caller, call_path, call_type, has_call, has_call_data, has_call_type, new | |
private methods (0) | |
internals: { | |
call "/js/spice/lastfm_artist/kanye%20west-similar", | |
caller "DDG::Spice::LastfmArtist", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Query: similar kanye west | |
You entered: similar kanye west | |
DDG::ZeroClickInfo::Spice { | |
Parents Moo::Object | |
public methods (9) : call, call_data, caller, call_path, call_type, has_call, has_call_data, has_call_type, new | |
private methods (0) | |
internals: { | |
call "/js/spice/lastfm_artist/kanye%20west/similar", | |
caller "DDG::Spice::LastfmArtist", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DDG::Spice::LastfmArtist; | |
# ABSTRACT: Search for musicians in Last.fm and get artists or bands similar to them. | |
use DDG::Spice; | |
spice to => 'http://ws.audioscrobbler.com/2.0/?format=json&method=artist.getinfo&artist=$1&api_key={{ENV{DDG_SPICE_LASTFM_APIKEY}}}&callback={{callback}}_$2'; | |
spice from => '(?:([^/]*)/([^/]*)|)'; | |
triggers any => 'similar', 'band', 'bands', 'musician', 'musicians', 'player', 'artist', 'artists', 'performer', 'performers', 'singer', 'singers'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Query: songs ben folds | |
You entered: songs ben folds | |
DDG::ZeroClickInfo::Spice { | |
Parents Moo::Object | |
public methods (9) : call, call_data, caller, call_path, call_type, has_call, has_call_data, has_call_type, new | |
private methods (0) | |
internals: { | |
call "/js/spice/lastfm_artist_tracks/ben%20folds", | |
caller "DDG::Spice::LastfmArtistTracks", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DDG::Goodie::Test; | |
use DDG::Goodie; | |
use Data::Dumper; | |
triggers any => "test"; | |
zci answer_type => "test"; | |
zci is_cached => 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Things that you need to look out for: | |
**Function:** Is the information shown in the instant answer better than using a regular organic link below? | |
**Relevancy:** Does the instant answer return relevant data from the source? | |
**Triggering:** Can you think of other ways of triggering the instant answer? (e.g. "calling codes for panama", "calling codes in panama", "panama calling codes") | |
**Adult:** Is the instant answer effectively not showing adult words or content by default (safe-search on)? There shouldn't be any adult imagery or profanity in instant answers. |
OlderNewer