All URIs are relative to http://localhost:8989
| Method | HTTP request | Description |
|---|---|---|
| CreateRelease | Post /api/v3/release | |
| ListRelease | Get /api/v3/release |
CreateRelease(ctx).ReleaseResource(releaseResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
releaseResource := *sonarrClient.NewReleaseResource() // ReleaseResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.ReleaseAPI.CreateRelease(context.Background()).ReleaseResource(releaseResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReleaseAPI.CreateRelease``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiCreateReleaseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| releaseResource | ReleaseResource |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ReleaseResource ListRelease(ctx).SeriesId(seriesId).EpisodeId(episodeId).SeasonNumber(seasonNumber).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
seriesId := int32(56) // int32 | (optional)
episodeId := int32(56) // int32 | (optional)
seasonNumber := int32(56) // int32 | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ReleaseAPI.ListRelease(context.Background()).SeriesId(seriesId).EpisodeId(episodeId).SeasonNumber(seasonNumber).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ReleaseAPI.ListRelease``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListRelease`: []ReleaseResource
fmt.Fprintf(os.Stdout, "Response from `ReleaseAPI.ListRelease`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListReleaseRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| seriesId | int32 | ||
| episodeId | int32 | ||
| seasonNumber | int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]