Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Whois: Update API endpoint to version 2.0 (#3527)
Browse files Browse the repository at this point in the history
  • Loading branch information
tossj authored and moollaza committed Aug 8, 2018
1 parent fde469b commit fb25c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DDG/Spice/Whois.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Text::Trim;
triggers any => "whois", "lookup", "domain", "is domain", "available", "is available", "register", "owner", "owner of", "who owns", "buy", "how to buy";

# API call details for Whois API (http://www.whoisxmlapi.com/)
spice to => 'http://www.whoisxmlapi.com/whoisserver/WhoisService?domainName=$1&outputFormat=JSON&callback={{callback}}&username={{ENV{DDG_SPICE_WHOIS_USERNAME}}}&password={{ENV{DDG_SPICE_WHOIS_PASSWORD}}}';
spice to => 'https://www.whoisxmlapi.com/whoisserver/WhoisService?domainName=$1&outputFormat=JSON&callback={{callback}}&apiKey={{ENV{DDG_SPICE_WHOIS_APIKEY}}}';

handle remainder_lc => sub {

Expand Down

0 comments on commit fb25c5e

Please sign in to comment.