Skip to content

Latest commit

 

History

History
75 lines (47 loc) · 1.69 KB

ParseAPI.md

File metadata and controls

75 lines (47 loc) · 1.69 KB

\ParseAPI

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

Method HTTP request Description
GetParse Get /api/v3/parse

GetParse

ParseResource GetParse(ctx).Title(title).Path(path).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	sonarrClient "github.com/devopsarr/sonarr-go/sonarr"
)

func main() {
	title := "title_example" // string |  (optional)
	path := "path_example" // string |  (optional)

	configuration := sonarrClient.NewConfiguration()
	apiClient := sonarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.ParseAPI.GetParse(context.Background()).Title(title).Path(path).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ParseAPI.GetParse``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetParse`: ParseResource
	fmt.Fprintf(os.Stdout, "Response from `ParseAPI.GetParse`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
title string
path string

Return type

ParseResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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