Skip to content

Latest commit

 

History

History
73 lines (45 loc) · 1.71 KB

SeriesLookupAPI.md

File metadata and controls

73 lines (45 loc) · 1.71 KB

\SeriesLookupAPI

All URIs are relative to http://localhost:8989

Method HTTP request Description
ListSeriesLookup Get /api/v3/series/lookup

ListSeriesLookup

[]SeriesResource ListSeriesLookup(ctx).Term(term).Execute()

Example

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

Path Parameters

Other Parameters

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

Name Type Description Notes
term string

Return type

[]SeriesResource

Authorization

apikey, X-Api-Key

HTTP request headers

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

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