Skip to content

Latest commit

 

History

History
266 lines (165 loc) · 6.1 KB

MovieLookupAPI.md

File metadata and controls

266 lines (165 loc) · 6.1 KB

\MovieLookupAPI

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

Method HTTP request Description
GetMovieLookup Get /api/v3/movie/lookup
GetMovieLookupById Get /api/v3/movie/lookup/{id}
GetMovieLookupImdb Get /api/v3/movie/lookup/imdb
GetMovieLookupTmdb Get /api/v3/movie/lookup/tmdb

GetMovieLookup

GetMovieLookup(ctx).Term(term).Execute()

Example

package main

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

func main() {
	term := "term_example" // string |  (optional)

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	r, err := apiClient.MovieLookupAPI.GetMovieLookup(context.Background()).Term(term).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MovieLookupAPI.GetMovieLookup``: %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 apiGetMovieLookupRequest struct via the builder pattern

Name Type Description Notes
term string

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]

GetMovieLookupById

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

Name Type Description Notes

Return type

MovieResource

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]

GetMovieLookupImdb

GetMovieLookupImdb(ctx).ImdbId(imdbId).Execute()

Example

package main

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

func main() {
	imdbId := "imdbId_example" // string |  (optional)

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	r, err := apiClient.MovieLookupAPI.GetMovieLookupImdb(context.Background()).ImdbId(imdbId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MovieLookupAPI.GetMovieLookupImdb``: %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 apiGetMovieLookupImdbRequest struct via the builder pattern

Name Type Description Notes
imdbId string

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]

GetMovieLookupTmdb

GetMovieLookupTmdb(ctx).TmdbId(tmdbId).Execute()

Example

package main

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

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

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	r, err := apiClient.MovieLookupAPI.GetMovieLookupTmdb(context.Background()).TmdbId(tmdbId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MovieLookupAPI.GetMovieLookupTmdb``: %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 apiGetMovieLookupTmdbRequest struct via the builder pattern

Name Type Description Notes
tmdbId 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]