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:8787

Method HTTP request Description
GetMediaCoverAuthorByFilename Get /api/v1/mediacover/author/{authorId}/{filename}
GetMediaCoverBookByFilename Get /api/v1/mediacover/book/{bookId}/{filename}

GetMediaCoverAuthorByFilename

GetMediaCoverAuthorByFilename(ctx, authorId, filename).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	readarrClient "github.com/devopsarr/readarr-go/readarr"
)

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

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

Other Parameters

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

GetMediaCoverBookByFilename

GetMediaCoverBookByFilename(ctx, bookId, filename).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	readarrClient "github.com/devopsarr/readarr-go/readarr"
)

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

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

Other Parameters

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