All URIs are relative to http://localhost:9696
| Method | HTTP request | Description |
|---|---|---|
| CreateSearch | Post /api/v1/search | |
| CreateSearchBulk | Post /api/v1/search/bulk | |
| ListSearch | Get /api/v1/search |
ReleaseResource CreateSearch(ctx).ReleaseResource(releaseResource).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
releaseResource := *prowlarrClient.NewReleaseResource() // ReleaseResource | (optional)
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.SearchAPI.CreateSearch(context.Background()).ReleaseResource(releaseResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.CreateSearch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSearch`: ReleaseResource
fmt.Fprintf(os.Stdout, "Response from `SearchAPI.CreateSearch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateSearchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| releaseResource | ReleaseResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReleaseResource CreateSearchBulk(ctx).ReleaseResource(releaseResource).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
releaseResource := []prowlarrClient.ReleaseResource{*prowlarrClient.NewReleaseResource()} // []ReleaseResource | (optional)
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.SearchAPI.CreateSearchBulk(context.Background()).ReleaseResource(releaseResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.CreateSearchBulk``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSearchBulk`: ReleaseResource
fmt.Fprintf(os.Stdout, "Response from `SearchAPI.CreateSearchBulk`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateSearchBulkRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| releaseResource | []ReleaseResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ReleaseResource ListSearch(ctx).Query(query).Type_(type_).IndexerIds(indexerIds).Categories(categories).Limit(limit).Offset(offset).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
query := "query_example" // string | (optional)
type_ := "type__example" // string | (optional)
indexerIds := []int32{int32(123)} // []int32 | (optional)
categories := []int32{int32(123)} // []int32 | (optional)
limit := int32(56) // int32 | (optional)
offset := int32(56) // int32 | (optional)
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.SearchAPI.ListSearch(context.Background()).Query(query).Type_(type_).IndexerIds(indexerIds).Categories(categories).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.ListSearch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListSearch`: []ReleaseResource
fmt.Fprintf(os.Stdout, "Response from `SearchAPI.ListSearch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListSearchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| query | string | ||
| type_ | string | ||
| indexerIds | []int32 | ||
| categories | []int32 | ||
| limit | int32 | ||
| offset | int32 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]