All URIs are relative to http://localhost:8787
| Method | HTTP request | Description |
|---|---|---|
| GetCalendarById | Get /api/v1/calendar/{id} | |
| ListCalendar | Get /api/v1/calendar |
BookResource GetCalendarById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
readarrClient "github.com/devopsarr/readarr-go/readarr"
)
func main() {
id := int32(56) // int32 |
configuration := readarrClient.NewConfiguration()
apiClient := readarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CalendarAPI.GetCalendarById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CalendarAPI.GetCalendarById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCalendarById`: BookResource
fmt.Fprintf(os.Stdout, "Response from `CalendarAPI.GetCalendarById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 |
Other parameters are passed through a pointer to a apiGetCalendarByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]BookResource ListCalendar(ctx).Start(start).End(end).Unmonitored(unmonitored).IncludeAuthor(includeAuthor).Execute()
package main
import (
"context"
"fmt"
"os"
"time"
readarrClient "github.com/devopsarr/readarr-go/readarr"
)
func main() {
start := time.Now() // time.Time | (optional)
end := time.Now() // time.Time | (optional)
unmonitored := true // bool | (optional) (default to false)
includeAuthor := true // bool | (optional) (default to false)
configuration := readarrClient.NewConfiguration()
apiClient := readarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CalendarAPI.ListCalendar(context.Background()).Start(start).End(end).Unmonitored(unmonitored).IncludeAuthor(includeAuthor).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CalendarAPI.ListCalendar``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCalendar`: []BookResource
fmt.Fprintf(os.Stdout, "Response from `CalendarAPI.ListCalendar`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListCalendarRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| start | time.Time | ||
| end | time.Time | ||
| unmonitored | bool | [default to false] | |
| includeAuthor | bool | [default to false] |
- 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]