Skip to content

Latest commit

 

History

History
137 lines (86 loc) · 3.29 KB

TagDetailsAPI.md

File metadata and controls

137 lines (86 loc) · 3.29 KB

\TagDetailsAPI

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

Method HTTP request Description
GetTagDetailById Get /api/v1/tag/detail/{id}
ListTagDetail Get /api/v1/tag/detail

GetTagDetailById

TagDetailsResource GetTagDetailById(ctx, id).Execute()

Example

package main

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

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

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

Name Type Description Notes

Return type

TagDetailsResource

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]

ListTagDetail

[]TagDetailsResource ListTagDetail(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.TagDetailsAPI.ListTagDetail(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TagDetailsAPI.ListTagDetail``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListTagDetail`: []TagDetailsResource
	fmt.Fprintf(os.Stdout, "Response from `TagDetailsAPI.ListTagDetail`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]TagDetailsResource

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]