All URIs are relative to http://localhost:5055/api/v1
| Method | HTTP request | Description |
|---|---|---|
| CreateBlacklist | Post /blacklist | Add media to blocklist |
| CreateBlocklist | Post /blocklist | Add media to blocklist |
| CreateBlocklistCollectionByCollectionId | Post /blocklist/collection/{collectionId} | Add collection to blocklist |
| DeleteBlacklist | Delete /blacklist/{tmdbId} | Remove media from blocklist |
| DeleteBlocklist | Delete /blocklist/{tmdbId} | Remove media from blocklist |
| DeleteBlocklistCollection | Delete /blocklist/collection/{collectionId} | Remove collection from blocklist |
| GetBlacklist | Get /blacklist | Returns blocklisted items |
| GetBlacklistByTmdbId | Get /blacklist/{tmdbId} | Get media from blocklist |
| GetBlocklist | Get /blocklist | Returns blocklisted items |
| GetBlocklistByTmdbId | Get /blocklist/{tmdbId} | Get media from blocklist |
CreateBlacklist(ctx).Blocklist(blocklist).Execute()
Add media to blocklist
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
blocklist := *seerrClient.NewBlocklist() // Blocklist |
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
r, err := apiClient.BlocklistAPI.CreateBlacklist(context.Background()).Blocklist(blocklist).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.CreateBlacklist``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiCreateBlacklistRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| blocklist | Blocklist |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateBlocklist(ctx).Blocklist(blocklist).Execute()
Add media to blocklist
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
blocklist := *seerrClient.NewBlocklist() // Blocklist |
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
r, err := apiClient.BlocklistAPI.CreateBlocklist(context.Background()).Blocklist(blocklist).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.CreateBlocklist``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiCreateBlocklistRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| blocklist | Blocklist |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateBlocklistCollectionByCollectionId(ctx, collectionId).Body(body).Execute()
Add collection to blocklist
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
collectionId := "1424991" // string | Collection ID
body := map[string]interface{}{ ... } // map[string]interface{} | (optional)
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
r, err := apiClient.BlocklistAPI.CreateBlocklistCollectionByCollectionId(context.Background(), collectionId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.CreateBlocklistCollectionByCollectionId``: %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. | |
| collectionId | string | Collection ID |
Other parameters are passed through a pointer to a apiCreateBlocklistCollectionByCollectionIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
body | map[string]interface{} | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteBlacklist(ctx, tmdbId).MediaType(mediaType).Execute()
Remove media from blocklist
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.BlocklistAPI.DeleteBlacklist(context.Background(), tmdbId).MediaType(mediaType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.DeleteBlacklist``: %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 apiDeleteBlacklistRequest 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]
DeleteBlocklist(ctx, tmdbId).MediaType(mediaType).Execute()
Remove media from blocklist
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.BlocklistAPI.DeleteBlocklist(context.Background(), tmdbId).MediaType(mediaType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.DeleteBlocklist``: %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 apiDeleteBlocklistRequest 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]
DeleteBlocklistCollection(ctx, collectionId).Execute()
Remove collection from blocklist
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
collectionId := "1424991" // string | Collection ID
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
r, err := apiClient.BlocklistAPI.DeleteBlocklistCollection(context.Background(), collectionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.DeleteBlocklistCollection``: %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. | |
| collectionId | string | Collection ID |
Other parameters are passed through a pointer to a apiDeleteBlocklistCollectionRequest 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]
GetBlocklist2XXResponse GetBlacklist(ctx).Take(take).Skip(skip).Search(search).Filter(filter).Execute()
Returns blocklisted items
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
take := float32(25) // float32 | (optional)
skip := float32(0) // float32 | (optional)
search := "dune" // string | (optional)
filter := "filter_example" // string | (optional) (default to "manual")
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.BlocklistAPI.GetBlacklist(context.Background()).Take(take).Skip(skip).Search(search).Filter(filter).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.GetBlacklist``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBlacklist`: GetBlocklist2XXResponse
fmt.Fprintf(os.Stdout, "Response from `BlocklistAPI.GetBlacklist`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetBlacklistRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| take | float32 | ||
| skip | float32 | ||
| search | string | ||
| filter | string | [default to "manual"] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBlacklistByTmdbId(ctx, tmdbId).MediaType(mediaType).Execute()
Get media from blocklist
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.BlocklistAPI.GetBlacklistByTmdbId(context.Background(), tmdbId).MediaType(mediaType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.GetBlacklistByTmdbId``: %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 apiGetBlacklistByTmdbIdRequest 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]
GetBlocklist2XXResponse GetBlocklist(ctx).Take(take).Skip(skip).Search(search).Filter(filter).Execute()
Returns blocklisted items
package main
import (
"context"
"fmt"
"os"
seerrClient "github.com/devopsarr/seerr-go/seerr"
)
func main() {
take := float32(25) // float32 | (optional)
skip := float32(0) // float32 | (optional)
search := "dune" // string | (optional)
filter := "filter_example" // string | (optional) (default to "manual")
configuration := seerrClient.NewConfiguration()
apiClient := seerrClient.NewAPIClient(configuration)
resp, r, err := apiClient.BlocklistAPI.GetBlocklist(context.Background()).Take(take).Skip(skip).Search(search).Filter(filter).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.GetBlocklist``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBlocklist`: GetBlocklist2XXResponse
fmt.Fprintf(os.Stdout, "Response from `BlocklistAPI.GetBlocklist`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetBlocklistRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| take | float32 | ||
| skip | float32 | ||
| search | string | ||
| filter | string | [default to "manual"] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBlocklistByTmdbId(ctx, tmdbId).MediaType(mediaType).Execute()
Get media from blocklist
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.BlocklistAPI.GetBlocklistByTmdbId(context.Background(), tmdbId).MediaType(mediaType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BlocklistAPI.GetBlocklistByTmdbId``: %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 apiGetBlocklistByTmdbIdRequest 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]