All URIs are relative to http://localhost:8989
Method | HTTP request | Description |
---|---|---|
DeleteEpisodeFile | Delete /api/v3/episodefile/{id} | |
DeleteEpisodeFileBulk | Delete /api/v3/episodefile/bulk | |
GetEpisodeFileById | Get /api/v3/episodefile/{id} | |
ListEpisodeFile | Get /api/v3/episodefile | |
PutEpisodeFileBulk | Put /api/v3/episodefile/bulk | |
PutEpisodeFileEditor | Put /api/v3/episodefile/editor | |
UpdateEpisodeFile | Put /api/v3/episodefile/{id} |
DeleteEpisodeFile(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.EpisodeFileAPI.DeleteEpisodeFile(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EpisodeFileAPI.DeleteEpisodeFile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
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 apiDeleteEpisodeFileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteEpisodeFileBulk(ctx).EpisodeFileListResource(episodeFileListResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
episodeFileListResource := *sonarrClient.NewEpisodeFileListResource() // EpisodeFileListResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.EpisodeFileAPI.DeleteEpisodeFileBulk(context.Background()).EpisodeFileListResource(episodeFileListResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EpisodeFileAPI.DeleteEpisodeFileBulk``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiDeleteEpisodeFileBulkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
episodeFileListResource | EpisodeFileListResource |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EpisodeFileResource GetEpisodeFileById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.EpisodeFileAPI.GetEpisodeFileById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EpisodeFileAPI.GetEpisodeFileById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEpisodeFileById`: EpisodeFileResource
fmt.Fprintf(os.Stdout, "Response from `EpisodeFileAPI.GetEpisodeFileById`: %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 apiGetEpisodeFileByIdRequest 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]
[]EpisodeFileResource ListEpisodeFile(ctx).SeriesId(seriesId).EpisodeFileIds(episodeFileIds).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
seriesId := int32(56) // int32 | (optional)
episodeFileIds := []int32{int32(123)} // []int32 | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.EpisodeFileAPI.ListEpisodeFile(context.Background()).SeriesId(seriesId).EpisodeFileIds(episodeFileIds).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EpisodeFileAPI.ListEpisodeFile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListEpisodeFile`: []EpisodeFileResource
fmt.Fprintf(os.Stdout, "Response from `EpisodeFileAPI.ListEpisodeFile`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListEpisodeFileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
seriesId | int32 | ||
episodeFileIds | []int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PutEpisodeFileBulk(ctx).EpisodeFileResource(episodeFileResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
episodeFileResource := []sonarrClient.EpisodeFileResource{*sonarrClient.NewEpisodeFileResource()} // []EpisodeFileResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.EpisodeFileAPI.PutEpisodeFileBulk(context.Background()).EpisodeFileResource(episodeFileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EpisodeFileAPI.PutEpisodeFileBulk``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiPutEpisodeFileBulkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
episodeFileResource | []EpisodeFileResource |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PutEpisodeFileEditor(ctx).EpisodeFileListResource(episodeFileListResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
episodeFileListResource := *sonarrClient.NewEpisodeFileListResource() // EpisodeFileListResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.EpisodeFileAPI.PutEpisodeFileEditor(context.Background()).EpisodeFileListResource(episodeFileListResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EpisodeFileAPI.PutEpisodeFileEditor``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiPutEpisodeFileEditorRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
episodeFileListResource | EpisodeFileListResource |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EpisodeFileResource UpdateEpisodeFile(ctx, id).EpisodeFileResource(episodeFileResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := "id_example" // string |
episodeFileResource := *sonarrClient.NewEpisodeFileResource() // EpisodeFileResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.EpisodeFileAPI.UpdateEpisodeFile(context.Background(), id).EpisodeFileResource(episodeFileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EpisodeFileAPI.UpdateEpisodeFile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateEpisodeFile`: EpisodeFileResource
fmt.Fprintf(os.Stdout, "Response from `EpisodeFileAPI.UpdateEpisodeFile`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateEpisodeFileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
episodeFileResource | EpisodeFileResource | |
- Content-Type: application/json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]