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