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.
Files changed (190) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +13 -0
  3. data/Gemfile.lock +77 -0
  4. data/LICENSE +21 -0
  5. data/README.md +170 -0
  6. data/Rakefile +12 -0
  7. data/docs/BoxOffice.md +26 -0
  8. data/docs/BoxOfficeResponse.md +20 -0
  9. data/docs/Company.md +18 -0
  10. data/docs/Country.md +18 -0
  11. data/docs/DigitalReleaseItem.md +44 -0
  12. data/docs/DigitalReleaseResponse.md +22 -0
  13. data/docs/Distribution.md +28 -0
  14. data/docs/DistributionResponse.md +20 -0
  15. data/docs/Episode.md +28 -0
  16. data/docs/Fact.md +22 -0
  17. data/docs/FactResponse.md +20 -0
  18. data/docs/Film.md +100 -0
  19. data/docs/FilmSearchByFiltersResponse.md +22 -0
  20. data/docs/FilmSearchByFiltersResponseItems.md +42 -0
  21. data/docs/FilmSearchResponse.md +24 -0
  22. data/docs/FilmSearchResponseFilms.md +42 -0
  23. data/docs/FilmSequelsAndPrequelsResponse.md +30 -0
  24. data/docs/FilmTopResponse.md +20 -0
  25. data/docs/FilmTopResponseFilms.md +38 -0
  26. data/docs/FilmsApi.md +1126 -0
  27. data/docs/FiltersResponse.md +20 -0
  28. data/docs/FiltersResponseCountries.md +20 -0
  29. data/docs/FiltersResponseGenres.md +20 -0
  30. data/docs/Genre.md +18 -0
  31. data/docs/ImageResponse.md +22 -0
  32. data/docs/ImageResponseItems.md +20 -0
  33. data/docs/PersonByNameResponse.md +20 -0
  34. data/docs/PersonByNameResponseItems.md +28 -0
  35. data/docs/PersonResponse.md +50 -0
  36. data/docs/PersonResponseFilms.md +30 -0
  37. data/docs/PersonResponseSpouses.md +32 -0
  38. data/docs/PersonsApi.md +83 -0
  39. data/docs/PremiereResponse.md +20 -0
  40. data/docs/PremiereResponseItem.md +36 -0
  41. data/docs/RelatedFilmResponse.md +20 -0
  42. data/docs/RelatedFilmResponseItems.md +30 -0
  43. data/docs/ReviewDetailsResponse.md +32 -0
  44. data/docs/ReviewsApi.md +155 -0
  45. data/docs/ReviewsResponse.md +34 -0
  46. data/docs/ReviewsResponseReviews.md +32 -0
  47. data/docs/Season.md +20 -0
  48. data/docs/SeasonResponse.md +20 -0
  49. data/docs/StaffApi.md +147 -0
  50. data/docs/StaffResponse.md +30 -0
  51. data/docs/VideoResponse.md +20 -0
  52. data/docs/VideoResponseItems.md +22 -0
  53. data/kinopoiskapiunofficial-openapi.json +2918 -0
  54. data/kuapir.gemspec +42 -0
  55. data/lib/kuapir/api/films_api.rb +1193 -0
  56. data/lib/kuapir/api/persons_api.rb +89 -0
  57. data/lib/kuapir/api/reviews_api.rb +165 -0
  58. data/lib/kuapir/api/staff_api.rb +145 -0
  59. data/lib/kuapir/api_client.rb +390 -0
  60. data/lib/kuapir/api_error.rb +57 -0
  61. data/lib/kuapir/configuration.rb +287 -0
  62. data/lib/kuapir/models/box_office.rb +246 -0
  63. data/lib/kuapir/models/box_office_response.rb +224 -0
  64. data/lib/kuapir/models/company.rb +214 -0
  65. data/lib/kuapir/models/country.rb +214 -0
  66. data/lib/kuapir/models/digital_release_item.rb +334 -0
  67. data/lib/kuapir/models/digital_release_response.rb +232 -0
  68. data/lib/kuapir/models/distribution.rb +300 -0
  69. data/lib/kuapir/models/distribution_response.rb +224 -0
  70. data/lib/kuapir/models/episode.rb +249 -0
  71. data/lib/kuapir/models/fact.rb +266 -0
  72. data/lib/kuapir/models/fact_response.rb +224 -0
  73. data/lib/kuapir/models/film.rb +551 -0
  74. data/lib/kuapir/models/film_search_by_filters_response.rb +232 -0
  75. data/lib/kuapir/models/film_search_by_filters_response_items.rb +319 -0
  76. data/lib/kuapir/models/film_search_response.rb +244 -0
  77. data/lib/kuapir/models/film_search_response_films.rb +311 -0
  78. data/lib/kuapir/models/film_sequels_and_prequels_response.rb +300 -0
  79. data/lib/kuapir/models/film_top_response.rb +224 -0
  80. data/lib/kuapir/models/film_top_response_films.rb +272 -0
  81. data/lib/kuapir/models/filters_response.rb +226 -0
  82. data/lib/kuapir/models/filters_response_countries.rb +214 -0
  83. data/lib/kuapir/models/filters_response_genres.rb +214 -0
  84. data/lib/kuapir/models/genre.rb +214 -0
  85. data/lib/kuapir/models/image_response.rb +238 -0
  86. data/lib/kuapir/models/image_response_items.rb +214 -0
  87. data/lib/kuapir/models/person_by_name_response.rb +224 -0
  88. data/lib/kuapir/models/person_by_name_response_items.rb +274 -0
  89. data/lib/kuapir/models/person_response.rb +363 -0
  90. data/lib/kuapir/models/person_response_films.rb +284 -0
  91. data/lib/kuapir/models/person_response_spouses.rb +283 -0
  92. data/lib/kuapir/models/premiere_response.rb +224 -0
  93. data/lib/kuapir/models/premiere_response_item.rb +289 -0
  94. data/lib/kuapir/models/related_film_response.rb +224 -0
  95. data/lib/kuapir/models/related_film_response_items.rb +279 -0
  96. data/lib/kuapir/models/review_details_response.rb +314 -0
  97. data/lib/kuapir/models/reviews_response.rb +294 -0
  98. data/lib/kuapir/models/reviews_response_reviews.rb +282 -0
  99. data/lib/kuapir/models/season.rb +224 -0
  100. data/lib/kuapir/models/season_response.rb +224 -0
  101. data/lib/kuapir/models/staff_response.rb +301 -0
  102. data/lib/kuapir/models/video_response.rb +224 -0
  103. data/lib/kuapir/models/video_response_items.rb +255 -0
  104. data/lib/kuapir/version.rb +5 -0
  105. data/lib/kuapir.rb +83 -0
  106. data/openapi-generator-templates/Gemfile.mustache +9 -0
  107. data/openapi-generator-templates/README.mustache +148 -0
  108. data/openapi-generator-templates/Rakefile.mustache +10 -0
  109. data/openapi-generator-templates/api.mustache +205 -0
  110. data/openapi-generator-templates/api_client.mustache +260 -0
  111. data/openapi-generator-templates/api_client_faraday_partial.mustache +136 -0
  112. data/openapi-generator-templates/api_client_spec.mustache +216 -0
  113. data/openapi-generator-templates/api_client_typhoeus_partial.mustache +153 -0
  114. data/openapi-generator-templates/api_doc.mustache +118 -0
  115. data/openapi-generator-templates/api_error.mustache +45 -0
  116. data/openapi-generator-templates/api_info.mustache +12 -0
  117. data/openapi-generator-templates/api_test.mustache +43 -0
  118. data/openapi-generator-templates/base_object.mustache +120 -0
  119. data/openapi-generator-templates/configuration.mustache +381 -0
  120. data/openapi-generator-templates/configuration_spec.mustache +30 -0
  121. data/openapi-generator-templates/configuration_tls_faraday_partial.mustache +29 -0
  122. data/openapi-generator-templates/configuration_tls_typhoeus_partial.mustache +34 -0
  123. data/openapi-generator-templates/gem.mustache +50 -0
  124. data/openapi-generator-templates/gemspec.mustache +31 -0
  125. data/openapi-generator-templates/git_push.sh.mustache +57 -0
  126. data/openapi-generator-templates/gitignore.mustache +39 -0
  127. data/openapi-generator-templates/model.mustache +22 -0
  128. data/openapi-generator-templates/model_doc.mustache +12 -0
  129. data/openapi-generator-templates/model_test.mustache +73 -0
  130. data/openapi-generator-templates/partial_model_enum_class.mustache +20 -0
  131. data/openapi-generator-templates/partial_model_generic.mustache +371 -0
  132. data/openapi-generator-templates/partial_model_generic_doc.mustache +28 -0
  133. data/openapi-generator-templates/partial_oneof_module.mustache +137 -0
  134. data/openapi-generator-templates/partial_oneof_module_doc.mustache +92 -0
  135. data/openapi-generator-templates/rspec.mustache +2 -0
  136. data/openapi-generator-templates/rubocop.mustache +148 -0
  137. data/openapi-generator-templates/spec_helper.mustache +99 -0
  138. data/openapi-generator-templates/travis.mustache +14 -0
  139. data/openapi-generator-templates/version.mustache +3 -0
  140. data/openapitools.json +21 -0
  141. data/spec/api/films_api_spec.rb +227 -0
  142. data/spec/api/persons_api_spec.rb +45 -0
  143. data/spec/api/reviews_api_spec.rb +57 -0
  144. data/spec/api/staff_api_spec.rb +54 -0
  145. data/spec/api_client_spec.rb +229 -0
  146. data/spec/configuration_spec.rb +28 -0
  147. data/spec/models/box_office_response_spec.rb +37 -0
  148. data/spec/models/box_office_spec.rb +55 -0
  149. data/spec/models/company_spec.rb +31 -0
  150. data/spec/models/country_spec.rb +31 -0
  151. data/spec/models/digital_release_item_spec.rb +109 -0
  152. data/spec/models/digital_release_response_spec.rb +43 -0
  153. data/spec/models/distribution_response_spec.rb +37 -0
  154. data/spec/models/distribution_spec.rb +69 -0
  155. data/spec/models/episode_spec.rb +61 -0
  156. data/spec/models/fact_response_spec.rb +37 -0
  157. data/spec/models/fact_spec.rb +47 -0
  158. data/spec/models/film_search_by_filters_response_items_spec.rb +107 -0
  159. data/spec/models/film_search_by_filters_response_spec.rb +43 -0
  160. data/spec/models/film_search_response_films_spec.rb +107 -0
  161. data/spec/models/film_search_response_spec.rb +49 -0
  162. data/spec/models/film_sequels_and_prequels_response_spec.rb +71 -0
  163. data/spec/models/film_spec.rb +285 -0
  164. data/spec/models/film_top_response_films_spec.rb +91 -0
  165. data/spec/models/film_top_response_spec.rb +37 -0
  166. data/spec/models/filters_response_countries_spec.rb +37 -0
  167. data/spec/models/filters_response_genres_spec.rb +37 -0
  168. data/spec/models/filters_response_spec.rb +37 -0
  169. data/spec/models/genre_spec.rb +31 -0
  170. data/spec/models/image_response_items_spec.rb +37 -0
  171. data/spec/models/image_response_spec.rb +43 -0
  172. data/spec/models/person_by_name_response_items_spec.rb +65 -0
  173. data/spec/models/person_by_name_response_spec.rb +37 -0
  174. data/spec/models/person_response_films_spec.rb +71 -0
  175. data/spec/models/person_response_spec.rb +131 -0
  176. data/spec/models/person_response_spouses_spec.rb +77 -0
  177. data/spec/models/premiere_response_item_spec.rb +85 -0
  178. data/spec/models/premiere_response_spec.rb +37 -0
  179. data/spec/models/related_film_response_items_spec.rb +71 -0
  180. data/spec/models/related_film_response_spec.rb +37 -0
  181. data/spec/models/review_details_response_spec.rb +77 -0
  182. data/spec/models/reviews_response_reviews_spec.rb +77 -0
  183. data/spec/models/reviews_response_spec.rb +79 -0
  184. data/spec/models/season_response_spec.rb +37 -0
  185. data/spec/models/season_spec.rb +37 -0
  186. data/spec/models/staff_response_spec.rb +71 -0
  187. data/spec/models/video_response_items_spec.rb +47 -0
  188. data/spec/models/video_response_spec.rb +37 -0
  189. data/spec/spec_helper.rb +107 -0
  190. metadata +326 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 501deb3329ce81dbfb78ce901bb4d58f739603db255b26dc3e8cd040ea5fc18b
4
+ data.tar.gz: 06b1821a936ddcb7fdc0788a7d42b89f474b9a43341389d1a2386c7d629be20e
5
+ SHA512:
6
+ metadata.gz: e5934b5614cde3df0fc84f97a1934b2f7a4fa993768083c1081e96466af6a5fe70671789160e91542300c993f19e24c465ed2b9274f839a3c97d74d4c3c7fbcf
7
+ data.tar.gz: d3bc6abed415e34b4f29217cff122600f943cc4ce5d596d3341b0ab360a77b50422a965e139b529937ae82234ead0aee1cf331915e8a352df6ef44ca2be0460e
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ group :development, :test do
8
+ gem "awesome_print"
9
+ gem "pry-byebug"
10
+ gem "rake", "~> 13.0.1"
11
+ gem "rubocop", "~> 1.11.0"
12
+ gem "rubocop-performance", "~> 1.10"
13
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,77 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kuapir (0.1.2)
5
+ typhoeus (~> 1.0, >= 1.0.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ awesome_print (1.9.2)
12
+ byebug (11.1.3)
13
+ coderay (1.1.3)
14
+ diff-lcs (1.5.0)
15
+ ethon (0.15.0)
16
+ ffi (>= 1.15.0)
17
+ ffi (1.15.5)
18
+ method_source (1.0.0)
19
+ parallel (1.21.0)
20
+ parser (3.1.0.0)
21
+ ast (~> 2.4.1)
22
+ pry (0.13.1)
23
+ coderay (~> 1.1)
24
+ method_source (~> 1.0)
25
+ pry-byebug (3.9.0)
26
+ byebug (~> 11.0)
27
+ pry (~> 0.13.0)
28
+ rainbow (3.1.1)
29
+ rake (13.0.6)
30
+ regexp_parser (2.2.0)
31
+ rexml (3.2.5)
32
+ rspec (3.10.0)
33
+ rspec-core (~> 3.10.0)
34
+ rspec-expectations (~> 3.10.0)
35
+ rspec-mocks (~> 3.10.0)
36
+ rspec-core (3.10.1)
37
+ rspec-support (~> 3.10.0)
38
+ rspec-expectations (3.10.1)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.10.0)
41
+ rspec-mocks (3.10.2)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.10.0)
44
+ rspec-support (3.10.3)
45
+ rubocop (1.11.0)
46
+ parallel (~> 1.10)
47
+ parser (>= 3.0.0.0)
48
+ rainbow (>= 2.2.2, < 4.0)
49
+ regexp_parser (>= 1.8, < 3.0)
50
+ rexml
51
+ rubocop-ast (>= 1.2.0, < 2.0)
52
+ ruby-progressbar (~> 1.7)
53
+ unicode-display_width (>= 1.4.0, < 3.0)
54
+ rubocop-ast (1.15.1)
55
+ parser (>= 3.0.1.1)
56
+ rubocop-performance (1.13.1)
57
+ rubocop (>= 1.7.0, < 2.0)
58
+ rubocop-ast (>= 0.4.0)
59
+ ruby-progressbar (1.11.0)
60
+ typhoeus (1.4.0)
61
+ ethon (>= 0.9.0)
62
+ unicode-display_width (2.1.0)
63
+
64
+ PLATFORMS
65
+ x86_64-linux
66
+
67
+ DEPENDENCIES
68
+ awesome_print
69
+ kuapir!
70
+ pry-byebug
71
+ rake (~> 13.0.1)
72
+ rspec (~> 3.6, >= 3.6.0)
73
+ rubocop (~> 1.11.0)
74
+ rubocop-performance (~> 1.10)
75
+
76
+ BUNDLED WITH
77
+ 2.2.15
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright © 2022 kuapir
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,170 @@
1
+ # kuapir
2
+
3
+ Kuapir - the Ruby gem for the Kinopoisk Unofficial API
4
+
5
+ Kinopoisk Unofficial API предеставляет доступ к данным сайта https://www.kinopoisk.ru.
6
+ Для доступа вы должны получить токен, который будет доступен после регистрации на [https://kinopoiskapiunofficial.tech](https://kinopoiskapiunofficial.tech)
7
+ *Ограничения:* лимитов на общее кол-во запросов нет. Но есть на кол-во запросов в секунду.
8
+ Каждый пользователь имеет ограничение в *20 req/sec*.
9
+ *Некоторые* эндпоинты имеют свои собственные ограничения, они указаны в описании для статуса *429*.
10
+
11
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
12
+
13
+ - API version: 2.0.1
14
+ - Package version: 1.0.0
15
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
16
+
17
+ ## Installation
18
+
19
+ ### Build a gem
20
+
21
+ To build the Ruby code into a gem:
22
+
23
+ ```shell
24
+ gem build kuapir.gemspec
25
+ ```
26
+
27
+ Then either install the gem locally:
28
+
29
+ ```shell
30
+ gem install ./kuapir-1.0.0.gem
31
+ ```
32
+
33
+ (for development, run `gem install --dev ./kuapir-1.0.0.gem` to install the development dependencies)
34
+
35
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
36
+
37
+ Finally add this to the Gemfile:
38
+
39
+ gem 'kuapir', '~> 1.0.0'
40
+
41
+ ### Install from Git
42
+
43
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
44
+
45
+ gem 'kuapir', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
46
+
47
+ ### Include the Ruby code directly
48
+
49
+ Include the Ruby code directly using `-I` as follows:
50
+
51
+ ```shell
52
+ ruby -Ilib script.rb
53
+ ```
54
+
55
+ ## Getting Started
56
+
57
+ Please follow the [installation](#installation) procedure and then run the following code:
58
+
59
+ ```ruby
60
+ # Load the gem
61
+ require 'kuapir'
62
+
63
+ # Setup authorization
64
+ Kuapir.configure do |config|
65
+ # Configure API key authorization: ApiKeyAuth
66
+ config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
67
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
68
+ # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
69
+
70
+ # Uncomment the following line to set a proxy for requests (defaults to nil)
71
+ # config.proxy = 'http://my_proxy.com:1111'
72
+ end
73
+
74
+ api_instance = Kuapir::FilmsApi.new
75
+ id = 56 # Integer | kinopoisk film id
76
+
77
+ begin
78
+ #получить сиквелы и приквелы для фильма по kinopoisk film id
79
+ result = api_instance.api_v21_films_id_sequels_and_prequels_get(id)
80
+ p result
81
+ rescue Kuapir::ApiError => e
82
+ puts "Exception when calling FilmsApi->api_v21_films_id_sequels_and_prequels_get: #{e}"
83
+ end
84
+
85
+ ```
86
+
87
+ ## Documentation for API Endpoints
88
+
89
+ All URIs are relative to *https://kinopoiskapiunofficial.tech*
90
+
91
+ Class | Method | HTTP request | Description
92
+ ------------ | ------------- | ------------- | -------------
93
+ *Kuapir::FilmsApi* | [**api_v21_films_id_sequels_and_prequels_get**](docs/FilmsApi.md#api_v21_films_id_sequels_and_prequels_get) | **GET** /api/v2.1/films/{id}/sequels_and_prequels | получить сиквелы и приквелы для фильма по kinopoisk film id
94
+ *Kuapir::FilmsApi* | [**api_v21_films_releases_get**](docs/FilmsApi.md#api_v21_films_releases_get) | **GET** /api/v2.1/films/releases | получить список цифровых релизов
95
+ *Kuapir::FilmsApi* | [**api_v21_films_search_by_keyword_get**](docs/FilmsApi.md#api_v21_films_search_by_keyword_get) | **GET** /api/v2.1/films/search-by-keyword | получить список фильмов по ключевым словам
96
+ *Kuapir::FilmsApi* | [**api_v22_films_filters_get**](docs/FilmsApi.md#api_v22_films_filters_get) | **GET** /api/v2.2/films/filters | получить id стран и жанров для использования в /api/v2.2/films
97
+ *Kuapir::FilmsApi* | [**api_v22_films_get**](docs/FilmsApi.md#api_v22_films_get) | **GET** /api/v2.2/films | получить список фильмов по различным фильтрам
98
+ *Kuapir::FilmsApi* | [**api_v22_films_id_box_office_get**](docs/FilmsApi.md#api_v22_films_id_box_office_get) | **GET** /api/v2.2/films/{id}/box_office | получить данные о бюджете и сборах фильма по kinopoisk film id
99
+ *Kuapir::FilmsApi* | [**api_v22_films_id_distributions_get**](docs/FilmsApi.md#api_v22_films_id_distributions_get) | **GET** /api/v2.2/films/{id}/distributions | получить данные о прокате фильма по kinopoisk film id
100
+ *Kuapir::FilmsApi* | [**api_v22_films_id_facts_get**](docs/FilmsApi.md#api_v22_films_id_facts_get) | **GET** /api/v2.2/films/{id}/facts | получить данные о фактах и ошибках в фильме по kinopoisk film id
101
+ *Kuapir::FilmsApi* | [**api_v22_films_id_get**](docs/FilmsApi.md#api_v22_films_id_get) | **GET** /api/v2.2/films/{id} | получить данные о фильме по kinopoisk id
102
+ *Kuapir::FilmsApi* | [**api_v22_films_id_images_get**](docs/FilmsApi.md#api_v22_films_id_images_get) | **GET** /api/v2.2/films/{id}/images | получить изображения(кадры, постеры, фан-арты, обои и т.д.) связанные с фильмом по kinopoisk film id
103
+ *Kuapir::FilmsApi* | [**api_v22_films_id_seasons_get**](docs/FilmsApi.md#api_v22_films_id_seasons_get) | **GET** /api/v2.2/films/{id}/seasons | получить данные о сезонах для сериала по kinopoisk film id
104
+ *Kuapir::FilmsApi* | [**api_v22_films_id_similars_get**](docs/FilmsApi.md#api_v22_films_id_similars_get) | **GET** /api/v2.2/films/{id}/similars | получить список похожих фильмов по kinopoisk film id
105
+ *Kuapir::FilmsApi* | [**api_v22_films_id_videos_get**](docs/FilmsApi.md#api_v22_films_id_videos_get) | **GET** /api/v2.2/films/{id}/videos | получить трейлеры,тизеры,видео для фильма по kinopoisk film id
106
+ *Kuapir::FilmsApi* | [**api_v22_films_premieres_get**](docs/FilmsApi.md#api_v22_films_premieres_get) | **GET** /api/v2.2/films/premieres | получить список кинопремьер
107
+ *Kuapir::FilmsApi* | [**api_v22_films_top_get**](docs/FilmsApi.md#api_v22_films_top_get) | **GET** /api/v2.2/films/top | получить список фильмов из различных топов или коллекций. Например https://www.kinopoisk.ru/top/lists/58/
108
+ *Kuapir::PersonsApi* | [**api_v1_persons_get**](docs/PersonsApi.md#api_v1_persons_get) | **GET** /api/v1/persons | поиск актеров, режиссеров и т.д. по имени
109
+ *Kuapir::ReviewsApi* | [**api_v1_reviews_details_get**](docs/ReviewsApi.md#api_v1_reviews_details_get) | **GET** /api/v1/reviews/details | получить полную рецензию по kinopoisk review id
110
+ *Kuapir::ReviewsApi* | [**api_v1_reviews_get**](docs/ReviewsApi.md#api_v1_reviews_get) | **GET** /api/v1/reviews | получить рецензии зрителей
111
+ *Kuapir::StaffApi* | [**api_v1_staff_get**](docs/StaffApi.md#api_v1_staff_get) | **GET** /api/v1/staff | получить данные об актерах, режисерах и т.д. по kinopoisk film id
112
+ *Kuapir::StaffApi* | [**api_v1_staff_id_get**](docs/StaffApi.md#api_v1_staff_id_get) | **GET** /api/v1/staff/{id} | получить данные о конкретном человеке по kinopoisk person id
113
+
114
+
115
+ ## Documentation for Models
116
+
117
+ - [Kuapir::BoxOffice](docs/BoxOffice.md)
118
+ - [Kuapir::BoxOfficeResponse](docs/BoxOfficeResponse.md)
119
+ - [Kuapir::Company](docs/Company.md)
120
+ - [Kuapir::Country](docs/Country.md)
121
+ - [Kuapir::DigitalReleaseItem](docs/DigitalReleaseItem.md)
122
+ - [Kuapir::DigitalReleaseResponse](docs/DigitalReleaseResponse.md)
123
+ - [Kuapir::Distribution](docs/Distribution.md)
124
+ - [Kuapir::DistributionResponse](docs/DistributionResponse.md)
125
+ - [Kuapir::Episode](docs/Episode.md)
126
+ - [Kuapir::Fact](docs/Fact.md)
127
+ - [Kuapir::FactResponse](docs/FactResponse.md)
128
+ - [Kuapir::Film](docs/Film.md)
129
+ - [Kuapir::FilmSearchByFiltersResponse](docs/FilmSearchByFiltersResponse.md)
130
+ - [Kuapir::FilmSearchByFiltersResponseItems](docs/FilmSearchByFiltersResponseItems.md)
131
+ - [Kuapir::FilmSearchResponse](docs/FilmSearchResponse.md)
132
+ - [Kuapir::FilmSearchResponseFilms](docs/FilmSearchResponseFilms.md)
133
+ - [Kuapir::FilmSequelsAndPrequelsResponse](docs/FilmSequelsAndPrequelsResponse.md)
134
+ - [Kuapir::FilmTopResponse](docs/FilmTopResponse.md)
135
+ - [Kuapir::FilmTopResponseFilms](docs/FilmTopResponseFilms.md)
136
+ - [Kuapir::FiltersResponse](docs/FiltersResponse.md)
137
+ - [Kuapir::FiltersResponseCountries](docs/FiltersResponseCountries.md)
138
+ - [Kuapir::FiltersResponseGenres](docs/FiltersResponseGenres.md)
139
+ - [Kuapir::Genre](docs/Genre.md)
140
+ - [Kuapir::ImageResponse](docs/ImageResponse.md)
141
+ - [Kuapir::ImageResponseItems](docs/ImageResponseItems.md)
142
+ - [Kuapir::PersonByNameResponse](docs/PersonByNameResponse.md)
143
+ - [Kuapir::PersonByNameResponseItems](docs/PersonByNameResponseItems.md)
144
+ - [Kuapir::PersonResponse](docs/PersonResponse.md)
145
+ - [Kuapir::PersonResponseFilms](docs/PersonResponseFilms.md)
146
+ - [Kuapir::PersonResponseSpouses](docs/PersonResponseSpouses.md)
147
+ - [Kuapir::PremiereResponse](docs/PremiereResponse.md)
148
+ - [Kuapir::PremiereResponseItem](docs/PremiereResponseItem.md)
149
+ - [Kuapir::RelatedFilmResponse](docs/RelatedFilmResponse.md)
150
+ - [Kuapir::RelatedFilmResponseItems](docs/RelatedFilmResponseItems.md)
151
+ - [Kuapir::ReviewDetailsResponse](docs/ReviewDetailsResponse.md)
152
+ - [Kuapir::ReviewsResponse](docs/ReviewsResponse.md)
153
+ - [Kuapir::ReviewsResponseReviews](docs/ReviewsResponseReviews.md)
154
+ - [Kuapir::Season](docs/Season.md)
155
+ - [Kuapir::SeasonResponse](docs/SeasonResponse.md)
156
+ - [Kuapir::StaffResponse](docs/StaffResponse.md)
157
+ - [Kuapir::VideoResponse](docs/VideoResponse.md)
158
+ - [Kuapir::VideoResponseItems](docs/VideoResponseItems.md)
159
+
160
+
161
+ ## Documentation for Authorization
162
+
163
+
164
+ ### ApiKeyAuth
165
+
166
+
167
+ - **Type**: API key
168
+ - **API key parameter name**: X-API-KEY
169
+ - **Location**: HTTP header
170
+
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+
5
+ begin
6
+ require "rspec/core/rake_task"
7
+
8
+ RSpec::Core::RakeTask.new(:spec)
9
+ task default: :spec
10
+ rescue LoadError
11
+ # no rspec available
12
+ end
data/docs/BoxOffice.md ADDED
@@ -0,0 +1,26 @@
1
+ # Kuapir::BoxOffice
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | |
8
+ | **amount** | **Integer** | | |
9
+ | **currency_code** | **String** | | |
10
+ | **name** | **String** | | |
11
+ | **symbol** | **String** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'kuapir'
17
+
18
+ instance = Kuapir::BoxOffice.new(
19
+ type: BUDGET,
20
+ amount: 63000000,
21
+ currency_code: USD,
22
+ name: US Dollar,
23
+ symbol: $
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # Kuapir::BoxOfficeResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total** | **Integer** | | |
8
+ | **items** | [**Array&lt;BoxOffice&gt;**](BoxOffice.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'kuapir'
14
+
15
+ instance = Kuapir::BoxOfficeResponse.new(
16
+ total: 5,
17
+ items: null
18
+ )
19
+ ```
20
+
data/docs/Company.md ADDED
@@ -0,0 +1,18 @@
1
+ # Kuapir::Company
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'kuapir'
13
+
14
+ instance = Kuapir::Company.new(
15
+ name: Каро-Премьер
16
+ )
17
+ ```
18
+
data/docs/Country.md ADDED
@@ -0,0 +1,18 @@
1
+ # Kuapir::Country
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **country** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'kuapir'
13
+
14
+ instance = Kuapir::Country.new(
15
+ country: США
16
+ )
17
+ ```
18
+
@@ -0,0 +1,44 @@
1
+ # Kuapir::DigitalReleaseItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **film_id** | **Integer** | | |
8
+ | **name_ru** | **String** | | |
9
+ | **name_en** | **String** | | |
10
+ | **year** | **Integer** | | |
11
+ | **poster_url** | **String** | | |
12
+ | **poster_url_preview** | **String** | | |
13
+ | **countries** | [**Array&lt;Country&gt;**](Country.md) | | |
14
+ | **genres** | [**Array&lt;Genre&gt;**](Genre.md) | | |
15
+ | **rating** | **Float** | | |
16
+ | **rating_vote_count** | **Integer** | | |
17
+ | **expectations_rating** | **Float** | | |
18
+ | **expectations_rating_vote_count** | **Integer** | | |
19
+ | **duration** | **Integer** | | |
20
+ | **release_date** | **String** | | |
21
+
22
+ ## Example
23
+
24
+ ```ruby
25
+ require 'kuapir'
26
+
27
+ instance = Kuapir::DigitalReleaseItem.new(
28
+ film_id: 301,
29
+ name_ru: Дитя погоды,
30
+ name_en: Tenki no ko,
31
+ year: 2019,
32
+ poster_url: http://kinopoiskapiunofficial.tech/images/posters/kp/1219417.jpg,
33
+ poster_url_preview: https://kinopoiskapiunofficial.tech/images/posters/kp_small/301.jpg,
34
+ countries: null,
35
+ genres: null,
36
+ rating: 7.962,
37
+ rating_vote_count: 14502,
38
+ expectations_rating: 99.13,
39
+ expectations_rating_vote_count: 1123,
40
+ duration: 112,
41
+ release_date: 2020-06-01
42
+ )
43
+ ```
44
+
@@ -0,0 +1,22 @@
1
+ # Kuapir::DigitalReleaseResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page** | **Integer** | | |
8
+ | **total** | **Integer** | | |
9
+ | **releases** | [**Array&lt;DigitalReleaseItem&gt;**](DigitalReleaseItem.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'kuapir'
15
+
16
+ instance = Kuapir::DigitalReleaseResponse.new(
17
+ page: 1,
18
+ total: 34,
19
+ releases: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,28 @@
1
+ # Kuapir::Distribution
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | |
8
+ | **sub_type** | **String** | | |
9
+ | **date** | **String** | | |
10
+ | **re_release** | **Boolean** | | |
11
+ | **country** | [**Country**](Country.md) | | |
12
+ | **companies** | [**Array&lt;Company&gt;**](Company.md) | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'kuapir'
18
+
19
+ instance = Kuapir::Distribution.new(
20
+ type: PREMIERE,
21
+ sub_type: CINEMA,
22
+ date: 1999-05-07,
23
+ re_release: false,
24
+ country: null,
25
+ companies: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,20 @@
1
+ # Kuapir::DistributionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total** | **Integer** | | |
8
+ | **items** | [**Array&lt;Distribution&gt;**](Distribution.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'kuapir'
14
+
15
+ instance = Kuapir::DistributionResponse.new(
16
+ total: 5,
17
+ items: null
18
+ )
19
+ ```
20
+
data/docs/Episode.md ADDED
@@ -0,0 +1,28 @@
1
+ # Kuapir::Episode
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **season_number** | **Integer** | | |
8
+ | **episode_number** | **Integer** | | |
9
+ | **name_ru** | **String** | | |
10
+ | **name_en** | **String** | | |
11
+ | **synopsis** | **String** | | |
12
+ | **release_date** | **String** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'kuapir'
18
+
19
+ instance = Kuapir::Episode.new(
20
+ season_number: 1,
21
+ episode_number: 1,
22
+ name_ru: null,
23
+ name_en: Chapter One: The Vanishing of Will Byers,
24
+ synopsis: The Vanishing of Will Byers...,
25
+ release_date: 2016-07-15
26
+ )
27
+ ```
28
+
data/docs/Fact.md ADDED
@@ -0,0 +1,22 @@
1
+ # Kuapir::Fact
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **text** | **String** | | |
8
+ | **type** | **String** | | |
9
+ | **spoiler** | **Boolean** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'kuapir'
15
+
16
+ instance = Kuapir::Fact.new(
17
+ text: В эпизоде, где Тринити и Нео в поисках Морфиуса оказываются на крыше...,
18
+ type: BLOOPER,
19
+ spoiler: false
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # Kuapir::FactResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total** | **Integer** | | |
8
+ | **items** | [**Array&lt;Fact&gt;**](Fact.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'kuapir'
14
+
15
+ instance = Kuapir::FactResponse.new(
16
+ total: 5,
17
+ items: null
18
+ )
19
+ ```
20
+