All URIs are relative to https://api.whoisfreaks.com
| Method | HTTP request | Description |
|---|---|---|
| DbIpSecurity | Get /v3.3/download/snapshot/ip/security | IP Security Snapshot |
| DbIpSecurityStatus | Get /v3.3/status/snapshot/ip/security | IP Security Snapshot Status |
*os.File DbIpSecurity(ctx).Date(date).Execute()
IP Security Snapshot
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/WhoisFreaks/whoisfreaks-go"
)
func main() {
date := time.Now() // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabasesIPSecurityAPI.DbIpSecurity(context.Background()).Date(date).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabasesIPSecurityAPI.DbIpSecurity``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DbIpSecurity`: *os.File
fmt.Fprintf(os.Stdout, "Response from `DatabasesIPSecurityAPI.DbIpSecurity`: %v\n", resp)
}Other parameters are passed through a pointer to a apiDbIpSecurityRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| date | string |
- Content-Type: Not defined
- Accept: application/octet-stream, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SnapshotStatus DbIpSecurityStatus(ctx).Execute()
IP Security Snapshot Status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/WhoisFreaks/whoisfreaks-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DatabasesIPSecurityAPI.DbIpSecurityStatus(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DatabasesIPSecurityAPI.DbIpSecurityStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DbIpSecurityStatus`: SnapshotStatus
fmt.Fprintf(os.Stdout, "Response from `DatabasesIPSecurityAPI.DbIpSecurityStatus`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiDbIpSecurityStatusRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]