Skip to content

Latest commit

 

History

History
138 lines (85 loc) · 3.25 KB

QueueActionAPI.md

File metadata and controls

138 lines (85 loc) · 3.25 KB

\QueueActionAPI

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

Method HTTP request Description
CreateQueueGrabBulk Post /api/v3/queue/grab/bulk
CreateQueueGrabById Post /api/v3/queue/grab/{id}

CreateQueueGrabBulk

CreateQueueGrabBulk(ctx).QueueBulkResource(queueBulkResource).Execute()

Example

package main

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

func main() {
	queueBulkResource := *sonarrClient.NewQueueBulkResource() // QueueBulkResource |  (optional)

	configuration := sonarrClient.NewConfiguration()
	apiClient := sonarrClient.NewAPIClient(configuration)
	r, err := apiClient.QueueActionAPI.CreateQueueGrabBulk(context.Background()).QueueBulkResource(queueBulkResource).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `QueueActionAPI.CreateQueueGrabBulk``: %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 apiCreateQueueGrabBulkRequest struct via the builder pattern

Name Type Description Notes
queueBulkResource QueueBulkResource

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

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

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

CreateQueueGrabById

CreateQueueGrabById(ctx, id).Execute()

Example

package main

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

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

	configuration := sonarrClient.NewConfiguration()
	apiClient := sonarrClient.NewAPIClient(configuration)
	r, err := apiClient.QueueActionAPI.CreateQueueGrabById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `QueueActionAPI.CreateQueueGrabById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

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 apiCreateQueueGrabByIdRequest struct via the builder pattern

Name Type Description Notes

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]