All URIs are relative to http://localhost:5055/api/v1
| Method | HTTP request | Description |
|---|---|---|
| GetTvByTvId | Get /tv/{tvId} | Get TV details |
| GetTvRatings | Get /tv/{tvId}/ratings | Get TV ratings |
| GetTvRecommendations | Get /tv/{tvId}/recommendations | Get recommended TV series |
| GetTvSeasonBySeasonNumber | Get /tv/{tvId}/season/{seasonNumber} | Get season details and episode list |
| GetTvSimilar | Get /tv/{tvId}/similar | Get similar TV series |
TvDetails GetTvByTvId(ctx, tvId).Language(language).Execute()
Get TV details
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
tvId := float32(76479) // float32 |
language := "en" // string | (optional)
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.TvAPI.GetTvByTvId(context.Background(), tvId).Language(language).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TvAPI.GetTvByTvId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTvByTvId`: TvDetails
fmt.Fprintf(os.Stdout, "Response from `TvAPI.GetTvByTvId`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| tvId | float32 |
Other parameters are passed through a pointer to a apiGetTvByTvIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
language | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTvRatings2XXResponse GetTvRatings(ctx, tvId).Execute()
Get TV ratings
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
tvId := float32(76479) // float32 |
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.TvAPI.GetTvRatings(context.Background(), tvId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TvAPI.GetTvRatings``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTvRatings`: GetTvRatings2XXResponse
fmt.Fprintf(os.Stdout, "Response from `TvAPI.GetTvRatings`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| tvId | float32 |
Other parameters are passed through a pointer to a apiGetTvRatingsRequest 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]
GetDiscoverTv2XXResponse GetTvRecommendations(ctx, tvId).Page(page).Language(language).Execute()
Get recommended TV series
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
tvId := float32(76479) // float32 |
page := float32(1) // float32 | (optional) (default to 1)
language := "en" // string | (optional)
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.TvAPI.GetTvRecommendations(context.Background(), tvId).Page(page).Language(language).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TvAPI.GetTvRecommendations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTvRecommendations`: GetDiscoverTv2XXResponse
fmt.Fprintf(os.Stdout, "Response from `TvAPI.GetTvRecommendations`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| tvId | float32 |
Other parameters are passed through a pointer to a apiGetTvRecommendationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
page | float32 | | [default to 1] language | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Season GetTvSeasonBySeasonNumber(ctx, tvId, seasonNumber).Language(language).Execute()
Get season details and episode list
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
tvId := float32(76479) // float32 |
seasonNumber := float32(123456) // float32 |
language := "en" // string | (optional)
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.TvAPI.GetTvSeasonBySeasonNumber(context.Background(), tvId, seasonNumber).Language(language).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TvAPI.GetTvSeasonBySeasonNumber``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTvSeasonBySeasonNumber`: Season
fmt.Fprintf(os.Stdout, "Response from `TvAPI.GetTvSeasonBySeasonNumber`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| tvId | float32 | ||
| seasonNumber | float32 |
Other parameters are passed through a pointer to a apiGetTvSeasonBySeasonNumberRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
language | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDiscoverTv2XXResponse GetTvSimilar(ctx, tvId).Page(page).Language(language).Execute()
Get similar TV series
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
tvId := float32(76479) // float32 |
page := float32(1) // float32 | (optional) (default to 1)
language := "en" // string | (optional)
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.TvAPI.GetTvSimilar(context.Background(), tvId).Page(page).Language(language).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TvAPI.GetTvSimilar``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTvSimilar`: GetDiscoverTv2XXResponse
fmt.Fprintf(os.Stdout, "Response from `TvAPI.GetTvSimilar`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| tvId | float32 |
Other parameters are passed through a pointer to a apiGetTvSimilarRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
page | float32 | | [default to 1] language | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]