Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 2.02 KB

File metadata and controls

77 lines (48 loc) · 2.02 KB

\DomainReputationAPI

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

Method HTTP request Description
DomainReputation Get /v1/domain/security Domain Reputation Lookup

DomainReputation

DomainReputationResponse DomainReputation(ctx).DomainName(domainName).Format(format).Execute()

Domain Reputation Lookup

Example

package main

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

func main() {
	domainName := "amazon.com" // string | The domain name to assess
	format := "format_example" // string |  (optional) (default to "json")

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.DomainReputationAPI.DomainReputation(context.Background()).DomainName(domainName).Format(format).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DomainReputationAPI.DomainReputation``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DomainReputation`: DomainReputationResponse
	fmt.Fprintf(os.Stdout, "Response from `DomainReputationAPI.DomainReputation`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
domainName string The domain name to assess
format string [default to "json"]

Return type

DomainReputationResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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