Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 2.19 KB

File metadata and controls

79 lines (51 loc) · 2.19 KB

\QueueDetailsAPI

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

Method HTTP request Description
ListQueueDetails Get /api/v1/queue/details

ListQueueDetails

[]QueueResource ListQueueDetails(ctx).ArtistId(artistId).AlbumIds(albumIds).IncludeArtist(includeArtist).IncludeAlbum(includeAlbum).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	lidarrClient "github.com/devopsarr/lidarr-go/lidarr"
)

func main() {
	artistId := int32(56) // int32 |  (optional)
	albumIds := []int32{int32(123)} // []int32 |  (optional)
	includeArtist := true // bool |  (optional) (default to false)
	includeAlbum := true // bool |  (optional) (default to true)

	configuration := lidarrClient.NewConfiguration()
	apiClient := lidarrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.QueueDetailsAPI.ListQueueDetails(context.Background()).ArtistId(artistId).AlbumIds(albumIds).IncludeArtist(includeArtist).IncludeAlbum(includeAlbum).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `QueueDetailsAPI.ListQueueDetails``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListQueueDetails`: []QueueResource
	fmt.Fprintf(os.Stdout, "Response from `QueueDetailsAPI.ListQueueDetails`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
artistId int32
albumIds []int32
includeArtist bool [default to false]
includeAlbum bool [default to true]

Return type

[]QueueResource

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]