All URIs are relative to http://localhost:7878
| Method | HTTP request | Description |
|---|---|---|
| CreateMovie | Post /api/v3/movie | |
| DeleteMovie | Delete /api/v3/movie/{id} | |
| GetMovieById | Get /api/v3/movie/{id} | |
| ListMovie | Get /api/v3/movie | |
| UpdateMovie | Put /api/v3/movie/{id} |
MovieResource CreateMovie(ctx).MovieResource(movieResource).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
movieResource := *whisparrClient.NewMovieResource() // MovieResource | (optional)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
resp, r, err := apiClient.MovieAPI.CreateMovie(context.Background()).MovieResource(movieResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieAPI.CreateMovie``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateMovie`: MovieResource
fmt.Fprintf(os.Stdout, "Response from `MovieAPI.CreateMovie`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateMovieRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| movieResource | MovieResource |
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteMovie(ctx, id).DeleteFiles(deleteFiles).AddImportExclusion(addImportExclusion).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
id := int32(56) // int32 |
deleteFiles := true // bool | (optional) (default to false)
addImportExclusion := true // bool | (optional) (default to false)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.MovieAPI.DeleteMovie(context.Background(), id).DeleteFiles(deleteFiles).AddImportExclusion(addImportExclusion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieAPI.DeleteMovie``: %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 apiDeleteMovieRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
deleteFiles | bool | | [default to false] addImportExclusion | 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]
MovieResource GetMovieById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
id := int32(56) // int32 |
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
resp, r, err := apiClient.MovieAPI.GetMovieById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieAPI.GetMovieById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMovieById`: MovieResource
fmt.Fprintf(os.Stdout, "Response from `MovieAPI.GetMovieById`: %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 apiGetMovieByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- 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]
[]MovieResource ListMovie(ctx).TmdbId(tmdbId).ExcludeLocalCovers(excludeLocalCovers).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
tmdbId := int32(56) // int32 | (optional)
excludeLocalCovers := true // bool | (optional) (default to false)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
resp, r, err := apiClient.MovieAPI.ListMovie(context.Background()).TmdbId(tmdbId).ExcludeLocalCovers(excludeLocalCovers).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieAPI.ListMovie``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListMovie`: []MovieResource
fmt.Fprintf(os.Stdout, "Response from `MovieAPI.ListMovie`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListMovieRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| tmdbId | int32 | ||
| excludeLocalCovers | 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]
MovieResource UpdateMovie(ctx, id).MoveFiles(moveFiles).MovieResource(movieResource).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
id := "id_example" // string |
moveFiles := true // bool | (optional) (default to false)
movieResource := *whisparrClient.NewMovieResource() // MovieResource | (optional)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
resp, r, err := apiClient.MovieAPI.UpdateMovie(context.Background(), id).MoveFiles(moveFiles).MovieResource(movieResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieAPI.UpdateMovie``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateMovie`: MovieResource
fmt.Fprintf(os.Stdout, "Response from `MovieAPI.UpdateMovie`: %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 apiUpdateMovieRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
moveFiles | bool | | [default to false] movieResource | MovieResource | |
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]