All URIs are relative to http://localhost:7878
Method | HTTP request | Description |
---|---|---|
GetImportListConfig | Get /api/v3/config/importlist | |
GetImportListConfigById | Get /api/v3/config/importlist/{id} | |
UpdateImportListConfig | Put /api/v3/config/importlist/{id} |
ImportListConfigResource GetImportListConfig(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ImportListConfigAPI.GetImportListConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImportListConfigAPI.GetImportListConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetImportListConfig`: ImportListConfigResource
fmt.Fprintf(os.Stdout, "Response from `ImportListConfigAPI.GetImportListConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetImportListConfigRequest 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]
ImportListConfigResource GetImportListConfigById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
id := int32(56) // int32 |
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ImportListConfigAPI.GetImportListConfigById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImportListConfigAPI.GetImportListConfigById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetImportListConfigById`: ImportListConfigResource
fmt.Fprintf(os.Stdout, "Response from `ImportListConfigAPI.GetImportListConfigById`: %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 apiGetImportListConfigByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ImportListConfigResource UpdateImportListConfig(ctx, id).ImportListConfigResource(importListConfigResource).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
id := "id_example" // string |
importListConfigResource := *whisparrClient.NewImportListConfigResource() // ImportListConfigResource | (optional)
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
resp, r, err := apiClient.ImportListConfigAPI.UpdateImportListConfig(context.Background(), id).ImportListConfigResource(importListConfigResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ImportListConfigAPI.UpdateImportListConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateImportListConfig`: ImportListConfigResource
fmt.Fprintf(os.Stdout, "Response from `ImportListConfigAPI.UpdateImportListConfig`: %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 apiUpdateImportListConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
importListConfigResource | ImportListConfigResource | |
- Content-Type: application/json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]