All URIs are relative to http://localhost:8686
| Method | HTTP request | Description |
|---|---|---|
| ListSearch | Get /api/v1/search |
[]SearchResource ListSearch(ctx).Term(term).Execute()
package main
import (
"context"
"fmt"
"os"
lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)
func main() {
term := "term_example" // string | (optional)
configuration := lidarrClient.NewConfiguration()
apiClient := lidarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.SearchAPI.ListSearch(context.Background()).Term(term).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.ListSearch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListSearch`: []SearchResource
fmt.Fprintf(os.Stdout, "Response from `SearchAPI.ListSearch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListSearchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| term | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]