All URIs are relative to http://localhost:9696
| Method | HTTP request | Description |
|---|---|---|
| ListIndexerCategories | Get /api/v1/indexer/categories |
[]IndexerCategory ListIndexerCategories(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.IndexerDefaultCategoriesAPI.ListIndexerCategories(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IndexerDefaultCategoriesAPI.ListIndexerCategories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListIndexerCategories`: []IndexerCategory
fmt.Fprintf(os.Stdout, "Response from `IndexerDefaultCategoriesAPI.ListIndexerCategories`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListIndexerCategoriesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]