Skip to content

Latest commit

 

History

History
144 lines (91 loc) · 3.72 KB

AlternativeTitleAPI.md

File metadata and controls

144 lines (91 loc) · 3.72 KB

\AlternativeTitleAPI

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

Method HTTP request Description
GetAlttitleById Get /api/v3/alttitle/{id}
ListAlttitle Get /api/v3/alttitle

GetAlttitleById

AlternativeTitleResource GetAlttitleById(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.AlternativeTitleAPI.GetAlttitleById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AlternativeTitleAPI.GetAlttitleById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAlttitleById`: AlternativeTitleResource
	fmt.Fprintf(os.Stdout, "Response from `AlternativeTitleAPI.GetAlttitleById`: %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 apiGetAlttitleByIdRequest struct via the builder pattern

Name Type Description Notes

Return type

AlternativeTitleResource

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]

ListAlttitle

[]AlternativeTitleResource ListAlttitle(ctx).MovieId(movieId).MovieMetadataId(movieMetadataId).Execute()

Example

package main

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

func main() {
	movieId := int32(56) // int32 |  (optional)
	movieMetadataId := int32(56) // int32 |  (optional)

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.AlternativeTitleAPI.ListAlttitle(context.Background()).MovieId(movieId).MovieMetadataId(movieMetadataId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AlternativeTitleAPI.ListAlttitle``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListAlttitle`: []AlternativeTitleResource
	fmt.Fprintf(os.Stdout, "Response from `AlternativeTitleAPI.ListAlttitle`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
movieId int32
movieMetadataId int32

Return type

[]AlternativeTitleResource

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]