All URIs are relative to http://localhost:8989
Method | HTTP request | Description |
---|---|---|
CreateLanguageProfile | Post /api/v3/languageprofile | |
DeleteLanguageProfile | Delete /api/v3/languageprofile/{id} | |
GetLanguageProfileById | Get /api/v3/languageprofile/{id} | |
ListLanguageProfile | Get /api/v3/languageprofile | |
UpdateLanguageProfile | Put /api/v3/languageprofile/{id} |
LanguageProfileResource CreateLanguageProfile(ctx).LanguageProfileResource(languageProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
languageProfileResource := *sonarrClient.NewLanguageProfileResource() // LanguageProfileResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.LanguageProfileAPI.CreateLanguageProfile(context.Background()).LanguageProfileResource(languageProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LanguageProfileAPI.CreateLanguageProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateLanguageProfile`: LanguageProfileResource
fmt.Fprintf(os.Stdout, "Response from `LanguageProfileAPI.CreateLanguageProfile`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateLanguageProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
languageProfileResource | LanguageProfileResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteLanguageProfile(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.LanguageProfileAPI.DeleteLanguageProfile(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LanguageProfileAPI.DeleteLanguageProfile``: %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. | |
id | int32 |
Other parameters are passed through a pointer to a apiDeleteLanguageProfileRequest 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]
LanguageProfileResource GetLanguageProfileById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := int32(56) // int32 |
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.LanguageProfileAPI.GetLanguageProfileById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LanguageProfileAPI.GetLanguageProfileById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLanguageProfileById`: LanguageProfileResource
fmt.Fprintf(os.Stdout, "Response from `LanguageProfileAPI.GetLanguageProfileById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 |
Other parameters are passed through a pointer to a apiGetLanguageProfileByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]LanguageProfileResource ListLanguageProfile(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.LanguageProfileAPI.ListLanguageProfile(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LanguageProfileAPI.ListLanguageProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLanguageProfile`: []LanguageProfileResource
fmt.Fprintf(os.Stdout, "Response from `LanguageProfileAPI.ListLanguageProfile`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListLanguageProfileRequest 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]
LanguageProfileResource UpdateLanguageProfile(ctx, id).LanguageProfileResource(languageProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
id := "id_example" // string |
languageProfileResource := *sonarrClient.NewLanguageProfileResource() // LanguageProfileResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.LanguageProfileAPI.UpdateLanguageProfile(context.Background(), id).LanguageProfileResource(languageProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LanguageProfileAPI.UpdateLanguageProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateLanguageProfile`: LanguageProfileResource
fmt.Fprintf(os.Stdout, "Response from `LanguageProfileAPI.UpdateLanguageProfile`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateLanguageProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
languageProfileResource | LanguageProfileResource | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]