aylien_news_api 3.0.0 → 4.0.0

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 (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/aylien_news_api.gemspec +1 -2
  4. data/docs/Category.md +3 -1
  5. data/docs/CategoryTaxonomy.md +16 -0
  6. data/docs/DefaultApi.md +105 -51
  7. data/docs/Histograms.md +5 -1
  8. data/docs/Media.md +2 -2
  9. data/docs/MediaFormat.md +16 -0
  10. data/docs/MediaType.md +16 -0
  11. data/docs/Scope.md +1 -1
  12. data/docs/ScopeLevel.md +16 -0
  13. data/docs/Sentiment.md +1 -1
  14. data/docs/SentimentPolarity.md +16 -0
  15. data/docs/Stories.md +5 -1
  16. data/docs/StoryLinks.md +3 -3
  17. data/docs/StoryTranslation.md +19 -0
  18. data/docs/StoryTranslations.md +1 -1
  19. data/docs/Trends.md +5 -1
  20. data/lib/aylien_news_api.rb +7 -3
  21. data/lib/aylien_news_api/api/default_api.rb +265 -159
  22. data/lib/aylien_news_api/api_client.rb +8 -6
  23. data/lib/aylien_news_api/api_error.rb +1 -1
  24. data/lib/aylien_news_api/configuration.rb +2 -2
  25. data/lib/aylien_news_api/models/author.rb +12 -2
  26. data/lib/aylien_news_api/models/autocomplete.rb +12 -2
  27. data/lib/aylien_news_api/models/autocompletes.rb +12 -2
  28. data/lib/aylien_news_api/models/category.rb +24 -39
  29. data/lib/aylien_news_api/models/category_links.rb +12 -2
  30. data/lib/aylien_news_api/models/category_taxonomy.rb +36 -0
  31. data/lib/aylien_news_api/models/cluster.rb +12 -2
  32. data/lib/aylien_news_api/models/clusters.rb +12 -2
  33. data/lib/aylien_news_api/models/coverages.rb +12 -2
  34. data/lib/aylien_news_api/models/entities.rb +12 -2
  35. data/lib/aylien_news_api/models/entity.rb +12 -2
  36. data/lib/aylien_news_api/models/entity_links.rb +12 -2
  37. data/lib/aylien_news_api/models/error.rb +12 -2
  38. data/lib/aylien_news_api/models/error_links.rb +12 -2
  39. data/lib/aylien_news_api/models/errors.rb +12 -2
  40. data/lib/aylien_news_api/models/histogram_interval.rb +12 -2
  41. data/lib/aylien_news_api/models/histograms.rb +36 -6
  42. data/lib/aylien_news_api/models/location.rb +12 -2
  43. data/lib/aylien_news_api/models/media.rb +14 -52
  44. data/lib/aylien_news_api/models/media_format.rb +44 -0
  45. data/lib/aylien_news_api/models/media_type.rb +36 -0
  46. data/lib/aylien_news_api/models/rank.rb +12 -2
  47. data/lib/aylien_news_api/models/rankings.rb +12 -2
  48. data/lib/aylien_news_api/models/related_stories.rb +12 -2
  49. data/lib/aylien_news_api/models/representative_story.rb +12 -2
  50. data/lib/aylien_news_api/models/scope.rb +13 -38
  51. data/lib/aylien_news_api/models/scope_level.rb +37 -0
  52. data/lib/aylien_news_api/models/sentiment.rb +13 -38
  53. data/lib/aylien_news_api/models/sentiment_polarity.rb +37 -0
  54. data/lib/aylien_news_api/models/sentiments.rb +12 -2
  55. data/lib/aylien_news_api/models/share_count.rb +12 -2
  56. data/lib/aylien_news_api/models/share_counts.rb +12 -2
  57. data/lib/aylien_news_api/models/source.rb +12 -2
  58. data/lib/aylien_news_api/models/stories.rb +36 -6
  59. data/lib/aylien_news_api/models/story.rb +12 -2
  60. data/lib/aylien_news_api/models/story_cluster.rb +12 -2
  61. data/lib/aylien_news_api/models/story_links.rb +26 -16
  62. data/lib/aylien_news_api/models/story_translation.rb +217 -0
  63. data/lib/aylien_news_api/models/story_translations.rb +13 -3
  64. data/lib/aylien_news_api/models/story_translations_en.rb +12 -2
  65. data/lib/aylien_news_api/models/summary.rb +12 -2
  66. data/lib/aylien_news_api/models/time_series.rb +12 -2
  67. data/lib/aylien_news_api/models/time_series_list.rb +12 -2
  68. data/lib/aylien_news_api/models/trend.rb +12 -2
  69. data/lib/aylien_news_api/models/trends.rb +36 -6
  70. data/lib/aylien_news_api/version.rb +2 -2
  71. data/spec/api/default_api_spec.rb +54 -28
  72. data/spec/api_client_spec.rb +3 -3
  73. data/spec/configuration_spec.rb +2 -2
  74. data/spec/models/author_spec.rb +2 -2
  75. data/spec/models/autocomplete_spec.rb +2 -2
  76. data/spec/models/autocompletes_spec.rb +2 -2
  77. data/spec/models/category_links_spec.rb +2 -2
  78. data/spec/models/category_spec.rb +8 -6
  79. data/spec/models/category_taxonomy_spec.rb +35 -0
  80. data/spec/models/cluster_spec.rb +2 -2
  81. data/spec/models/clusters_spec.rb +2 -2
  82. data/spec/models/coverages_spec.rb +2 -2
  83. data/spec/models/entities_spec.rb +2 -2
  84. data/spec/models/entity_links_spec.rb +2 -2
  85. data/spec/models/entity_spec.rb +2 -2
  86. data/spec/models/error_links_spec.rb +2 -2
  87. data/spec/models/error_spec.rb +2 -2
  88. data/spec/models/errors_spec.rb +2 -2
  89. data/spec/models/histogram_interval_spec.rb +2 -2
  90. data/spec/models/histograms_spec.rb +14 -2
  91. data/spec/models/location_spec.rb +2 -2
  92. data/spec/models/media_format_spec.rb +35 -0
  93. data/spec/models/media_spec.rb +2 -10
  94. data/spec/models/media_type_spec.rb +35 -0
  95. data/spec/models/rank_spec.rb +2 -2
  96. data/spec/models/rankings_spec.rb +2 -2
  97. data/spec/models/related_stories_spec.rb +2 -2
  98. data/spec/models/representative_story_spec.rb +2 -2
  99. data/spec/models/scope_level_spec.rb +35 -0
  100. data/spec/models/scope_spec.rb +2 -6
  101. data/spec/models/sentiment_polarity_spec.rb +35 -0
  102. data/spec/models/sentiment_spec.rb +2 -6
  103. data/spec/models/sentiments_spec.rb +2 -2
  104. data/spec/models/share_count_spec.rb +2 -2
  105. data/spec/models/share_counts_spec.rb +2 -2
  106. data/spec/models/source_spec.rb +2 -2
  107. data/spec/models/stories_spec.rb +14 -2
  108. data/spec/models/story_cluster_spec.rb +2 -2
  109. data/spec/models/story_links_spec.rb +5 -5
  110. data/spec/models/story_spec.rb +2 -2
  111. data/spec/models/story_translation_spec.rb +47 -0
  112. data/spec/models/story_translations_en_spec.rb +2 -2
  113. data/spec/models/story_translations_spec.rb +2 -2
  114. data/spec/models/summary_spec.rb +2 -2
  115. data/spec/models/time_series_list_spec.rb +2 -2
  116. data/spec/models/time_series_spec.rb +2 -2
  117. data/spec/models/trend_spec.rb +2 -2
  118. data/spec/models/trends_spec.rb +14 -2
  119. data/spec/spec_helper.rb +2 -2
  120. metadata +27 -23
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module AylienNewsApi
14
- VERSION = '3.0.0'
14
+ VERSION = '4.0.0'
15
15
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -63,6 +63,11 @@ describe 'DefaultApi' do
63
63
  # @option opts [String] :latest_story_end This parameter is used for finding clusters whose publication date of its latest story is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
64
64
  # @option opts [Array<String>] :location_country This parameter is used for finding clusters belonging to a specific country. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
65
65
  # @option opts [Array<String>] :location_country2 This parameter is used for excluding clusters belonging to a specific country. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
66
+ # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
67
+ # @option opts [String] :sort_by This parameter is used for changing the order column of the results. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results).
68
+ # @option opts [String] :sort_direction This parameter is used for changing the order direction of the result. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results).
69
+ # @option opts [String] :cursor This parameter is used for finding a specific page. You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results).
70
+ # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results)
66
71
  # @return [Clusters]
67
72
  describe 'list_clusters test' do
68
73
  it 'should work' do
@@ -70,9 +75,9 @@ describe 'DefaultApi' do
70
75
  end
71
76
  end
72
77
 
73
- # unit tests for list_coverages
74
- # List coverages
75
- # The coverages endpoint allows you to understand the reach a document has had. For example, you can track the coverage of a press release or a Tweet based on how many times it has been mentioned in stories.
78
+ # unit tests for list_histograms
79
+ # List histograms
80
+ # For the numerical metadata that the News API gathers (such as word counts or social shares for example), you can use the histograms endpoint to access and display this information. As this endpoint does not return actual stories, the results you are given will not count towards your story allowance provided by your subscription, so you can effectively query this endpoint free of charge.
76
81
  # @param [Hash] opts the optional parameters
77
82
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
78
83
  # @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
@@ -82,6 +87,8 @@ describe 'DefaultApi' do
82
87
  # @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
83
88
  # @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
84
89
  # @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
90
+ # @option opts [Array<String>] :links_permalink This parameter is used to find stories based on their url.
91
+ # @option opts [Array<String>] :links_permalink2 This parameter is used to exclude stories based on their url.
85
92
  # @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
86
93
  # @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
87
94
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
@@ -90,6 +97,8 @@ describe 'DefaultApi' do
90
97
  # @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
91
98
  # @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
92
99
  # @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
100
+ # @option opts [Array<String>] :categories_label This parameter is used for finding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
101
+ # @option opts [Array<String>] :categories_label2 This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
93
102
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
94
103
  # @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
95
104
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
@@ -158,24 +167,18 @@ describe 'DefaultApi' do
158
167
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
159
168
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
160
169
  # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
161
- # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
162
- # @option opts [Integer] :story_id A story id
163
- # @option opts [String] :story_url An article or webpage
164
- # @option opts [String] :story_title Title of the article
165
- # @option opts [String] :story_body Body of the article
166
- # @option opts [DateTime] :story_published_at Publish date of the article. If you use a url or title and body of an article for getting coverages, this parameter is required. The format used is a restricted form of the canonical representation of dateTime in the [XML Schema specification (ISO 8601)](https://www.w3.org/TR/xmlschema-2/#dateTime).
167
- # @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
168
- # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
169
- # @return [Coverages]
170
- describe 'list_coverages test' do
170
+ # @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
171
+ # @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
172
+ # @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
173
+ # @option opts [String] :field This parameter is used for specifying the y-axis variable for the histogram.
174
+ # @return [Histograms]
175
+ describe 'list_histograms test' do
171
176
  it 'should work' do
172
177
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
173
178
  end
174
179
  end
175
180
 
176
- # unit tests for list_histograms
177
- # List histograms
178
- # For the numerical metadata that the News API gathers (such as word counts or social shares for example), you can use the histograms endpoint to access and display this information. As this endpoint does not return actual stories, the results you are given will not count towards your story allowance provided by your subscription, so you can effectively query this endpoint free of charge.
181
+ # unit tests for list_related_stories_get
179
182
  # @param [Hash] opts the optional parameters
180
183
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
181
184
  # @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
@@ -185,6 +188,8 @@ describe 'DefaultApi' do
185
188
  # @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
186
189
  # @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
187
190
  # @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
191
+ # @option opts [Array<String>] :links_permalink This parameter is used to find stories based on their url.
192
+ # @option opts [Array<String>] :links_permalink2 This parameter is used to exclude stories based on their url.
188
193
  # @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
189
194
  # @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
190
195
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
@@ -193,6 +198,8 @@ describe 'DefaultApi' do
193
198
  # @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
194
199
  # @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
195
200
  # @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
201
+ # @option opts [Array<String>] :categories_label This parameter is used for finding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
202
+ # @option opts [Array<String>] :categories_label2 This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
196
203
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
197
204
  # @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
198
205
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
@@ -260,20 +267,23 @@ describe 'DefaultApi' do
260
267
  # @option opts [Integer] :social_shares_count_linkedin_max This parameter is used for finding stories whose LinkedIn social shares count is less than or equal to the specified value.
261
268
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
262
269
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
263
- # @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
264
- # @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
265
- # @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
266
- # @option opts [String] :field This parameter is used for specifying the y-axis variable for the histogram.
267
- # @return [Histograms]
268
- describe 'list_histograms test' do
270
+ # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
271
+ # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
272
+ # @option opts [Integer] :story_id A story id
273
+ # @option opts [String] :story_url An article or webpage
274
+ # @option opts [String] :story_title Title of the article
275
+ # @option opts [String] :story_body Body of the article
276
+ # @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
277
+ # @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
278
+ # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
279
+ # @return [RelatedStories]
280
+ describe 'list_related_stories_get test' do
269
281
  it 'should work' do
270
282
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
271
283
  end
272
284
  end
273
285
 
274
- # unit tests for list_related_stories
275
- # List related stories
276
- # This endpoint is used for finding semantically similar stories based on the parameters you provide as inputs. For example, if you want to find stories similar to a Tweet or any text extract you input, the related stories endpoint will analyze the entities present and the meaning of the text, and find stories with a similar meaning. The maximum number of related stories returned is 100.
286
+ # unit tests for list_related_stories_post
277
287
  # @param [Hash] opts the optional parameters
278
288
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
279
289
  # @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
@@ -283,6 +293,8 @@ describe 'DefaultApi' do
283
293
  # @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
284
294
  # @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
285
295
  # @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
296
+ # @option opts [Array<String>] :links_permalink This parameter is used to find stories based on their url.
297
+ # @option opts [Array<String>] :links_permalink2 This parameter is used to exclude stories based on their url.
286
298
  # @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
287
299
  # @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
288
300
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
@@ -291,6 +303,8 @@ describe 'DefaultApi' do
291
303
  # @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
292
304
  # @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
293
305
  # @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
306
+ # @option opts [Array<String>] :categories_label This parameter is used for finding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
307
+ # @option opts [Array<String>] :categories_label2 This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
294
308
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
295
309
  # @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
296
310
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
@@ -368,7 +382,7 @@ describe 'DefaultApi' do
368
382
  # @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
369
383
  # @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
370
384
  # @return [RelatedStories]
371
- describe 'list_related_stories test' do
385
+ describe 'list_related_stories_post test' do
372
386
  it 'should work' do
373
387
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
374
388
  end
@@ -388,12 +402,16 @@ describe 'DefaultApi' do
388
402
  # @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
389
403
  # @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
390
404
  # @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
405
+ # @option opts [Array<String>] :links_permalink This parameter is used to find stories based on their url.
406
+ # @option opts [Array<String>] :links_permalink2 This parameter is used to exclude stories based on their url.
391
407
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
392
408
  # @option opts [String] :published_at_end This parameter is used for finding stories whose published at time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
393
409
  # @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
394
410
  # @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
395
411
  # @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
396
412
  # @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
413
+ # @option opts [Array<String>] :categories_label This parameter is used for finding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
414
+ # @option opts [Array<String>] :categories_label2 This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
397
415
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
398
416
  # @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
399
417
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
@@ -492,6 +510,8 @@ describe 'DefaultApi' do
492
510
  # @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
493
511
  # @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
494
512
  # @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
513
+ # @option opts [Array<String>] :categories_label This parameter is used for finding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
514
+ # @option opts [Array<String>] :categories_label2 This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
495
515
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
496
516
  # @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
497
517
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
@@ -559,6 +579,7 @@ describe 'DefaultApi' do
559
579
  # @option opts [Integer] :social_shares_count_linkedin_max This parameter is used for finding stories whose LinkedIn social shares count is less than or equal to the specified value.
560
580
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
561
581
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
582
+ # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
562
583
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
563
584
  # @option opts [String] :published_at_end This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
564
585
  # @option opts [String] :period The size of each date range is expressed as an interval to be added to the lower bound. It supports Date Math Syntax. Valid options are &#x60;+&#x60; following an integer number greater than 0 and one of the Date Math keywords. e.g. &#x60;+1DAY&#x60;, &#x60;+2MINUTES&#x60; and &#x60;+1MONTH&#x60;. Here are [Supported keywords](https://newsapi.aylien.com/docs/working-with-dates#date-math).
@@ -582,6 +603,8 @@ describe 'DefaultApi' do
582
603
  # @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
583
604
  # @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
584
605
  # @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
606
+ # @option opts [Array<String>] :links_permalink This parameter is used to find stories based on their url.
607
+ # @option opts [Array<String>] :links_permalink2 This parameter is used to exclude stories based on their url.
585
608
  # @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
586
609
  # @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
587
610
  # @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
@@ -590,6 +613,8 @@ describe 'DefaultApi' do
590
613
  # @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
591
614
  # @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
592
615
  # @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
616
+ # @option opts [Array<String>] :categories_label This parameter is used for finding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
617
+ # @option opts [Array<String>] :categories_label2 This parameter is used for excluding stories by categories label. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
593
618
  # @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
594
619
  # @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
595
620
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
@@ -657,6 +682,7 @@ describe 'DefaultApi' do
657
682
  # @option opts [Integer] :social_shares_count_linkedin_max This parameter is used for finding stories whose LinkedIn social shares count is less than or equal to the specified value.
658
683
  # @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
659
684
  # @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
685
+ # @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
660
686
  # @return [Trends]
661
687
  describe 'list_trends test' do
662
688
  it 'should work' do
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -118,7 +118,7 @@ describe AylienNewsApi::ApiClient do
118
118
  end
119
119
 
120
120
  it 'fails for invalid collection format' do
121
- expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
121
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
122
122
  end
123
123
  end
124
124
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -44,6 +44,12 @@ describe 'Category' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "label"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "level"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -65,10 +71,6 @@ describe 'Category' do
65
71
  describe 'test attribute "taxonomy"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["iab-qag", "iptc-subjectcode"])
69
- # validator.allowable_values.each do |value|
70
- # expect { @instance.taxonomy = value }.not_to raise_error
71
- # end
72
74
  end
73
75
  end
74
76
 
@@ -0,0 +1,35 @@
1
+ =begin
2
+ #AYLIEN News API
3
+
4
+ #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
+
6
+ The version of the OpenAPI document: 3.0
7
+ Contact: support@aylien.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for AylienNewsApi::CategoryTaxonomy
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'CategoryTaxonomy' do
21
+ before do
22
+ # run before each test
23
+ @instance = AylienNewsApi::CategoryTaxonomy.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CategoryTaxonomy' do
31
+ it 'should create an instance of CategoryTaxonomy' do
32
+ expect(@instance).to be_instance_of(AylienNewsApi::CategoryTaxonomy)
33
+ end
34
+ end
35
+ end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
5
5
 
6
- The version of the OpenAPI document: 2.0
6
+ The version of the OpenAPI document: 3.0
7
7
  Contact: support@aylien.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12