Skip to content

Latest commit

 

History

History
212 lines (133 loc) · 5.07 KB

File metadata and controls

212 lines (133 loc) · 5.07 KB

\DatabasesWHOISAPI

All URIs are relative to https://api.whoisfreaks.com

Method HTTP request Description
DbWhoisDaily Get /v3.3/download/dbupdate/daily/domains/whois WHOIS Database Daily
DbWhoisMonthly Get /v3.3/download/dbupdate/monthly/domains/whois WHOIS Database Monthly
DbWhoisWeekly Get /v3.3/download/dbupdate/weekly/domains/whois WHOIS Database Weekly

DbWhoisDaily

*os.File DbWhoisDaily(ctx).Date(date).Execute()

WHOIS Database Daily

Example

package main

import (
	"context"
	"fmt"
	"os"
    "time"
	openapiclient "github.com/WhoisFreaks/whoisfreaks-go"
)

func main() {
	date := time.Now() // string | yyyy-MM-dd; omit for latest (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.DatabasesWHOISAPI.DbWhoisDaily(context.Background()).Date(date).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesWHOISAPI.DbWhoisDaily``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbWhoisDaily`: *os.File
	fmt.Fprintf(os.Stdout, "Response from `DatabasesWHOISAPI.DbWhoisDaily`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDbWhoisDailyRequest struct via the builder pattern

Name Type Description Notes
date string yyyy-MM-dd; omit for latest

Return type

*os.File

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DbWhoisMonthly

*os.File DbWhoisMonthly(ctx).Date(date).Execute()

WHOIS Database Monthly

Example

package main

import (
	"context"
	"fmt"
	"os"
    "time"
	openapiclient "github.com/WhoisFreaks/whoisfreaks-go"
)

func main() {
	date := time.Now() // string | yyyy-MM-dd; omit for latest (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.DatabasesWHOISAPI.DbWhoisMonthly(context.Background()).Date(date).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesWHOISAPI.DbWhoisMonthly``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbWhoisMonthly`: *os.File
	fmt.Fprintf(os.Stdout, "Response from `DatabasesWHOISAPI.DbWhoisMonthly`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDbWhoisMonthlyRequest struct via the builder pattern

Name Type Description Notes
date string yyyy-MM-dd; omit for latest

Return type

*os.File

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DbWhoisWeekly

*os.File DbWhoisWeekly(ctx).Date(date).Execute()

WHOIS Database Weekly

Example

package main

import (
	"context"
	"fmt"
	"os"
    "time"
	openapiclient "github.com/WhoisFreaks/whoisfreaks-go"
)

func main() {
	date := time.Now() // string | yyyy-MM-dd; omit for latest (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.DatabasesWHOISAPI.DbWhoisWeekly(context.Background()).Date(date).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesWHOISAPI.DbWhoisWeekly``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbWhoisWeekly`: *os.File
	fmt.Fprintf(os.Stdout, "Response from `DatabasesWHOISAPI.DbWhoisWeekly`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDbWhoisWeeklyRequest struct via the builder pattern

Name Type Description Notes
date string yyyy-MM-dd; omit for latest

Return type

*os.File

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]