Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 1.84 KB

RenameEpisodeAPI.md

File metadata and controls

75 lines (47 loc) · 1.84 KB

\RenameEpisodeAPI

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

Method HTTP request Description
ListRename Get /api/v3/rename

ListRename

[]RenameEpisodeResource ListRename(ctx).SeriesId(seriesId).SeasonNumber(seasonNumber).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)

func main() {
	seriesId := int32(56) // int32 |  (optional)
	seasonNumber := int32(56) // int32 |  (optional)

	configuration := sonarrClient.NewConfiguration()
	apiClient := sonarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.RenameEpisodeAPI.ListRename(context.Background()).SeriesId(seriesId).SeasonNumber(seasonNumber).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `RenameEpisodeAPI.ListRename``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListRename`: []RenameEpisodeResource
	fmt.Fprintf(os.Stdout, "Response from `RenameEpisodeAPI.ListRename`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
seriesId int32
seasonNumber int32

Return type

[]RenameEpisodeResource

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]