Skip to content

Latest commit

 

History

History
78 lines (48 loc) · 1.87 KB

MediaCoverAPI.md

File metadata and controls

78 lines (48 loc) · 1.87 KB

\MediaCoverAPI

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

Method HTTP request Description
GetMediaCoverByFilename Get /api/v3/mediacover/{seriesId}/{filename}

GetMediaCoverByFilename

GetMediaCoverByFilename(ctx, seriesId, filename).Execute()

Example

package main

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

func main() {
	seriesId := int32(56) // int32 | 
	filename := "filename_example" // string | 

	configuration := sonarrClient.NewConfiguration()
	apiClient := sonarrClient.NewAPIClient(configuration)
	r, err := apiClient.MediaCoverAPI.GetMediaCoverByFilename(context.Background(), seriesId, filename).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MediaCoverAPI.GetMediaCoverByFilename``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
seriesId int32
filename string

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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