All URIs are relative to http://localhost:7878
Method | HTTP request | Description |
---|---|---|
GetMovieLookup | Get /api/v3/movie/lookup | |
GetMovieLookupById | Get /api/v3/movie/lookup/{id} | |
GetMovieLookupImdb | Get /api/v3/movie/lookup/imdb | |
GetMovieLookupTmdb | Get /api/v3/movie/lookup/tmdb |
GetMovieLookup(ctx).Term(term).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
term := "term_example" // string | (optional)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.MovieLookupAPI.GetMovieLookup(context.Background()).Term(term).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieLookupAPI.GetMovieLookup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetMovieLookupRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
term | string |
(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 GetMovieLookupById(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.MovieLookupAPI.GetMovieLookupById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieLookupAPI.GetMovieLookupById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMovieLookupById`: MovieResource
fmt.Fprintf(os.Stdout, "Response from `MovieLookupAPI.GetMovieLookupById`: %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 apiGetMovieLookupByIdRequest 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]
GetMovieLookupImdb(ctx).ImdbId(imdbId).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
imdbId := "imdbId_example" // string | (optional)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.MovieLookupAPI.GetMovieLookupImdb(context.Background()).ImdbId(imdbId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieLookupAPI.GetMovieLookupImdb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetMovieLookupImdbRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
imdbId | string |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetMovieLookupTmdb(ctx).TmdbId(tmdbId).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
tmdbId := int32(56) // int32 | (optional)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.MovieLookupAPI.GetMovieLookupTmdb(context.Background()).TmdbId(tmdbId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MovieLookupAPI.GetMovieLookupTmdb``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiGetMovieLookupTmdbRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
tmdbId | int32 |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]