Skip to content

Latest commit

 

History

History
208 lines (132 loc) · 5.72 KB

ImportListConfigAPI.md

File metadata and controls

208 lines (132 loc) · 5.72 KB

\ImportListConfigAPI

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

Method HTTP request Description
GetImportListConfig Get /api/v3/config/importlist
GetImportListConfigById Get /api/v3/config/importlist/{id}
UpdateImportListConfig Put /api/v3/config/importlist/{id}

GetImportListConfig

ImportListConfigResource GetImportListConfig(ctx).Execute()

Example

package main

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

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ImportListConfigResource

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]

GetImportListConfigById

ImportListConfigResource GetImportListConfigById(ctx, id).Execute()

Example

package main

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

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

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.ImportListConfigAPI.GetImportListConfigById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ImportListConfigAPI.GetImportListConfigById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetImportListConfigById`: ImportListConfigResource
	fmt.Fprintf(os.Stdout, "Response from `ImportListConfigAPI.GetImportListConfigById`: %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 apiGetImportListConfigByIdRequest struct via the builder pattern

Name Type Description Notes

Return type

ImportListConfigResource

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]

UpdateImportListConfig

ImportListConfigResource UpdateImportListConfig(ctx, id).ImportListConfigResource(importListConfigResource).Execute()

Example

package main

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

func main() {
	id := "id_example" // string | 
	importListConfigResource := *whisparrClient.NewImportListConfigResource() // ImportListConfigResource |  (optional)

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.ImportListConfigAPI.UpdateImportListConfig(context.Background(), id).ImportListConfigResource(importListConfigResource).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ImportListConfigAPI.UpdateImportListConfig``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UpdateImportListConfig`: ImportListConfigResource
	fmt.Fprintf(os.Stdout, "Response from `ImportListConfigAPI.UpdateImportListConfig`: %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 apiUpdateImportListConfigRequest struct via the builder pattern

Name Type Description Notes

importListConfigResource | ImportListConfigResource | |

Return type

ImportListConfigResource

Authorization

apikey, X-Api-Key

HTTP request headers

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

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