Skip to content

Commit

Permalink
- Updated auth mechanics
Browse files Browse the repository at this point in the history
- Updated links
  • Loading branch information
whoisxmlapi committed May 26, 2021
1 parent 5e4b13c commit 1beeb42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
instructions and more.
5 changes: 2 additions & 3 deletions ruby/bulk_whois_api_sample.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down Expand Up @@ -104,4 +103,4 @@ def http_post(url, data)

download(id, csv_filename)

puts "Saved to #{csv_filename}"
puts "Saved to #{csv_filename}"

0 comments on commit 1beeb42

Please sign in to comment.