Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.72 KB

SeriesImportAPI.md

File metadata and controls

71 lines (43 loc) · 1.72 KB

\SeriesImportAPI

All URIs are relative to http://localhost:8989

Method HTTP request Description
CreateSeriesImport Post /api/v3/series/import

CreateSeriesImport

CreateSeriesImport(ctx).SeriesResource(seriesResource).Execute()

Example

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)
	}
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateSeriesImportRequest struct via the builder pattern

Name Type Description Notes
seriesResource []SeriesResource

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • 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]