All URIs are relative to http://localhost:8989
Method | HTTP request | Description |
---|---|---|
CreateSeriesImport | Post /api/v3/series/import |
CreateSeriesImport(ctx).SeriesResource(seriesResource).Execute()
package main
import (
"context"
"fmt"
"os"
sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)
func main() {
seriesResource := []sonarrClient.SeriesResource{*sonarrClient.NewSeriesResource()} // []SeriesResource | (optional)
configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
r, err := apiClient.SeriesImportAPI.CreateSeriesImport(context.Background()).SeriesResource(seriesResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SeriesImportAPI.CreateSeriesImport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiCreateSeriesImportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
seriesResource | []SeriesResource |
(empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]