Skip to content

Latest commit

 

History

History
146 lines (96 loc) · 3.59 KB

LogsApi.md

File metadata and controls

146 lines (96 loc) · 3.59 KB

\LogsApi

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

Method HTTP request Description
Get Get /logs
GetEntityTypes Get /logs/entity-types

Get

LogPaginatedList Get(ctx).EntityType(entityType).EntityId(entityId).StartDate(startDate).EndDate(endDate).Page(page).Start(start).Size(size).Execute()

Example

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)
}

Path Parameters

Other Parameters

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

Return type

LogPaginatedList

Authorization

ApiKey

HTTP request headers

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

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

GetEntityTypes

[]LogEntityType GetEntityTypes(ctx).Execute()

Example

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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]LogEntityType

Authorization

ApiKey

HTTP request headers

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

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