Skip to content

Latest commit

 

History

History
212 lines (133 loc) · 4.95 KB

File metadata and controls

212 lines (133 loc) · 4.95 KB

\DatabasesDNSAPI

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

Method HTTP request Description
DbDnsDaily Get /v3.2/download/dbupdate/daily/dns DNS Database Daily
DbDnsMonthly Get /v3.2/download/dbupdate/monthly/dns DNS Database Monthly
DbDnsWeekly Get /v3.2/download/dbupdate/weekly/dns DNS Database Weekly

DbDnsDaily

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

DNS 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.DatabasesDNSAPI.DbDnsDaily(context.Background()).Date(date).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesDNSAPI.DbDnsDaily``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbDnsDaily`: *os.File
	fmt.Fprintf(os.Stdout, "Response from `DatabasesDNSAPI.DbDnsDaily`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDbDnsDailyRequest 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]

DbDnsMonthly

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

DNS 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.DatabasesDNSAPI.DbDnsMonthly(context.Background()).Date(date).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesDNSAPI.DbDnsMonthly``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbDnsMonthly`: *os.File
	fmt.Fprintf(os.Stdout, "Response from `DatabasesDNSAPI.DbDnsMonthly`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDbDnsMonthlyRequest 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]

DbDnsWeekly

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

DNS 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.DatabasesDNSAPI.DbDnsWeekly(context.Background()).Date(date).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DatabasesDNSAPI.DbDnsWeekly``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DbDnsWeekly`: *os.File
	fmt.Fprintf(os.Stdout, "Response from `DatabasesDNSAPI.DbDnsWeekly`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiDbDnsWeeklyRequest 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]