All URIs are relative to https://api.basistheory.com
Method | HTTP request | Description |
---|---|---|
Get | Get /logs | |
GetEntityTypes | Get /logs/entity-types |
LogPaginatedList Get(ctx).EntityType(entityType).EntityId(entityId).StartDate(startDate).EndDate(endDate).Page(page).Start(start).Size(size).Execute()
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "./openapi"
)
func main() {
entityType := "entityType_example" // string | (optional)
entityId := "entityId_example" // string | (optional)
startDate := time.Now() // time.Time | (optional)
endDate := time.Now() // time.Time | (optional)
page := int32(56) // int32 | (optional)
start := "start_example" // string | (optional)
size := int32(56) // int32 | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LogsApi.Get(context.Background()).EntityType(entityType).EntityId(entityId).StartDate(startDate).EndDate(endDate).Page(page).Start(start).Size(size).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LogsApi.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: LogPaginatedList
fmt.Fprintf(os.Stdout, "Response from `LogsApi.Get`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
entityType | string | ||
entityId | string | ||
startDate | time.Time | ||
endDate | time.Time | ||
page | int32 | ||
start | string | ||
size | int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]LogEntityType GetEntityTypes(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LogsApi.GetEntityTypes(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LogsApi.GetEntityTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEntityTypes`: []LogEntityType
fmt.Fprintf(os.Stdout, "Response from `LogsApi.GetEntityTypes`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetEntityTypesRequest 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]