Skip to content

Latest commit

 

History

History
208 lines (132 loc) · 6.05 KB

MediaManagementConfigAPI.md

File metadata and controls

208 lines (132 loc) · 6.05 KB

\MediaManagementConfigAPI

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

Method HTTP request Description
GetMediaManagementConfig Get /api/v1/config/mediamanagement
GetMediaManagementConfigById Get /api/v1/config/mediamanagement/{id}
UpdateMediaManagementConfig Put /api/v1/config/mediamanagement/{id}

GetMediaManagementConfig

MediaManagementConfigResource GetMediaManagementConfig(ctx).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	readarrClient "github.com/devopsarr/readarr-go/readarr"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

MediaManagementConfigResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

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

GetMediaManagementConfigById

MediaManagementConfigResource GetMediaManagementConfigById(ctx, id).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	readarrClient "github.com/devopsarr/readarr-go/readarr"
)

func main() {
	id := int32(56) // int32 | 

	configuration := readarrClient.NewConfiguration()
	apiClient := readarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.MediaManagementConfigAPI.GetMediaManagementConfigById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MediaManagementConfigAPI.GetMediaManagementConfigById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetMediaManagementConfigById`: MediaManagementConfigResource
	fmt.Fprintf(os.Stdout, "Response from `MediaManagementConfigAPI.GetMediaManagementConfigById`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

Return type

MediaManagementConfigResource

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]

UpdateMediaManagementConfig

MediaManagementConfigResource UpdateMediaManagementConfig(ctx, id).MediaManagementConfigResource(mediaManagementConfigResource).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	readarrClient "github.com/devopsarr/readarr-go/readarr"
)

func main() {
	id := "id_example" // string | 
	mediaManagementConfigResource := *readarrClient.NewMediaManagementConfigResource() // MediaManagementConfigResource |  (optional)

	configuration := readarrClient.NewConfiguration()
	apiClient := readarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.MediaManagementConfigAPI.UpdateMediaManagementConfig(context.Background(), id).MediaManagementConfigResource(mediaManagementConfigResource).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MediaManagementConfigAPI.UpdateMediaManagementConfig``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UpdateMediaManagementConfig`: MediaManagementConfigResource
	fmt.Fprintf(os.Stdout, "Response from `MediaManagementConfigAPI.UpdateMediaManagementConfig`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

mediaManagementConfigResource | MediaManagementConfigResource | |

Return type

MediaManagementConfigResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: application/json, text/json, application/*+json
  • Accept: text/plain, application/json, text/json

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