Skip to content

Latest commit

 

History

History
148 lines (92 loc) · 3.67 KB

File metadata and controls

148 lines (92 loc) · 3.67 KB

\MediaCoverAPI

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

Method HTTP request Description
GetMediaCoverAlbumByFilename Get /api/v1/mediacover/album/{albumId}/{filename}
GetMediaCoverArtistByFilename Get /api/v1/mediacover/artist/{artistId}/{filename}

GetMediaCoverAlbumByFilename

GetMediaCoverAlbumByFilename(ctx, albumId, filename).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)

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

	configuration := lidarrClient.NewConfiguration()
	apiClient := lidarrClient.NewAPIClient(configuration)
	r, err := apiClient.MediaCoverAPI.GetMediaCoverAlbumByFilename(context.Background(), albumId, filename).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MediaCoverAPI.GetMediaCoverAlbumByFilename``: %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.
albumId int32
filename string

Other Parameters

Other parameters are passed through a pointer to a apiGetMediaCoverAlbumByFilenameRequest 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]

GetMediaCoverArtistByFilename

GetMediaCoverArtistByFilename(ctx, artistId, filename).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)

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

	configuration := lidarrClient.NewConfiguration()
	apiClient := lidarrClient.NewAPIClient(configuration)
	r, err := apiClient.MediaCoverAPI.GetMediaCoverArtistByFilename(context.Background(), artistId, filename).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MediaCoverAPI.GetMediaCoverArtistByFilename``: %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.
artistId int32
filename string

Other Parameters

Other parameters are passed through a pointer to a apiGetMediaCoverArtistByFilenameRequest 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]