All URIs are relative to http://localhost:8989
Method | HTTP request | Description |
---|---|---|
GetFeedV3CalendarSonarrIcs | Get /feed/v3/calendar/sonarr.ics |
GetFeedV3CalendarSonarrIcs(ctx).PastDays(pastDays).FutureDays(futureDays).Tags(tags).Unmonitored(unmonitored).PremieresOnly(premieresOnly).AsAllDay(asAllDay).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
pastDays := int32(56) // int32 | (optional) (default to 7)
futureDays := int32(56) // int32 | (optional) (default to 28)
tags := "tags_example" // string | (optional) (default to "")
unmonitored := true // bool | (optional) (default to false)
premieresOnly := true // bool | (optional) (default to false)
asAllDay := true // bool | (optional) (default to false)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.CalendarFeedAPI.GetFeedV3CalendarSonarrIcs(context.Background()).PastDays(pastDays).FutureDays(futureDays).Tags(tags).Unmonitored(unmonitored).PremieresOnly(premieresOnly).AsAllDay(asAllDay).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CalendarFeedAPI.GetFeedV3CalendarSonarrIcs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetFeedV3CalendarSonarrIcsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
pastDays | int32 | [default to 7] | |
futureDays | int32 | [default to 28] | |
tags | string | [default to ""] | |
unmonitored | bool | [default to false] | |
premieresOnly | bool | [default to false] | |
asAllDay | bool | [default to false] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]