Skip to content

Latest commit

 

History

History
142 lines (89 loc) · 3.3 KB

CreditAPI.md

File metadata and controls

142 lines (89 loc) · 3.3 KB

\CreditAPI

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

Method HTTP request Description
GetCredit Get /api/v3/credit
GetCreditById Get /api/v3/credit/{id}

GetCredit

GetCredit(ctx).MovieId(movieId).MovieMetadataId(movieMetadataId).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	radarrClient "github.com/devopsarr/radarr-go/radarr"
)

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

	configuration := radarrClient.NewConfiguration()
	apiClient := radarrClient.NewAPIClient(configuration)
	r, err := apiClient.CreditAPI.GetCredit(context.Background()).MovieId(movieId).MovieMetadataId(movieMetadataId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CreditAPI.GetCredit``: %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 apiGetCreditRequest struct via the builder pattern

Name Type Description Notes
movieId int32
movieMetadataId int32

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]

GetCreditById

CreditResource GetCreditById(ctx, id).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	radarrClient "github.com/devopsarr/radarr-go/radarr"
)

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

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

Name Type Description Notes

Return type

CreditResource

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]