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(ctx, albumId, filename).Execute()
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)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| albumId | int32 | ||
| filename | string |
Other parameters are passed through a pointer to a apiGetMediaCoverAlbumByFilenameRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetMediaCoverArtistByFilename(ctx, artistId, filename).Execute()
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)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| artistId | int32 | ||
| filename | string |
Other parameters are passed through a pointer to a apiGetMediaCoverArtistByFilenameRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]