Skip to content

Latest commit

 

History

History
137 lines (86 loc) · 3.45 KB

UpdateLogFileAPI.md

File metadata and controls

137 lines (86 loc) · 3.45 KB

\UpdateLogFileAPI

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

Method HTTP request Description
GetLogFileUpdateByFilename Get /api/v1/log/file/update/{filename}
ListLogFileUpdate Get /api/v1/log/file/update

GetLogFileUpdateByFilename

map[string]interface{} GetLogFileUpdateByFilename(ctx, filename).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)

func main() {
	filename := "filename_example" // string | 

	configuration := prowlarrClient.NewConfiguration()
	apiClient := prowlarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.UpdateLogFileAPI.GetLogFileUpdateByFilename(context.Background(), filename).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `UpdateLogFileAPI.GetLogFileUpdateByFilename``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetLogFileUpdateByFilename`: map[string]interface{}
	fmt.Fprintf(os.Stdout, "Response from `UpdateLogFileAPI.GetLogFileUpdateByFilename`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
filename string

Other Parameters

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

Name Type Description Notes

Return type

map[string]interface{}

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

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

ListLogFileUpdate

[]LogFileResource ListLogFileUpdate(ctx).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)

func main() {

	configuration := prowlarrClient.NewConfiguration()
	apiClient := prowlarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.UpdateLogFileAPI.ListLogFileUpdate(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `UpdateLogFileAPI.ListLogFileUpdate``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListLogFileUpdate`: []LogFileResource
	fmt.Fprintf(os.Stdout, "Response from `UpdateLogFileAPI.ListLogFileUpdate`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]LogFileResource

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]