All URIs are relative to http://localhost:8686
Method | HTTP request | Description |
---|---|---|
GetLog | Get /api/v1/log |
LogResourcePagingResource GetLog(ctx).Page(page).PageSize(pageSize).SortKey(sortKey).SortDirection(sortDirection).Level(level).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
page := int32(56) // int32 | (optional) (default to 1)
pageSize := int32(56) // int32 | (optional) (default to 10)
sortKey := "sortKey_example" // string | (optional)
sortDirection := lidarrClient.SortDirection("default") // SortDirection | (optional)
level := "level_example" // string | (optional)
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.LogAPI.GetLog(context.Background()).Page(page).PageSize(pageSize).SortKey(sortKey).SortDirection(sortDirection).Level(level).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LogAPI.GetLog``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLog`: LogResourcePagingResource
fmt.Fprintf(os.Stdout, "Response from `LogAPI.GetLog`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetLogRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
page | int32 | [default to 1] | |
pageSize | int32 | [default to 10] | |
sortKey | string | ||
sortDirection | SortDirection | ||
level | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]