From 1beeb42d2c60c5159bfe6fe521171b69a3581d63 Mon Sep 17 00:00:00 2001 From: whoisxmlapi Date: Wed, 26 May 2021 12:10:07 +0300 Subject: [PATCH] - Updated auth mechanics - Updated links --- README.md | 10 +++++----- ruby/bulk_whois_api_sample.rb | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 847426a..7af7fad 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # Using the Bulk Whois API web service -[Bulk Whois API](https://www.whoisxmlapi.com/bulk-whois-api.php) provides -[Whois](https://www.whoisxmlapi.com/whois-api-doc.php) records for a +[Bulk Whois API](https://whois.whoisxmlapi.com/bulk-api) provides +[Whois](https://whois.whoisxmlapi.com/documentation/making-requests) records for a list of Domains/IPs via a single REST API query. Here you'll find examples of querying the API implemented in multiple languages. You'll need a -[WhoisXmlApi account](https://www.whoisxmlapi.com/user/create.php) +[WhoisXmlApi account](https://whois.whoisxmlapi.com/api/signup) to authenticate. Please, refer to the -[Bulk Whois API User Guide](https://www.whoisxmlapi.com/bulk-whois-api-userguide.php) +[Bulk Whois API User Guide](https://whois.whoisxmlapi.com/bulk-api/documentation/making-requests) for info on input parameters, request/response formats, authentication -instructions and more. \ No newline at end of file +instructions and more. diff --git a/ruby/bulk_whois_api_sample.rb b/ruby/bulk_whois_api_sample.rb index 8b3be83..be4006b 100644 --- a/ruby/bulk_whois_api_sample.rb +++ b/ruby/bulk_whois_api_sample.rb @@ -18,8 +18,7 @@ def call_api(path, data) base_data = { - username: 'Your bulk whois api username', - password: 'Your bulk whois api password', + apiKey: 'Your bulk whois api key', outputFormat: 'json' } @@ -104,4 +103,4 @@ def http_post(url, data) download(id, csv_filename) -puts "Saved to #{csv_filename}" \ No newline at end of file +puts "Saved to #{csv_filename}"