kuapir 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +77 -0
- data/LICENSE +21 -0
- data/README.md +170 -0
- data/Rakefile +12 -0
- data/docs/BoxOffice.md +26 -0
- data/docs/BoxOfficeResponse.md +20 -0
- data/docs/Company.md +18 -0
- data/docs/Country.md +18 -0
- data/docs/DigitalReleaseItem.md +44 -0
- data/docs/DigitalReleaseResponse.md +22 -0
- data/docs/Distribution.md +28 -0
- data/docs/DistributionResponse.md +20 -0
- data/docs/Episode.md +28 -0
- data/docs/Fact.md +22 -0
- data/docs/FactResponse.md +20 -0
- data/docs/Film.md +100 -0
- data/docs/FilmSearchByFiltersResponse.md +22 -0
- data/docs/FilmSearchByFiltersResponseItems.md +42 -0
- data/docs/FilmSearchResponse.md +24 -0
- data/docs/FilmSearchResponseFilms.md +42 -0
- data/docs/FilmSequelsAndPrequelsResponse.md +30 -0
- data/docs/FilmTopResponse.md +20 -0
- data/docs/FilmTopResponseFilms.md +38 -0
- data/docs/FilmsApi.md +1126 -0
- data/docs/FiltersResponse.md +20 -0
- data/docs/FiltersResponseCountries.md +20 -0
- data/docs/FiltersResponseGenres.md +20 -0
- data/docs/Genre.md +18 -0
- data/docs/ImageResponse.md +22 -0
- data/docs/ImageResponseItems.md +20 -0
- data/docs/PersonByNameResponse.md +20 -0
- data/docs/PersonByNameResponseItems.md +28 -0
- data/docs/PersonResponse.md +50 -0
- data/docs/PersonResponseFilms.md +30 -0
- data/docs/PersonResponseSpouses.md +32 -0
- data/docs/PersonsApi.md +83 -0
- data/docs/PremiereResponse.md +20 -0
- data/docs/PremiereResponseItem.md +36 -0
- data/docs/RelatedFilmResponse.md +20 -0
- data/docs/RelatedFilmResponseItems.md +30 -0
- data/docs/ReviewDetailsResponse.md +32 -0
- data/docs/ReviewsApi.md +155 -0
- data/docs/ReviewsResponse.md +34 -0
- data/docs/ReviewsResponseReviews.md +32 -0
- data/docs/Season.md +20 -0
- data/docs/SeasonResponse.md +20 -0
- data/docs/StaffApi.md +147 -0
- data/docs/StaffResponse.md +30 -0
- data/docs/VideoResponse.md +20 -0
- data/docs/VideoResponseItems.md +22 -0
- data/kinopoiskapiunofficial-openapi.json +2918 -0
- data/kuapir.gemspec +42 -0
- data/lib/kuapir/api/films_api.rb +1193 -0
- data/lib/kuapir/api/persons_api.rb +89 -0
- data/lib/kuapir/api/reviews_api.rb +165 -0
- data/lib/kuapir/api/staff_api.rb +145 -0
- data/lib/kuapir/api_client.rb +390 -0
- data/lib/kuapir/api_error.rb +57 -0
- data/lib/kuapir/configuration.rb +287 -0
- data/lib/kuapir/models/box_office.rb +246 -0
- data/lib/kuapir/models/box_office_response.rb +224 -0
- data/lib/kuapir/models/company.rb +214 -0
- data/lib/kuapir/models/country.rb +214 -0
- data/lib/kuapir/models/digital_release_item.rb +334 -0
- data/lib/kuapir/models/digital_release_response.rb +232 -0
- data/lib/kuapir/models/distribution.rb +300 -0
- data/lib/kuapir/models/distribution_response.rb +224 -0
- data/lib/kuapir/models/episode.rb +249 -0
- data/lib/kuapir/models/fact.rb +266 -0
- data/lib/kuapir/models/fact_response.rb +224 -0
- data/lib/kuapir/models/film.rb +551 -0
- data/lib/kuapir/models/film_search_by_filters_response.rb +232 -0
- data/lib/kuapir/models/film_search_by_filters_response_items.rb +319 -0
- data/lib/kuapir/models/film_search_response.rb +244 -0
- data/lib/kuapir/models/film_search_response_films.rb +311 -0
- data/lib/kuapir/models/film_sequels_and_prequels_response.rb +300 -0
- data/lib/kuapir/models/film_top_response.rb +224 -0
- data/lib/kuapir/models/film_top_response_films.rb +272 -0
- data/lib/kuapir/models/filters_response.rb +226 -0
- data/lib/kuapir/models/filters_response_countries.rb +214 -0
- data/lib/kuapir/models/filters_response_genres.rb +214 -0
- data/lib/kuapir/models/genre.rb +214 -0
- data/lib/kuapir/models/image_response.rb +238 -0
- data/lib/kuapir/models/image_response_items.rb +214 -0
- data/lib/kuapir/models/person_by_name_response.rb +224 -0
- data/lib/kuapir/models/person_by_name_response_items.rb +274 -0
- data/lib/kuapir/models/person_response.rb +363 -0
- data/lib/kuapir/models/person_response_films.rb +284 -0
- data/lib/kuapir/models/person_response_spouses.rb +283 -0
- data/lib/kuapir/models/premiere_response.rb +224 -0
- data/lib/kuapir/models/premiere_response_item.rb +289 -0
- data/lib/kuapir/models/related_film_response.rb +224 -0
- data/lib/kuapir/models/related_film_response_items.rb +279 -0
- data/lib/kuapir/models/review_details_response.rb +314 -0
- data/lib/kuapir/models/reviews_response.rb +294 -0
- data/lib/kuapir/models/reviews_response_reviews.rb +282 -0
- data/lib/kuapir/models/season.rb +224 -0
- data/lib/kuapir/models/season_response.rb +224 -0
- data/lib/kuapir/models/staff_response.rb +301 -0
- data/lib/kuapir/models/video_response.rb +224 -0
- data/lib/kuapir/models/video_response_items.rb +255 -0
- data/lib/kuapir/version.rb +5 -0
- data/lib/kuapir.rb +83 -0
- data/openapi-generator-templates/Gemfile.mustache +9 -0
- data/openapi-generator-templates/README.mustache +148 -0
- data/openapi-generator-templates/Rakefile.mustache +10 -0
- data/openapi-generator-templates/api.mustache +205 -0
- data/openapi-generator-templates/api_client.mustache +260 -0
- data/openapi-generator-templates/api_client_faraday_partial.mustache +136 -0
- data/openapi-generator-templates/api_client_spec.mustache +216 -0
- data/openapi-generator-templates/api_client_typhoeus_partial.mustache +153 -0
- data/openapi-generator-templates/api_doc.mustache +118 -0
- data/openapi-generator-templates/api_error.mustache +45 -0
- data/openapi-generator-templates/api_info.mustache +12 -0
- data/openapi-generator-templates/api_test.mustache +43 -0
- data/openapi-generator-templates/base_object.mustache +120 -0
- data/openapi-generator-templates/configuration.mustache +381 -0
- data/openapi-generator-templates/configuration_spec.mustache +30 -0
- data/openapi-generator-templates/configuration_tls_faraday_partial.mustache +29 -0
- data/openapi-generator-templates/configuration_tls_typhoeus_partial.mustache +34 -0
- data/openapi-generator-templates/gem.mustache +50 -0
- data/openapi-generator-templates/gemspec.mustache +31 -0
- data/openapi-generator-templates/git_push.sh.mustache +57 -0
- data/openapi-generator-templates/gitignore.mustache +39 -0
- data/openapi-generator-templates/model.mustache +22 -0
- data/openapi-generator-templates/model_doc.mustache +12 -0
- data/openapi-generator-templates/model_test.mustache +73 -0
- data/openapi-generator-templates/partial_model_enum_class.mustache +20 -0
- data/openapi-generator-templates/partial_model_generic.mustache +371 -0
- data/openapi-generator-templates/partial_model_generic_doc.mustache +28 -0
- data/openapi-generator-templates/partial_oneof_module.mustache +137 -0
- data/openapi-generator-templates/partial_oneof_module_doc.mustache +92 -0
- data/openapi-generator-templates/rspec.mustache +2 -0
- data/openapi-generator-templates/rubocop.mustache +148 -0
- data/openapi-generator-templates/spec_helper.mustache +99 -0
- data/openapi-generator-templates/travis.mustache +14 -0
- data/openapi-generator-templates/version.mustache +3 -0
- data/openapitools.json +21 -0
- data/spec/api/films_api_spec.rb +227 -0
- data/spec/api/persons_api_spec.rb +45 -0
- data/spec/api/reviews_api_spec.rb +57 -0
- data/spec/api/staff_api_spec.rb +54 -0
- data/spec/api_client_spec.rb +229 -0
- data/spec/configuration_spec.rb +28 -0
- data/spec/models/box_office_response_spec.rb +37 -0
- data/spec/models/box_office_spec.rb +55 -0
- data/spec/models/company_spec.rb +31 -0
- data/spec/models/country_spec.rb +31 -0
- data/spec/models/digital_release_item_spec.rb +109 -0
- data/spec/models/digital_release_response_spec.rb +43 -0
- data/spec/models/distribution_response_spec.rb +37 -0
- data/spec/models/distribution_spec.rb +69 -0
- data/spec/models/episode_spec.rb +61 -0
- data/spec/models/fact_response_spec.rb +37 -0
- data/spec/models/fact_spec.rb +47 -0
- data/spec/models/film_search_by_filters_response_items_spec.rb +107 -0
- data/spec/models/film_search_by_filters_response_spec.rb +43 -0
- data/spec/models/film_search_response_films_spec.rb +107 -0
- data/spec/models/film_search_response_spec.rb +49 -0
- data/spec/models/film_sequels_and_prequels_response_spec.rb +71 -0
- data/spec/models/film_spec.rb +285 -0
- data/spec/models/film_top_response_films_spec.rb +91 -0
- data/spec/models/film_top_response_spec.rb +37 -0
- data/spec/models/filters_response_countries_spec.rb +37 -0
- data/spec/models/filters_response_genres_spec.rb +37 -0
- data/spec/models/filters_response_spec.rb +37 -0
- data/spec/models/genre_spec.rb +31 -0
- data/spec/models/image_response_items_spec.rb +37 -0
- data/spec/models/image_response_spec.rb +43 -0
- data/spec/models/person_by_name_response_items_spec.rb +65 -0
- data/spec/models/person_by_name_response_spec.rb +37 -0
- data/spec/models/person_response_films_spec.rb +71 -0
- data/spec/models/person_response_spec.rb +131 -0
- data/spec/models/person_response_spouses_spec.rb +77 -0
- data/spec/models/premiere_response_item_spec.rb +85 -0
- data/spec/models/premiere_response_spec.rb +37 -0
- data/spec/models/related_film_response_items_spec.rb +71 -0
- data/spec/models/related_film_response_spec.rb +37 -0
- data/spec/models/review_details_response_spec.rb +77 -0
- data/spec/models/reviews_response_reviews_spec.rb +77 -0
- data/spec/models/reviews_response_spec.rb +79 -0
- data/spec/models/season_response_spec.rb +37 -0
- data/spec/models/season_spec.rb +37 -0
- data/spec/models/staff_response_spec.rb +71 -0
- data/spec/models/video_response_items_spec.rb +47 -0
- data/spec/models/video_response_spec.rb +37 -0
- data/spec/spec_helper.rb +107 -0
- metadata +326 -0
data/docs/FilmsApi.md
ADDED
@@ -0,0 +1,1126 @@
|
|
1
|
+
# Kuapir::FilmsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://kinopoiskapiunofficial.tech*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**api_v21_films_id_sequels_and_prequels_get**](FilmsApi.md#api_v21_films_id_sequels_and_prequels_get) | **GET** /api/v2.1/films/{id}/sequels_and_prequels | получить сиквелы и приквелы для фильма по kinopoisk film id |
|
8
|
+
| [**api_v21_films_releases_get**](FilmsApi.md#api_v21_films_releases_get) | **GET** /api/v2.1/films/releases | получить список цифровых релизов |
|
9
|
+
| [**api_v21_films_search_by_keyword_get**](FilmsApi.md#api_v21_films_search_by_keyword_get) | **GET** /api/v2.1/films/search-by-keyword | получить список фильмов по ключевым словам |
|
10
|
+
| [**api_v22_films_filters_get**](FilmsApi.md#api_v22_films_filters_get) | **GET** /api/v2.2/films/filters | получить id стран и жанров для использования в /api/v2.2/films |
|
11
|
+
| [**api_v22_films_get**](FilmsApi.md#api_v22_films_get) | **GET** /api/v2.2/films | получить список фильмов по различным фильтрам |
|
12
|
+
| [**api_v22_films_id_box_office_get**](FilmsApi.md#api_v22_films_id_box_office_get) | **GET** /api/v2.2/films/{id}/box_office | получить данные о бюджете и сборах фильма по kinopoisk film id |
|
13
|
+
| [**api_v22_films_id_distributions_get**](FilmsApi.md#api_v22_films_id_distributions_get) | **GET** /api/v2.2/films/{id}/distributions | получить данные о прокате фильма по kinopoisk film id |
|
14
|
+
| [**api_v22_films_id_facts_get**](FilmsApi.md#api_v22_films_id_facts_get) | **GET** /api/v2.2/films/{id}/facts | получить данные о фактах и ошибках в фильме по kinopoisk film id |
|
15
|
+
| [**api_v22_films_id_get**](FilmsApi.md#api_v22_films_id_get) | **GET** /api/v2.2/films/{id} | получить данные о фильме по kinopoisk id |
|
16
|
+
| [**api_v22_films_id_images_get**](FilmsApi.md#api_v22_films_id_images_get) | **GET** /api/v2.2/films/{id}/images | получить изображения(кадры, постеры, фан-арты, обои и т.д.) связанные с фильмом по kinopoisk film id |
|
17
|
+
| [**api_v22_films_id_seasons_get**](FilmsApi.md#api_v22_films_id_seasons_get) | **GET** /api/v2.2/films/{id}/seasons | получить данные о сезонах для сериала по kinopoisk film id |
|
18
|
+
| [**api_v22_films_id_similars_get**](FilmsApi.md#api_v22_films_id_similars_get) | **GET** /api/v2.2/films/{id}/similars | получить список похожих фильмов по kinopoisk film id |
|
19
|
+
| [**api_v22_films_id_videos_get**](FilmsApi.md#api_v22_films_id_videos_get) | **GET** /api/v2.2/films/{id}/videos | получить трейлеры,тизеры,видео для фильма по kinopoisk film id |
|
20
|
+
| [**api_v22_films_premieres_get**](FilmsApi.md#api_v22_films_premieres_get) | **GET** /api/v2.2/films/premieres | получить список кинопремьер |
|
21
|
+
| [**api_v22_films_top_get**](FilmsApi.md#api_v22_films_top_get) | **GET** /api/v2.2/films/top | получить список фильмов из различных топов или коллекций. Например https://www.kinopoisk.ru/top/lists/58/ |
|
22
|
+
|
23
|
+
|
24
|
+
## api_v21_films_id_sequels_and_prequels_get
|
25
|
+
|
26
|
+
> <Array<FilmSequelsAndPrequelsResponse>> api_v21_films_id_sequels_and_prequels_get(id)
|
27
|
+
|
28
|
+
получить сиквелы и приквелы для фильма по kinopoisk film id
|
29
|
+
|
30
|
+
tbd
|
31
|
+
|
32
|
+
### Examples
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
require 'time'
|
36
|
+
require 'kuapir'
|
37
|
+
# setup authorization
|
38
|
+
Kuapir.configure do |config|
|
39
|
+
# Configure API key authorization: ApiKeyAuth
|
40
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
41
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
42
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
43
|
+
end
|
44
|
+
|
45
|
+
api_instance = Kuapir::FilmsApi.new
|
46
|
+
id = 56 # Integer | kinopoisk film id
|
47
|
+
|
48
|
+
begin
|
49
|
+
# получить сиквелы и приквелы для фильма по kinopoisk film id
|
50
|
+
result = api_instance.api_v21_films_id_sequels_and_prequels_get(id)
|
51
|
+
p result
|
52
|
+
rescue Kuapir::ApiError => e
|
53
|
+
puts "Error when calling FilmsApi->api_v21_films_id_sequels_and_prequels_get: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
#### Using the api_v21_films_id_sequels_and_prequels_get_with_http_info variant
|
58
|
+
|
59
|
+
This returns an Array which contains the response data, status code and headers.
|
60
|
+
|
61
|
+
> <Array(<Array<FilmSequelsAndPrequelsResponse>>, Integer, Hash)> api_v21_films_id_sequels_and_prequels_get_with_http_info(id)
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
begin
|
65
|
+
# получить сиквелы и приквелы для фильма по kinopoisk film id
|
66
|
+
data, status_code, headers = api_instance.api_v21_films_id_sequels_and_prequels_get_with_http_info(id)
|
67
|
+
p status_code # => 2xx
|
68
|
+
p headers # => { ... }
|
69
|
+
p data # => <Array<FilmSequelsAndPrequelsResponse>>
|
70
|
+
rescue Kuapir::ApiError => e
|
71
|
+
puts "Error when calling FilmsApi->api_v21_films_id_sequels_and_prequels_get_with_http_info: #{e}"
|
72
|
+
end
|
73
|
+
```
|
74
|
+
|
75
|
+
### Parameters
|
76
|
+
|
77
|
+
| Name | Type | Description | Notes |
|
78
|
+
| ---- | ---- | ----------- | ----- |
|
79
|
+
| **id** | **Integer** | kinopoisk film id | |
|
80
|
+
|
81
|
+
### Return type
|
82
|
+
|
83
|
+
[**Array<FilmSequelsAndPrequelsResponse>**](FilmSequelsAndPrequelsResponse.md)
|
84
|
+
|
85
|
+
### Authorization
|
86
|
+
|
87
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
88
|
+
|
89
|
+
### HTTP request headers
|
90
|
+
|
91
|
+
- **Content-Type**: Not defined
|
92
|
+
- **Accept**: application/json
|
93
|
+
|
94
|
+
|
95
|
+
## api_v21_films_releases_get
|
96
|
+
|
97
|
+
> <DigitalReleaseResponse> api_v21_films_releases_get(year, month, opts)
|
98
|
+
|
99
|
+
получить список цифровых релизов
|
100
|
+
|
101
|
+
Данный эндпоинт возвращает список цифровых релизов. Например https://www.kinopoisk.ru/comingsoon/digital/
|
102
|
+
|
103
|
+
### Examples
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
require 'time'
|
107
|
+
require 'kuapir'
|
108
|
+
# setup authorization
|
109
|
+
Kuapir.configure do |config|
|
110
|
+
# Configure API key authorization: ApiKeyAuth
|
111
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
112
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
113
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
114
|
+
end
|
115
|
+
|
116
|
+
api_instance = Kuapir::FilmsApi.new
|
117
|
+
year = 56 # Integer | год релиза
|
118
|
+
month = 'JANUARY' # String | месяц релиза
|
119
|
+
opts = {
|
120
|
+
page: 56 # Integer | номер страницы
|
121
|
+
}
|
122
|
+
|
123
|
+
begin
|
124
|
+
# получить список цифровых релизов
|
125
|
+
result = api_instance.api_v21_films_releases_get(year, month, opts)
|
126
|
+
p result
|
127
|
+
rescue Kuapir::ApiError => e
|
128
|
+
puts "Error when calling FilmsApi->api_v21_films_releases_get: #{e}"
|
129
|
+
end
|
130
|
+
```
|
131
|
+
|
132
|
+
#### Using the api_v21_films_releases_get_with_http_info variant
|
133
|
+
|
134
|
+
This returns an Array which contains the response data, status code and headers.
|
135
|
+
|
136
|
+
> <Array(<DigitalReleaseResponse>, Integer, Hash)> api_v21_films_releases_get_with_http_info(year, month, opts)
|
137
|
+
|
138
|
+
```ruby
|
139
|
+
begin
|
140
|
+
# получить список цифровых релизов
|
141
|
+
data, status_code, headers = api_instance.api_v21_films_releases_get_with_http_info(year, month, opts)
|
142
|
+
p status_code # => 2xx
|
143
|
+
p headers # => { ... }
|
144
|
+
p data # => <DigitalReleaseResponse>
|
145
|
+
rescue Kuapir::ApiError => e
|
146
|
+
puts "Error when calling FilmsApi->api_v21_films_releases_get_with_http_info: #{e}"
|
147
|
+
end
|
148
|
+
```
|
149
|
+
|
150
|
+
### Parameters
|
151
|
+
|
152
|
+
| Name | Type | Description | Notes |
|
153
|
+
| ---- | ---- | ----------- | ----- |
|
154
|
+
| **year** | **Integer** | год релиза | |
|
155
|
+
| **month** | **String** | месяц релиза | |
|
156
|
+
| **page** | **Integer** | номер страницы | [optional][default to 1] |
|
157
|
+
|
158
|
+
### Return type
|
159
|
+
|
160
|
+
[**DigitalReleaseResponse**](DigitalReleaseResponse.md)
|
161
|
+
|
162
|
+
### Authorization
|
163
|
+
|
164
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
165
|
+
|
166
|
+
### HTTP request headers
|
167
|
+
|
168
|
+
- **Content-Type**: Not defined
|
169
|
+
- **Accept**: application/json
|
170
|
+
|
171
|
+
|
172
|
+
## api_v21_films_search_by_keyword_get
|
173
|
+
|
174
|
+
> <FilmSearchResponse> api_v21_films_search_by_keyword_get(keyword, opts)
|
175
|
+
|
176
|
+
получить список фильмов по ключевым словам
|
177
|
+
|
178
|
+
Возвращает список фильмов с пагинацией. Каждая страница содержит не более чем 20 фильмов.
|
179
|
+
|
180
|
+
### Examples
|
181
|
+
|
182
|
+
```ruby
|
183
|
+
require 'time'
|
184
|
+
require 'kuapir'
|
185
|
+
# setup authorization
|
186
|
+
Kuapir.configure do |config|
|
187
|
+
# Configure API key authorization: ApiKeyAuth
|
188
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
189
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
190
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
191
|
+
end
|
192
|
+
|
193
|
+
api_instance = Kuapir::FilmsApi.new
|
194
|
+
keyword = 'keyword_example' # String | ключивые слова для поиска
|
195
|
+
opts = {
|
196
|
+
page: 56 # Integer | номер страницы
|
197
|
+
}
|
198
|
+
|
199
|
+
begin
|
200
|
+
# получить список фильмов по ключевым словам
|
201
|
+
result = api_instance.api_v21_films_search_by_keyword_get(keyword, opts)
|
202
|
+
p result
|
203
|
+
rescue Kuapir::ApiError => e
|
204
|
+
puts "Error when calling FilmsApi->api_v21_films_search_by_keyword_get: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
#### Using the api_v21_films_search_by_keyword_get_with_http_info variant
|
209
|
+
|
210
|
+
This returns an Array which contains the response data, status code and headers.
|
211
|
+
|
212
|
+
> <Array(<FilmSearchResponse>, Integer, Hash)> api_v21_films_search_by_keyword_get_with_http_info(keyword, opts)
|
213
|
+
|
214
|
+
```ruby
|
215
|
+
begin
|
216
|
+
# получить список фильмов по ключевым словам
|
217
|
+
data, status_code, headers = api_instance.api_v21_films_search_by_keyword_get_with_http_info(keyword, opts)
|
218
|
+
p status_code # => 2xx
|
219
|
+
p headers # => { ... }
|
220
|
+
p data # => <FilmSearchResponse>
|
221
|
+
rescue Kuapir::ApiError => e
|
222
|
+
puts "Error when calling FilmsApi->api_v21_films_search_by_keyword_get_with_http_info: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
### Parameters
|
227
|
+
|
228
|
+
| Name | Type | Description | Notes |
|
229
|
+
| ---- | ---- | ----------- | ----- |
|
230
|
+
| **keyword** | **String** | ключивые слова для поиска | |
|
231
|
+
| **page** | **Integer** | номер страницы | [optional][default to 1] |
|
232
|
+
|
233
|
+
### Return type
|
234
|
+
|
235
|
+
[**FilmSearchResponse**](FilmSearchResponse.md)
|
236
|
+
|
237
|
+
### Authorization
|
238
|
+
|
239
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
240
|
+
|
241
|
+
### HTTP request headers
|
242
|
+
|
243
|
+
- **Content-Type**: Not defined
|
244
|
+
- **Accept**: application/json
|
245
|
+
|
246
|
+
|
247
|
+
## api_v22_films_filters_get
|
248
|
+
|
249
|
+
> <FiltersResponse> api_v22_films_filters_get
|
250
|
+
|
251
|
+
получить id стран и жанров для использования в /api/v2.2/films
|
252
|
+
|
253
|
+
Возвращает список id стран и жанров, которые могут быть использованы в /api/v2.2/films
|
254
|
+
|
255
|
+
### Examples
|
256
|
+
|
257
|
+
```ruby
|
258
|
+
require 'time'
|
259
|
+
require 'kuapir'
|
260
|
+
# setup authorization
|
261
|
+
Kuapir.configure do |config|
|
262
|
+
# Configure API key authorization: ApiKeyAuth
|
263
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
264
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
265
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
266
|
+
end
|
267
|
+
|
268
|
+
api_instance = Kuapir::FilmsApi.new
|
269
|
+
|
270
|
+
begin
|
271
|
+
# получить id стран и жанров для использования в /api/v2.2/films
|
272
|
+
result = api_instance.api_v22_films_filters_get
|
273
|
+
p result
|
274
|
+
rescue Kuapir::ApiError => e
|
275
|
+
puts "Error when calling FilmsApi->api_v22_films_filters_get: #{e}"
|
276
|
+
end
|
277
|
+
```
|
278
|
+
|
279
|
+
#### Using the api_v22_films_filters_get_with_http_info variant
|
280
|
+
|
281
|
+
This returns an Array which contains the response data, status code and headers.
|
282
|
+
|
283
|
+
> <Array(<FiltersResponse>, Integer, Hash)> api_v22_films_filters_get_with_http_info
|
284
|
+
|
285
|
+
```ruby
|
286
|
+
begin
|
287
|
+
# получить id стран и жанров для использования в /api/v2.2/films
|
288
|
+
data, status_code, headers = api_instance.api_v22_films_filters_get_with_http_info
|
289
|
+
p status_code # => 2xx
|
290
|
+
p headers # => { ... }
|
291
|
+
p data # => <FiltersResponse>
|
292
|
+
rescue Kuapir::ApiError => e
|
293
|
+
puts "Error when calling FilmsApi->api_v22_films_filters_get_with_http_info: #{e}"
|
294
|
+
end
|
295
|
+
```
|
296
|
+
|
297
|
+
### Parameters
|
298
|
+
|
299
|
+
This endpoint does not need any parameter.
|
300
|
+
|
301
|
+
### Return type
|
302
|
+
|
303
|
+
[**FiltersResponse**](FiltersResponse.md)
|
304
|
+
|
305
|
+
### Authorization
|
306
|
+
|
307
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
308
|
+
|
309
|
+
### HTTP request headers
|
310
|
+
|
311
|
+
- **Content-Type**: Not defined
|
312
|
+
- **Accept**: application/json
|
313
|
+
|
314
|
+
|
315
|
+
## api_v22_films_get
|
316
|
+
|
317
|
+
> <FilmSearchByFiltersResponse> api_v22_films_get(opts)
|
318
|
+
|
319
|
+
получить список фильмов по различным фильтрам
|
320
|
+
|
321
|
+
Возвращает список фильмов с пагинацией. Каждая страница содержит не более чем 20 фильмов. Данный эндпоинт не возращает более 400 фильмов. <i>Используй /api/v2.2/films/filters чтобы получить id стран и жанров.</i>
|
322
|
+
|
323
|
+
### Examples
|
324
|
+
|
325
|
+
```ruby
|
326
|
+
require 'time'
|
327
|
+
require 'kuapir'
|
328
|
+
# setup authorization
|
329
|
+
Kuapir.configure do |config|
|
330
|
+
# Configure API key authorization: ApiKeyAuth
|
331
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
332
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
333
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
334
|
+
end
|
335
|
+
|
336
|
+
api_instance = Kuapir::FilmsApi.new
|
337
|
+
opts = {
|
338
|
+
countries: [37], # Array<Integer> | список id стран разделенные запятой. Например <i>countries=1,2,3</i>. На данный момент можно указать не более одной страны.
|
339
|
+
genres: [37], # Array<Integer> | список id жанров разделенные запятой. Например <i>genres=1,2,3</i>. На данный момент можно указать не более одного жанра.
|
340
|
+
order: 'RATING', # String | сортировка
|
341
|
+
type: 'FILM', # String | тип фильма
|
342
|
+
rating_from: 56, # Integer | минимальный рейтинг
|
343
|
+
rating_to: 56, # Integer | максимальный рейтинг
|
344
|
+
year_from: 56, # Integer | минимальный год
|
345
|
+
year_to: 56, # Integer | максимальный год
|
346
|
+
imdb_id: 'imdb_id_example', # String | imdb id
|
347
|
+
keyword: 'keyword_example', # String | ключевое слово, которое встречается в названии фильма
|
348
|
+
page: 56 # Integer | номер страницы
|
349
|
+
}
|
350
|
+
|
351
|
+
begin
|
352
|
+
# получить список фильмов по различным фильтрам
|
353
|
+
result = api_instance.api_v22_films_get(opts)
|
354
|
+
p result
|
355
|
+
rescue Kuapir::ApiError => e
|
356
|
+
puts "Error when calling FilmsApi->api_v22_films_get: #{e}"
|
357
|
+
end
|
358
|
+
```
|
359
|
+
|
360
|
+
#### Using the api_v22_films_get_with_http_info variant
|
361
|
+
|
362
|
+
This returns an Array which contains the response data, status code and headers.
|
363
|
+
|
364
|
+
> <Array(<FilmSearchByFiltersResponse>, Integer, Hash)> api_v22_films_get_with_http_info(opts)
|
365
|
+
|
366
|
+
```ruby
|
367
|
+
begin
|
368
|
+
# получить список фильмов по различным фильтрам
|
369
|
+
data, status_code, headers = api_instance.api_v22_films_get_with_http_info(opts)
|
370
|
+
p status_code # => 2xx
|
371
|
+
p headers # => { ... }
|
372
|
+
p data # => <FilmSearchByFiltersResponse>
|
373
|
+
rescue Kuapir::ApiError => e
|
374
|
+
puts "Error when calling FilmsApi->api_v22_films_get_with_http_info: #{e}"
|
375
|
+
end
|
376
|
+
```
|
377
|
+
|
378
|
+
### Parameters
|
379
|
+
|
380
|
+
| Name | Type | Description | Notes |
|
381
|
+
| ---- | ---- | ----------- | ----- |
|
382
|
+
| **countries** | [**Array<Integer>**](Integer.md) | список id стран разделенные запятой. Например <i>countries=1,2,3</i>. На данный момент можно указать не более одной страны. | [optional] |
|
383
|
+
| **genres** | [**Array<Integer>**](Integer.md) | список id жанров разделенные запятой. Например <i>genres=1,2,3</i>. На данный момент можно указать не более одного жанра. | [optional] |
|
384
|
+
| **order** | **String** | сортировка | [optional][default to 'RATING'] |
|
385
|
+
| **type** | **String** | тип фильма | [optional][default to 'ALL'] |
|
386
|
+
| **rating_from** | **Integer** | минимальный рейтинг | [optional][default to 0] |
|
387
|
+
| **rating_to** | **Integer** | максимальный рейтинг | [optional][default to 10] |
|
388
|
+
| **year_from** | **Integer** | минимальный год | [optional][default to 1000] |
|
389
|
+
| **year_to** | **Integer** | максимальный год | [optional][default to 3000] |
|
390
|
+
| **imdb_id** | **String** | imdb id | [optional] |
|
391
|
+
| **keyword** | **String** | ключевое слово, которое встречается в названии фильма | [optional] |
|
392
|
+
| **page** | **Integer** | номер страницы | [optional][default to 1] |
|
393
|
+
|
394
|
+
### Return type
|
395
|
+
|
396
|
+
[**FilmSearchByFiltersResponse**](FilmSearchByFiltersResponse.md)
|
397
|
+
|
398
|
+
### Authorization
|
399
|
+
|
400
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
401
|
+
|
402
|
+
### HTTP request headers
|
403
|
+
|
404
|
+
- **Content-Type**: Not defined
|
405
|
+
- **Accept**: application/json
|
406
|
+
|
407
|
+
|
408
|
+
## api_v22_films_id_box_office_get
|
409
|
+
|
410
|
+
> <BoxOfficeResponse> api_v22_films_id_box_office_get(id)
|
411
|
+
|
412
|
+
получить данные о бюджете и сборах фильма по kinopoisk film id
|
413
|
+
|
414
|
+
Данный эндпоинт возвращает данные о бюджете и сборах.
|
415
|
+
|
416
|
+
### Examples
|
417
|
+
|
418
|
+
```ruby
|
419
|
+
require 'time'
|
420
|
+
require 'kuapir'
|
421
|
+
# setup authorization
|
422
|
+
Kuapir.configure do |config|
|
423
|
+
# Configure API key authorization: ApiKeyAuth
|
424
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
425
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
426
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
427
|
+
end
|
428
|
+
|
429
|
+
api_instance = Kuapir::FilmsApi.new
|
430
|
+
id = 56 # Integer | kinopoisk film id
|
431
|
+
|
432
|
+
begin
|
433
|
+
# получить данные о бюджете и сборах фильма по kinopoisk film id
|
434
|
+
result = api_instance.api_v22_films_id_box_office_get(id)
|
435
|
+
p result
|
436
|
+
rescue Kuapir::ApiError => e
|
437
|
+
puts "Error when calling FilmsApi->api_v22_films_id_box_office_get: #{e}"
|
438
|
+
end
|
439
|
+
```
|
440
|
+
|
441
|
+
#### Using the api_v22_films_id_box_office_get_with_http_info variant
|
442
|
+
|
443
|
+
This returns an Array which contains the response data, status code and headers.
|
444
|
+
|
445
|
+
> <Array(<BoxOfficeResponse>, Integer, Hash)> api_v22_films_id_box_office_get_with_http_info(id)
|
446
|
+
|
447
|
+
```ruby
|
448
|
+
begin
|
449
|
+
# получить данные о бюджете и сборах фильма по kinopoisk film id
|
450
|
+
data, status_code, headers = api_instance.api_v22_films_id_box_office_get_with_http_info(id)
|
451
|
+
p status_code # => 2xx
|
452
|
+
p headers # => { ... }
|
453
|
+
p data # => <BoxOfficeResponse>
|
454
|
+
rescue Kuapir::ApiError => e
|
455
|
+
puts "Error when calling FilmsApi->api_v22_films_id_box_office_get_with_http_info: #{e}"
|
456
|
+
end
|
457
|
+
```
|
458
|
+
|
459
|
+
### Parameters
|
460
|
+
|
461
|
+
| Name | Type | Description | Notes |
|
462
|
+
| ---- | ---- | ----------- | ----- |
|
463
|
+
| **id** | **Integer** | kinopoisk film id | |
|
464
|
+
|
465
|
+
### Return type
|
466
|
+
|
467
|
+
[**BoxOfficeResponse**](BoxOfficeResponse.md)
|
468
|
+
|
469
|
+
### Authorization
|
470
|
+
|
471
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
472
|
+
|
473
|
+
### HTTP request headers
|
474
|
+
|
475
|
+
- **Content-Type**: Not defined
|
476
|
+
- **Accept**: application/json
|
477
|
+
|
478
|
+
|
479
|
+
## api_v22_films_id_distributions_get
|
480
|
+
|
481
|
+
> <DistributionResponse> api_v22_films_id_distributions_get(id)
|
482
|
+
|
483
|
+
получить данные о прокате фильма по kinopoisk film id
|
484
|
+
|
485
|
+
Данный эндпоинт возвращает данные о прокате в разных странах.
|
486
|
+
|
487
|
+
### Examples
|
488
|
+
|
489
|
+
```ruby
|
490
|
+
require 'time'
|
491
|
+
require 'kuapir'
|
492
|
+
# setup authorization
|
493
|
+
Kuapir.configure do |config|
|
494
|
+
# Configure API key authorization: ApiKeyAuth
|
495
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
496
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
497
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
498
|
+
end
|
499
|
+
|
500
|
+
api_instance = Kuapir::FilmsApi.new
|
501
|
+
id = 56 # Integer | kinopoisk film id
|
502
|
+
|
503
|
+
begin
|
504
|
+
# получить данные о прокате фильма по kinopoisk film id
|
505
|
+
result = api_instance.api_v22_films_id_distributions_get(id)
|
506
|
+
p result
|
507
|
+
rescue Kuapir::ApiError => e
|
508
|
+
puts "Error when calling FilmsApi->api_v22_films_id_distributions_get: #{e}"
|
509
|
+
end
|
510
|
+
```
|
511
|
+
|
512
|
+
#### Using the api_v22_films_id_distributions_get_with_http_info variant
|
513
|
+
|
514
|
+
This returns an Array which contains the response data, status code and headers.
|
515
|
+
|
516
|
+
> <Array(<DistributionResponse>, Integer, Hash)> api_v22_films_id_distributions_get_with_http_info(id)
|
517
|
+
|
518
|
+
```ruby
|
519
|
+
begin
|
520
|
+
# получить данные о прокате фильма по kinopoisk film id
|
521
|
+
data, status_code, headers = api_instance.api_v22_films_id_distributions_get_with_http_info(id)
|
522
|
+
p status_code # => 2xx
|
523
|
+
p headers # => { ... }
|
524
|
+
p data # => <DistributionResponse>
|
525
|
+
rescue Kuapir::ApiError => e
|
526
|
+
puts "Error when calling FilmsApi->api_v22_films_id_distributions_get_with_http_info: #{e}"
|
527
|
+
end
|
528
|
+
```
|
529
|
+
|
530
|
+
### Parameters
|
531
|
+
|
532
|
+
| Name | Type | Description | Notes |
|
533
|
+
| ---- | ---- | ----------- | ----- |
|
534
|
+
| **id** | **Integer** | kinopoisk film id | |
|
535
|
+
|
536
|
+
### Return type
|
537
|
+
|
538
|
+
[**DistributionResponse**](DistributionResponse.md)
|
539
|
+
|
540
|
+
### Authorization
|
541
|
+
|
542
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
543
|
+
|
544
|
+
### HTTP request headers
|
545
|
+
|
546
|
+
- **Content-Type**: Not defined
|
547
|
+
- **Accept**: application/json
|
548
|
+
|
549
|
+
|
550
|
+
## api_v22_films_id_facts_get
|
551
|
+
|
552
|
+
> <FactResponse> api_v22_films_id_facts_get(id)
|
553
|
+
|
554
|
+
получить данные о фактах и ошибках в фильме по kinopoisk film id
|
555
|
+
|
556
|
+
Данный эндпоинт возвращает список фактов и ошибок в фильме. <br> type - <b>FACT</b>, обозначает интересный факт о фильме. <br> type - <b>BLOOPER</b>, обозначает ошибку в фильме.
|
557
|
+
|
558
|
+
### Examples
|
559
|
+
|
560
|
+
```ruby
|
561
|
+
require 'time'
|
562
|
+
require 'kuapir'
|
563
|
+
# setup authorization
|
564
|
+
Kuapir.configure do |config|
|
565
|
+
# Configure API key authorization: ApiKeyAuth
|
566
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
567
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
568
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
569
|
+
end
|
570
|
+
|
571
|
+
api_instance = Kuapir::FilmsApi.new
|
572
|
+
id = 56 # Integer | kinopoisk film id
|
573
|
+
|
574
|
+
begin
|
575
|
+
# получить данные о фактах и ошибках в фильме по kinopoisk film id
|
576
|
+
result = api_instance.api_v22_films_id_facts_get(id)
|
577
|
+
p result
|
578
|
+
rescue Kuapir::ApiError => e
|
579
|
+
puts "Error when calling FilmsApi->api_v22_films_id_facts_get: #{e}"
|
580
|
+
end
|
581
|
+
```
|
582
|
+
|
583
|
+
#### Using the api_v22_films_id_facts_get_with_http_info variant
|
584
|
+
|
585
|
+
This returns an Array which contains the response data, status code and headers.
|
586
|
+
|
587
|
+
> <Array(<FactResponse>, Integer, Hash)> api_v22_films_id_facts_get_with_http_info(id)
|
588
|
+
|
589
|
+
```ruby
|
590
|
+
begin
|
591
|
+
# получить данные о фактах и ошибках в фильме по kinopoisk film id
|
592
|
+
data, status_code, headers = api_instance.api_v22_films_id_facts_get_with_http_info(id)
|
593
|
+
p status_code # => 2xx
|
594
|
+
p headers # => { ... }
|
595
|
+
p data # => <FactResponse>
|
596
|
+
rescue Kuapir::ApiError => e
|
597
|
+
puts "Error when calling FilmsApi->api_v22_films_id_facts_get_with_http_info: #{e}"
|
598
|
+
end
|
599
|
+
```
|
600
|
+
|
601
|
+
### Parameters
|
602
|
+
|
603
|
+
| Name | Type | Description | Notes |
|
604
|
+
| ---- | ---- | ----------- | ----- |
|
605
|
+
| **id** | **Integer** | kinopoisk film id | |
|
606
|
+
|
607
|
+
### Return type
|
608
|
+
|
609
|
+
[**FactResponse**](FactResponse.md)
|
610
|
+
|
611
|
+
### Authorization
|
612
|
+
|
613
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
614
|
+
|
615
|
+
### HTTP request headers
|
616
|
+
|
617
|
+
- **Content-Type**: Not defined
|
618
|
+
- **Accept**: application/json
|
619
|
+
|
620
|
+
|
621
|
+
## api_v22_films_id_get
|
622
|
+
|
623
|
+
> <Film> api_v22_films_id_get(id)
|
624
|
+
|
625
|
+
получить данные о фильме по kinopoisk id
|
626
|
+
|
627
|
+
Данный эндпоинт возвращает базовые данные о фильме. Поле <b>lastSync</b> показывает дату последнего обновления данных.
|
628
|
+
|
629
|
+
### Examples
|
630
|
+
|
631
|
+
```ruby
|
632
|
+
require 'time'
|
633
|
+
require 'kuapir'
|
634
|
+
# setup authorization
|
635
|
+
Kuapir.configure do |config|
|
636
|
+
# Configure API key authorization: ApiKeyAuth
|
637
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
638
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
639
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
640
|
+
end
|
641
|
+
|
642
|
+
api_instance = Kuapir::FilmsApi.new
|
643
|
+
id = 56 # Integer | kinopoisk film id
|
644
|
+
|
645
|
+
begin
|
646
|
+
# получить данные о фильме по kinopoisk id
|
647
|
+
result = api_instance.api_v22_films_id_get(id)
|
648
|
+
p result
|
649
|
+
rescue Kuapir::ApiError => e
|
650
|
+
puts "Error when calling FilmsApi->api_v22_films_id_get: #{e}"
|
651
|
+
end
|
652
|
+
```
|
653
|
+
|
654
|
+
#### Using the api_v22_films_id_get_with_http_info variant
|
655
|
+
|
656
|
+
This returns an Array which contains the response data, status code and headers.
|
657
|
+
|
658
|
+
> <Array(<Film>, Integer, Hash)> api_v22_films_id_get_with_http_info(id)
|
659
|
+
|
660
|
+
```ruby
|
661
|
+
begin
|
662
|
+
# получить данные о фильме по kinopoisk id
|
663
|
+
data, status_code, headers = api_instance.api_v22_films_id_get_with_http_info(id)
|
664
|
+
p status_code # => 2xx
|
665
|
+
p headers # => { ... }
|
666
|
+
p data # => <Film>
|
667
|
+
rescue Kuapir::ApiError => e
|
668
|
+
puts "Error when calling FilmsApi->api_v22_films_id_get_with_http_info: #{e}"
|
669
|
+
end
|
670
|
+
```
|
671
|
+
|
672
|
+
### Parameters
|
673
|
+
|
674
|
+
| Name | Type | Description | Notes |
|
675
|
+
| ---- | ---- | ----------- | ----- |
|
676
|
+
| **id** | **Integer** | kinopoisk film id | |
|
677
|
+
|
678
|
+
### Return type
|
679
|
+
|
680
|
+
[**Film**](Film.md)
|
681
|
+
|
682
|
+
### Authorization
|
683
|
+
|
684
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
685
|
+
|
686
|
+
### HTTP request headers
|
687
|
+
|
688
|
+
- **Content-Type**: Not defined
|
689
|
+
- **Accept**: application/json
|
690
|
+
|
691
|
+
|
692
|
+
## api_v22_films_id_images_get
|
693
|
+
|
694
|
+
> <ImageResponse> api_v22_films_id_images_get(id, opts)
|
695
|
+
|
696
|
+
получить изображения(кадры, постеры, фан-арты, обои и т.д.) связанные с фильмом по kinopoisk film id
|
697
|
+
|
698
|
+
Данный эндпоинт возвращает изображения связанные с фильмом с пагинацией. Каждая страница содержит <b>не более чем 20 фильмов</b>.</br> Доступные изображения:</br> <ul> <li>STILL - кадры</li> <li>SHOOTING - изображения со съемок</li> <li>POSTER - постеры</li> <li>FAN_ART - фан-арты</li> <li>PROMO - промо</li> <li>CONCEPT - концепт-арты</li> <li>WALLPAPER - обои</li> <li>COVER - обложки</li> <li>SCREENSHOT - скриншоты</li> </ul>
|
699
|
+
|
700
|
+
### Examples
|
701
|
+
|
702
|
+
```ruby
|
703
|
+
require 'time'
|
704
|
+
require 'kuapir'
|
705
|
+
# setup authorization
|
706
|
+
Kuapir.configure do |config|
|
707
|
+
# Configure API key authorization: ApiKeyAuth
|
708
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
709
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
710
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
711
|
+
end
|
712
|
+
|
713
|
+
api_instance = Kuapir::FilmsApi.new
|
714
|
+
id = 56 # Integer | kinopoisk film id
|
715
|
+
opts = {
|
716
|
+
type: 'STILL', # String | тип изображения
|
717
|
+
page: 56 # Integer | номер страницы
|
718
|
+
}
|
719
|
+
|
720
|
+
begin
|
721
|
+
# получить изображения(кадры, постеры, фан-арты, обои и т.д.) связанные с фильмом по kinopoisk film id
|
722
|
+
result = api_instance.api_v22_films_id_images_get(id, opts)
|
723
|
+
p result
|
724
|
+
rescue Kuapir::ApiError => e
|
725
|
+
puts "Error when calling FilmsApi->api_v22_films_id_images_get: #{e}"
|
726
|
+
end
|
727
|
+
```
|
728
|
+
|
729
|
+
#### Using the api_v22_films_id_images_get_with_http_info variant
|
730
|
+
|
731
|
+
This returns an Array which contains the response data, status code and headers.
|
732
|
+
|
733
|
+
> <Array(<ImageResponse>, Integer, Hash)> api_v22_films_id_images_get_with_http_info(id, opts)
|
734
|
+
|
735
|
+
```ruby
|
736
|
+
begin
|
737
|
+
# получить изображения(кадры, постеры, фан-арты, обои и т.д.) связанные с фильмом по kinopoisk film id
|
738
|
+
data, status_code, headers = api_instance.api_v22_films_id_images_get_with_http_info(id, opts)
|
739
|
+
p status_code # => 2xx
|
740
|
+
p headers # => { ... }
|
741
|
+
p data # => <ImageResponse>
|
742
|
+
rescue Kuapir::ApiError => e
|
743
|
+
puts "Error when calling FilmsApi->api_v22_films_id_images_get_with_http_info: #{e}"
|
744
|
+
end
|
745
|
+
```
|
746
|
+
|
747
|
+
### Parameters
|
748
|
+
|
749
|
+
| Name | Type | Description | Notes |
|
750
|
+
| ---- | ---- | ----------- | ----- |
|
751
|
+
| **id** | **Integer** | kinopoisk film id | |
|
752
|
+
| **type** | **String** | тип изображения | [optional][default to 'STILL'] |
|
753
|
+
| **page** | **Integer** | номер страницы | [optional][default to 1] |
|
754
|
+
|
755
|
+
### Return type
|
756
|
+
|
757
|
+
[**ImageResponse**](ImageResponse.md)
|
758
|
+
|
759
|
+
### Authorization
|
760
|
+
|
761
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
762
|
+
|
763
|
+
### HTTP request headers
|
764
|
+
|
765
|
+
- **Content-Type**: Not defined
|
766
|
+
- **Accept**: application/json
|
767
|
+
|
768
|
+
|
769
|
+
## api_v22_films_id_seasons_get
|
770
|
+
|
771
|
+
> <SeasonResponse> api_v22_films_id_seasons_get(id)
|
772
|
+
|
773
|
+
получить данные о сезонах для сериала по kinopoisk film id
|
774
|
+
|
775
|
+
Данный эндпоинт возвращает данные о сезонах для сериала.
|
776
|
+
|
777
|
+
### Examples
|
778
|
+
|
779
|
+
```ruby
|
780
|
+
require 'time'
|
781
|
+
require 'kuapir'
|
782
|
+
# setup authorization
|
783
|
+
Kuapir.configure do |config|
|
784
|
+
# Configure API key authorization: ApiKeyAuth
|
785
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
786
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
787
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
788
|
+
end
|
789
|
+
|
790
|
+
api_instance = Kuapir::FilmsApi.new
|
791
|
+
id = 56 # Integer | kinopoisk film id
|
792
|
+
|
793
|
+
begin
|
794
|
+
# получить данные о сезонах для сериала по kinopoisk film id
|
795
|
+
result = api_instance.api_v22_films_id_seasons_get(id)
|
796
|
+
p result
|
797
|
+
rescue Kuapir::ApiError => e
|
798
|
+
puts "Error when calling FilmsApi->api_v22_films_id_seasons_get: #{e}"
|
799
|
+
end
|
800
|
+
```
|
801
|
+
|
802
|
+
#### Using the api_v22_films_id_seasons_get_with_http_info variant
|
803
|
+
|
804
|
+
This returns an Array which contains the response data, status code and headers.
|
805
|
+
|
806
|
+
> <Array(<SeasonResponse>, Integer, Hash)> api_v22_films_id_seasons_get_with_http_info(id)
|
807
|
+
|
808
|
+
```ruby
|
809
|
+
begin
|
810
|
+
# получить данные о сезонах для сериала по kinopoisk film id
|
811
|
+
data, status_code, headers = api_instance.api_v22_films_id_seasons_get_with_http_info(id)
|
812
|
+
p status_code # => 2xx
|
813
|
+
p headers # => { ... }
|
814
|
+
p data # => <SeasonResponse>
|
815
|
+
rescue Kuapir::ApiError => e
|
816
|
+
puts "Error when calling FilmsApi->api_v22_films_id_seasons_get_with_http_info: #{e}"
|
817
|
+
end
|
818
|
+
```
|
819
|
+
|
820
|
+
### Parameters
|
821
|
+
|
822
|
+
| Name | Type | Description | Notes |
|
823
|
+
| ---- | ---- | ----------- | ----- |
|
824
|
+
| **id** | **Integer** | kinopoisk film id | |
|
825
|
+
|
826
|
+
### Return type
|
827
|
+
|
828
|
+
[**SeasonResponse**](SeasonResponse.md)
|
829
|
+
|
830
|
+
### Authorization
|
831
|
+
|
832
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
833
|
+
|
834
|
+
### HTTP request headers
|
835
|
+
|
836
|
+
- **Content-Type**: Not defined
|
837
|
+
- **Accept**: application/json
|
838
|
+
|
839
|
+
|
840
|
+
## api_v22_films_id_similars_get
|
841
|
+
|
842
|
+
> <RelatedFilmResponse> api_v22_films_id_similars_get(id)
|
843
|
+
|
844
|
+
получить список похожих фильмов по kinopoisk film id
|
845
|
+
|
846
|
+
### Examples
|
847
|
+
|
848
|
+
```ruby
|
849
|
+
require 'time'
|
850
|
+
require 'kuapir'
|
851
|
+
# setup authorization
|
852
|
+
Kuapir.configure do |config|
|
853
|
+
# Configure API key authorization: ApiKeyAuth
|
854
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
855
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
856
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
857
|
+
end
|
858
|
+
|
859
|
+
api_instance = Kuapir::FilmsApi.new
|
860
|
+
id = 56 # Integer | kinopoisk film id
|
861
|
+
|
862
|
+
begin
|
863
|
+
# получить список похожих фильмов по kinopoisk film id
|
864
|
+
result = api_instance.api_v22_films_id_similars_get(id)
|
865
|
+
p result
|
866
|
+
rescue Kuapir::ApiError => e
|
867
|
+
puts "Error when calling FilmsApi->api_v22_films_id_similars_get: #{e}"
|
868
|
+
end
|
869
|
+
```
|
870
|
+
|
871
|
+
#### Using the api_v22_films_id_similars_get_with_http_info variant
|
872
|
+
|
873
|
+
This returns an Array which contains the response data, status code and headers.
|
874
|
+
|
875
|
+
> <Array(<RelatedFilmResponse>, Integer, Hash)> api_v22_films_id_similars_get_with_http_info(id)
|
876
|
+
|
877
|
+
```ruby
|
878
|
+
begin
|
879
|
+
# получить список похожих фильмов по kinopoisk film id
|
880
|
+
data, status_code, headers = api_instance.api_v22_films_id_similars_get_with_http_info(id)
|
881
|
+
p status_code # => 2xx
|
882
|
+
p headers # => { ... }
|
883
|
+
p data # => <RelatedFilmResponse>
|
884
|
+
rescue Kuapir::ApiError => e
|
885
|
+
puts "Error when calling FilmsApi->api_v22_films_id_similars_get_with_http_info: #{e}"
|
886
|
+
end
|
887
|
+
```
|
888
|
+
|
889
|
+
### Parameters
|
890
|
+
|
891
|
+
| Name | Type | Description | Notes |
|
892
|
+
| ---- | ---- | ----------- | ----- |
|
893
|
+
| **id** | **Integer** | kinopoisk film id | |
|
894
|
+
|
895
|
+
### Return type
|
896
|
+
|
897
|
+
[**RelatedFilmResponse**](RelatedFilmResponse.md)
|
898
|
+
|
899
|
+
### Authorization
|
900
|
+
|
901
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
902
|
+
|
903
|
+
### HTTP request headers
|
904
|
+
|
905
|
+
- **Content-Type**: Not defined
|
906
|
+
- **Accept**: application/json
|
907
|
+
|
908
|
+
|
909
|
+
## api_v22_films_id_videos_get
|
910
|
+
|
911
|
+
> <VideoResponse> api_v22_films_id_videos_get(id)
|
912
|
+
|
913
|
+
получить трейлеры,тизеры,видео для фильма по kinopoisk film id
|
914
|
+
|
915
|
+
Данный эндпоинт возвращает трейлеры,тизеры,видео для фильма по kinopoisk film id. В данный момент доступно два site: <br/> <ul><li>YOUTUBE - в этом случае <b>url</b> это просто ссылка на youtube видео.</li><li>KINOPOISK_WIDGET - в этом случае <b>url</b> это ссылка на кинопоиск виджет. Например https://widgets.kinopoisk.ru/discovery/trailer/123573?onlyPlayer=1&autoplay=1&cover=1. Если вы хотите вставить этот виджет на вашу страницу, вы можете сделать следующее: <br/><br/><script src="https://unpkg.com/@ungap/custom-elements-builtin"></script><br/><script type="module" src="https://unpkg.com/x-frame-bypass"></script><br/><iframe is="x-frame-bypass" src="https://widgets.kinopoisk.ru/discovery/trailer/167560?onlyPlayer=1&autoplay=1&cover=1" width="500" height="500"></iframe></li></ul>
|
916
|
+
|
917
|
+
### Examples
|
918
|
+
|
919
|
+
```ruby
|
920
|
+
require 'time'
|
921
|
+
require 'kuapir'
|
922
|
+
# setup authorization
|
923
|
+
Kuapir.configure do |config|
|
924
|
+
# Configure API key authorization: ApiKeyAuth
|
925
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
926
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
927
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
928
|
+
end
|
929
|
+
|
930
|
+
api_instance = Kuapir::FilmsApi.new
|
931
|
+
id = 56 # Integer | kinopoisk film id
|
932
|
+
|
933
|
+
begin
|
934
|
+
# получить трейлеры,тизеры,видео для фильма по kinopoisk film id
|
935
|
+
result = api_instance.api_v22_films_id_videos_get(id)
|
936
|
+
p result
|
937
|
+
rescue Kuapir::ApiError => e
|
938
|
+
puts "Error when calling FilmsApi->api_v22_films_id_videos_get: #{e}"
|
939
|
+
end
|
940
|
+
```
|
941
|
+
|
942
|
+
#### Using the api_v22_films_id_videos_get_with_http_info variant
|
943
|
+
|
944
|
+
This returns an Array which contains the response data, status code and headers.
|
945
|
+
|
946
|
+
> <Array(<VideoResponse>, Integer, Hash)> api_v22_films_id_videos_get_with_http_info(id)
|
947
|
+
|
948
|
+
```ruby
|
949
|
+
begin
|
950
|
+
# получить трейлеры,тизеры,видео для фильма по kinopoisk film id
|
951
|
+
data, status_code, headers = api_instance.api_v22_films_id_videos_get_with_http_info(id)
|
952
|
+
p status_code # => 2xx
|
953
|
+
p headers # => { ... }
|
954
|
+
p data # => <VideoResponse>
|
955
|
+
rescue Kuapir::ApiError => e
|
956
|
+
puts "Error when calling FilmsApi->api_v22_films_id_videos_get_with_http_info: #{e}"
|
957
|
+
end
|
958
|
+
```
|
959
|
+
|
960
|
+
### Parameters
|
961
|
+
|
962
|
+
| Name | Type | Description | Notes |
|
963
|
+
| ---- | ---- | ----------- | ----- |
|
964
|
+
| **id** | **Integer** | kinopoisk film id | |
|
965
|
+
|
966
|
+
### Return type
|
967
|
+
|
968
|
+
[**VideoResponse**](VideoResponse.md)
|
969
|
+
|
970
|
+
### Authorization
|
971
|
+
|
972
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
973
|
+
|
974
|
+
### HTTP request headers
|
975
|
+
|
976
|
+
- **Content-Type**: Not defined
|
977
|
+
- **Accept**: application/json
|
978
|
+
|
979
|
+
|
980
|
+
## api_v22_films_premieres_get
|
981
|
+
|
982
|
+
> <PremiereResponse> api_v22_films_premieres_get(year, month)
|
983
|
+
|
984
|
+
получить список кинопремьер
|
985
|
+
|
986
|
+
Данный эндпоинт возвращает список кинопремьер. Например https://www.kinopoisk.ru/premiere/
|
987
|
+
|
988
|
+
### Examples
|
989
|
+
|
990
|
+
```ruby
|
991
|
+
require 'time'
|
992
|
+
require 'kuapir'
|
993
|
+
# setup authorization
|
994
|
+
Kuapir.configure do |config|
|
995
|
+
# Configure API key authorization: ApiKeyAuth
|
996
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
997
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
998
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
999
|
+
end
|
1000
|
+
|
1001
|
+
api_instance = Kuapir::FilmsApi.new
|
1002
|
+
year = 56 # Integer | год релиза
|
1003
|
+
month = 'JANUARY' # String | месяц релиза
|
1004
|
+
|
1005
|
+
begin
|
1006
|
+
# получить список кинопремьер
|
1007
|
+
result = api_instance.api_v22_films_premieres_get(year, month)
|
1008
|
+
p result
|
1009
|
+
rescue Kuapir::ApiError => e
|
1010
|
+
puts "Error when calling FilmsApi->api_v22_films_premieres_get: #{e}"
|
1011
|
+
end
|
1012
|
+
```
|
1013
|
+
|
1014
|
+
#### Using the api_v22_films_premieres_get_with_http_info variant
|
1015
|
+
|
1016
|
+
This returns an Array which contains the response data, status code and headers.
|
1017
|
+
|
1018
|
+
> <Array(<PremiereResponse>, Integer, Hash)> api_v22_films_premieres_get_with_http_info(year, month)
|
1019
|
+
|
1020
|
+
```ruby
|
1021
|
+
begin
|
1022
|
+
# получить список кинопремьер
|
1023
|
+
data, status_code, headers = api_instance.api_v22_films_premieres_get_with_http_info(year, month)
|
1024
|
+
p status_code # => 2xx
|
1025
|
+
p headers # => { ... }
|
1026
|
+
p data # => <PremiereResponse>
|
1027
|
+
rescue Kuapir::ApiError => e
|
1028
|
+
puts "Error when calling FilmsApi->api_v22_films_premieres_get_with_http_info: #{e}"
|
1029
|
+
end
|
1030
|
+
```
|
1031
|
+
|
1032
|
+
### Parameters
|
1033
|
+
|
1034
|
+
| Name | Type | Description | Notes |
|
1035
|
+
| ---- | ---- | ----------- | ----- |
|
1036
|
+
| **year** | **Integer** | год релиза | |
|
1037
|
+
| **month** | **String** | месяц релиза | |
|
1038
|
+
|
1039
|
+
### Return type
|
1040
|
+
|
1041
|
+
[**PremiereResponse**](PremiereResponse.md)
|
1042
|
+
|
1043
|
+
### Authorization
|
1044
|
+
|
1045
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
1046
|
+
|
1047
|
+
### HTTP request headers
|
1048
|
+
|
1049
|
+
- **Content-Type**: Not defined
|
1050
|
+
- **Accept**: application/json
|
1051
|
+
|
1052
|
+
|
1053
|
+
## api_v22_films_top_get
|
1054
|
+
|
1055
|
+
> <FilmTopResponse> api_v22_films_top_get(opts)
|
1056
|
+
|
1057
|
+
получить список фильмов из различных топов или коллекций. Например https://www.kinopoisk.ru/top/lists/58/
|
1058
|
+
|
1059
|
+
Возвращает список фильмов с пагинацией. Каждая страница содержит не более чем 20 фильмов.
|
1060
|
+
|
1061
|
+
### Examples
|
1062
|
+
|
1063
|
+
```ruby
|
1064
|
+
require 'time'
|
1065
|
+
require 'kuapir'
|
1066
|
+
# setup authorization
|
1067
|
+
Kuapir.configure do |config|
|
1068
|
+
# Configure API key authorization: ApiKeyAuth
|
1069
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
1070
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1071
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
api_instance = Kuapir::FilmsApi.new
|
1075
|
+
opts = {
|
1076
|
+
type: 'TOP_250_BEST_FILMS', # String | тип топа или коллекции
|
1077
|
+
page: 56 # Integer | номер страницы
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
begin
|
1081
|
+
# получить список фильмов из различных топов или коллекций. Например https://www.kinopoisk.ru/top/lists/58/
|
1082
|
+
result = api_instance.api_v22_films_top_get(opts)
|
1083
|
+
p result
|
1084
|
+
rescue Kuapir::ApiError => e
|
1085
|
+
puts "Error when calling FilmsApi->api_v22_films_top_get: #{e}"
|
1086
|
+
end
|
1087
|
+
```
|
1088
|
+
|
1089
|
+
#### Using the api_v22_films_top_get_with_http_info variant
|
1090
|
+
|
1091
|
+
This returns an Array which contains the response data, status code and headers.
|
1092
|
+
|
1093
|
+
> <Array(<FilmTopResponse>, Integer, Hash)> api_v22_films_top_get_with_http_info(opts)
|
1094
|
+
|
1095
|
+
```ruby
|
1096
|
+
begin
|
1097
|
+
# получить список фильмов из различных топов или коллекций. Например https://www.kinopoisk.ru/top/lists/58/
|
1098
|
+
data, status_code, headers = api_instance.api_v22_films_top_get_with_http_info(opts)
|
1099
|
+
p status_code # => 2xx
|
1100
|
+
p headers # => { ... }
|
1101
|
+
p data # => <FilmTopResponse>
|
1102
|
+
rescue Kuapir::ApiError => e
|
1103
|
+
puts "Error when calling FilmsApi->api_v22_films_top_get_with_http_info: #{e}"
|
1104
|
+
end
|
1105
|
+
```
|
1106
|
+
|
1107
|
+
### Parameters
|
1108
|
+
|
1109
|
+
| Name | Type | Description | Notes |
|
1110
|
+
| ---- | ---- | ----------- | ----- |
|
1111
|
+
| **type** | **String** | тип топа или коллекции | [optional][default to 'TOP_250_BEST_FILMS'] |
|
1112
|
+
| **page** | **Integer** | номер страницы | [optional][default to 1] |
|
1113
|
+
|
1114
|
+
### Return type
|
1115
|
+
|
1116
|
+
[**FilmTopResponse**](FilmTopResponse.md)
|
1117
|
+
|
1118
|
+
### Authorization
|
1119
|
+
|
1120
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
1121
|
+
|
1122
|
+
### HTTP request headers
|
1123
|
+
|
1124
|
+
- **Content-Type**: Not defined
|
1125
|
+
- **Accept**: application/json
|
1126
|
+
|