Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 2.05 KB

File metadata and controls

81 lines (52 loc) · 2.05 KB

\SSLAPI

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

Method HTTP request Description
SslLookup Get /v1.0/ssl/live SSL Certificate Lookup

SslLookup

SslResponse SslLookup(ctx).DomainName(domainName).Chain(chain).SslRaw(sslRaw).Format(format).Execute()

SSL Certificate Lookup

Example

package main

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

func main() {
	domainName := "domainName_example" // string | 
	chain := true // bool |  (optional) (default to false)
	sslRaw := true // bool |  (optional) (default to false)
	format := "format_example" // string |  (optional) (default to "json")

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

Path Parameters

Other Parameters

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

Name Type Description Notes
domainName string
chain bool [default to false]
sslRaw bool [default to false]
format string [default to "json"]

Return type

SslResponse

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]