All URIs are relative to http://localhost:5055/api/v1
| Method | HTTP request | Description |
|---|---|---|
| CreateWatchlist | Post /watchlist | Add media to watchlist |
| DeleteWatchlist | Delete /watchlist/{tmdbId} | Delete watchlist item |
Watchlist CreateWatchlist(ctx).Watchlist(watchlist).Execute()
Add media to watchlist
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
watchlist := *seerrClient.NewWatchlist() // Watchlist |
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.WatchlistAPI.CreateWatchlist(context.Background()).Watchlist(watchlist).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WatchlistAPI.CreateWatchlist``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateWatchlist`: Watchlist
fmt.Fprintf(os.Stdout, "Response from `WatchlistAPI.CreateWatchlist`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateWatchlistRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| watchlist | Watchlist |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteWatchlist(ctx, tmdbId).MediaType(mediaType).Execute()
Delete watchlist item
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
tmdbId := "1" // string | tmdbId ID
mediaType := "mediaType_example" // string |
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
r, err := apiClient.WatchlistAPI.DeleteWatchlist(context.Background(), tmdbId).MediaType(mediaType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WatchlistAPI.DeleteWatchlist``: %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. | |
| tmdbId | string | tmdbId ID |
Other parameters are passed through a pointer to a apiDeleteWatchlistRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
mediaType | 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]