All URIs are relative to http://localhost:8787
| Method | HTTP request | Description |
|---|---|---|
| CreateBookshelf | Post /api/v1/bookshelf |
CreateBookshelf(ctx).BookshelfResource(bookshelfResource).Execute()
package main
import (
"context"
"fmt"
"os"
readarrClient "github.com/devopsarr/readarr-go/readarr"
)
func main() {
bookshelfResource := *readarrClient.NewBookshelfResource() // BookshelfResource | (optional)
configuration := readarrClient.NewConfiguration()
apiClient := readarrClient.NewAPIClient(configuration)
r, err := apiClient.BookshelfAPI.CreateBookshelf(context.Background()).BookshelfResource(bookshelfResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BookshelfAPI.CreateBookshelf``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiCreateBookshelfRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| bookshelfResource | BookshelfResource |
(empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]