Skip to content

Latest commit

 

History

History
362 lines (254 loc) · 12.4 KB

File metadata and controls

362 lines (254 loc) · 12.4 KB

whisparr.HistoryApi

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

Method HTTP request Description
create_history_failed_by_id POST /api/v3/history/failed/{id}
get_history GET /api/v3/history
list_history_movie GET /api/v3/history/movie
list_history_since GET /api/v3/history/since

create_history_failed_by_id

create_history_failed_by_id(id)

Example

  • Api Key Authentication (apikey):
  • Api Key Authentication (X-Api-Key):
import whisparr
from whisparr.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:7878
# See configuration.py for a list of all supported configuration parameters.
configuration = whisparr.Configuration(
    host = "http://localhost:7878"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: apikey
configuration.api_key['apikey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# Configure API key authorization: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'

# Enter a context with an instance of the API client
with whisparr.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = whisparr.HistoryApi(api_client)
    id = 56 # int | 

    try:
        api_instance.create_history_failed_by_id(id)
    except Exception as e:
        print("Exception when calling HistoryApi->create_history_failed_by_id: %s\n" % e)

Parameters

Name Type Description Notes
id int

Return type

void (empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
2XX Success -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_history

HistoryResourcePagingResource get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, include_movie=include_movie, event_type=event_type, download_id=download_id, movie_ids=movie_ids, languages=languages, quality=quality)

Example

  • Api Key Authentication (apikey):
  • Api Key Authentication (X-Api-Key):
import whisparr
from whisparr.models.history_resource_paging_resource import HistoryResourcePagingResource
from whisparr.models.sort_direction import SortDirection
from whisparr.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:7878
# See configuration.py for a list of all supported configuration parameters.
configuration = whisparr.Configuration(
    host = "http://localhost:7878"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: apikey
configuration.api_key['apikey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# Configure API key authorization: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'

# Enter a context with an instance of the API client
with whisparr.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = whisparr.HistoryApi(api_client)
    page = 1 # int |  (optional) (default to 1)
    page_size = 10 # int |  (optional) (default to 10)
    sort_key = 'sort_key_example' # str |  (optional)
    sort_direction = whisparr.SortDirection() # SortDirection |  (optional)
    include_movie = True # bool |  (optional)
    event_type = [56] # List[int] |  (optional)
    download_id = 'download_id_example' # str |  (optional)
    movie_ids = [56] # List[int] |  (optional)
    languages = [56] # List[int] |  (optional)
    quality = [56] # List[int] |  (optional)

    try:
        api_response = api_instance.get_history(page=page, page_size=page_size, sort_key=sort_key, sort_direction=sort_direction, include_movie=include_movie, event_type=event_type, download_id=download_id, movie_ids=movie_ids, languages=languages, quality=quality)
        print("The response of HistoryApi->get_history:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling HistoryApi->get_history: %s\n" % e)

Parameters

Name Type Description Notes
page int [optional] [default to 1]
page_size int [optional] [default to 10]
sort_key str [optional]
sort_direction SortDirection [optional]
include_movie bool [optional]
event_type List[int] [optional]
download_id str [optional]
movie_ids List[int] [optional]
languages List[int] [optional]
quality List[int] [optional]

Return type

HistoryResourcePagingResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
2XX Success -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_history_movie

List[HistoryResource] list_history_movie(movie_id=movie_id, event_type=event_type, include_movie=include_movie)

Example

  • Api Key Authentication (apikey):
  • Api Key Authentication (X-Api-Key):
import whisparr
from whisparr.models.history_resource import HistoryResource
from whisparr.models.movie_history_event_type import MovieHistoryEventType
from whisparr.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:7878
# See configuration.py for a list of all supported configuration parameters.
configuration = whisparr.Configuration(
    host = "http://localhost:7878"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: apikey
configuration.api_key['apikey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# Configure API key authorization: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'

# Enter a context with an instance of the API client
with whisparr.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = whisparr.HistoryApi(api_client)
    movie_id = 56 # int |  (optional)
    event_type = whisparr.MovieHistoryEventType() # MovieHistoryEventType |  (optional)
    include_movie = False # bool |  (optional) (default to False)

    try:
        api_response = api_instance.list_history_movie(movie_id=movie_id, event_type=event_type, include_movie=include_movie)
        print("The response of HistoryApi->list_history_movie:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling HistoryApi->list_history_movie: %s\n" % e)

Parameters

Name Type Description Notes
movie_id int [optional]
event_type MovieHistoryEventType [optional]
include_movie bool [optional] [default to False]

Return type

List[HistoryResource]

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
2XX Success -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_history_since

List[HistoryResource] list_history_since(var_date=var_date, event_type=event_type, include_movie=include_movie)

Example

  • Api Key Authentication (apikey):
  • Api Key Authentication (X-Api-Key):
import whisparr
from whisparr.models.history_resource import HistoryResource
from whisparr.models.movie_history_event_type import MovieHistoryEventType
from whisparr.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:7878
# See configuration.py for a list of all supported configuration parameters.
configuration = whisparr.Configuration(
    host = "http://localhost:7878"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: apikey
configuration.api_key['apikey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apikey'] = 'Bearer'

# Configure API key authorization: X-Api-Key
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'

# Enter a context with an instance of the API client
with whisparr.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = whisparr.HistoryApi(api_client)
    var_date = '2013-10-20T19:20:30+01:00' # datetime |  (optional)
    event_type = whisparr.MovieHistoryEventType() # MovieHistoryEventType |  (optional)
    include_movie = False # bool |  (optional) (default to False)

    try:
        api_response = api_instance.list_history_since(var_date=var_date, event_type=event_type, include_movie=include_movie)
        print("The response of HistoryApi->list_history_since:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling HistoryApi->list_history_since: %s\n" % e)

Parameters

Name Type Description Notes
var_date datetime [optional]
event_type MovieHistoryEventType [optional]
include_movie bool [optional] [default to False]

Return type

List[HistoryResource]

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
2XX Success -

[Back to top] [Back to API list] [Back to Model list] [Back to README]