All URIs are relative to http://localhost:8989
Method | HTTP request | Description |
---|---|---|
ListSeriesLookup | Get /api/v3/series/lookup |
[]SeriesResource ListSeriesLookup(ctx).Term(term).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
term := "term_example" // string | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.SeriesLookupAPI.ListSeriesLookup(context.Background()).Term(term).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SeriesLookupAPI.ListSeriesLookup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListSeriesLookup`: []SeriesResource
fmt.Fprintf(os.Stdout, "Response from `SeriesLookupAPI.ListSeriesLookup`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListSeriesLookupRequest 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]