Skip to content

Latest commit

 

History

History
138 lines (86 loc) · 3.67 KB

ImportListMoviesAPI.md

File metadata and controls

138 lines (86 loc) · 3.67 KB

\ImportListMoviesAPI

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

Method HTTP request Description
CreateImportlistMovie Post /api/v3/importlist/movie
GetImportlistMovie Get /api/v3/importlist/movie

CreateImportlistMovie

CreateImportlistMovie(ctx).MovieResource(movieResource).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)

func main() {
	movieResource := []whisparrClient.MovieResource{*whisparrClient.NewMovieResource()} // []MovieResource |  (optional)

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	r, err := apiClient.ImportListMoviesAPI.CreateImportlistMovie(context.Background()).MovieResource(movieResource).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ImportListMoviesAPI.CreateImportlistMovie``: %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 apiCreateImportlistMovieRequest struct via the builder pattern

Name Type Description Notes
movieResource []MovieResource

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]

GetImportlistMovie

GetImportlistMovie(ctx).IncludeRecommendations(includeRecommendations).IncludeTrending(includeTrending).IncludePopular(includePopular).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)

func main() {
	includeRecommendations := true // bool |  (optional) (default to false)
	includeTrending := true // bool |  (optional) (default to false)
	includePopular := true // bool |  (optional) (default to false)

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	r, err := apiClient.ImportListMoviesAPI.GetImportlistMovie(context.Background()).IncludeRecommendations(includeRecommendations).IncludeTrending(includeTrending).IncludePopular(includePopular).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ImportListMoviesAPI.GetImportlistMovie``: %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 apiGetImportlistMovieRequest struct via the builder pattern

Name Type Description Notes
includeRecommendations bool [default to false]
includeTrending bool [default to false]
includePopular bool [default to false]

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]