Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 1.8 KB

File metadata and controls

75 lines (47 loc) · 1.8 KB

\RenameBookAPI

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

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

ListRename

[]RenameBookResource ListRename(ctx).AuthorId(authorId).BookId(bookId).Execute()

Example

package main

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

func main() {
	authorId := int32(56) // int32 |  (optional)
	bookId := int32(56) // int32 |  (optional)

	configuration := readarrClient.NewConfiguration()
	apiClient := readarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.RenameBookAPI.ListRename(context.Background()).AuthorId(authorId).BookId(bookId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `RenameBookAPI.ListRename``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListRename`: []RenameBookResource
	fmt.Fprintf(os.Stdout, "Response from `RenameBookAPI.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
authorId int32
bookId int32

Return type

[]RenameBookResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

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