aylien_news_api 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +21 -21
- data/aylien_news_api-0.3.0.gem +0 -0
- data/aylien_news_api.gemspec +3 -2
- data/docs/DefaultApi.md +451 -250
- data/docs/Media.md +4 -0
- data/lib/aylien_news_api/api/default_api.rb +965 -341
- data/lib/aylien_news_api/api_client.rb +13 -5
- data/lib/aylien_news_api/configuration.rb +6 -6
- data/lib/aylien_news_api/models/author.rb +3 -3
- data/lib/aylien_news_api/models/autocomplete.rb +3 -3
- data/lib/aylien_news_api/models/autocompletes.rb +3 -3
- data/lib/aylien_news_api/models/category.rb +3 -3
- data/lib/aylien_news_api/models/category_links.rb +3 -3
- data/lib/aylien_news_api/models/coverages.rb +3 -3
- data/lib/aylien_news_api/models/entities.rb +3 -3
- data/lib/aylien_news_api/models/entity.rb +3 -4
- data/lib/aylien_news_api/models/entity_links.rb +3 -3
- data/lib/aylien_news_api/models/error.rb +3 -3
- data/lib/aylien_news_api/models/error_links.rb +3 -3
- data/lib/aylien_news_api/models/errors.rb +3 -3
- data/lib/aylien_news_api/models/histogram_interval.rb +3 -3
- data/lib/aylien_news_api/models/histograms.rb +3 -3
- data/lib/aylien_news_api/models/location.rb +3 -3
- data/lib/aylien_news_api/models/media.rb +59 -7
- data/lib/aylien_news_api/models/rank.rb +3 -3
- data/lib/aylien_news_api/models/rankings.rb +3 -3
- data/lib/aylien_news_api/models/related_stories.rb +3 -3
- data/lib/aylien_news_api/models/scope.rb +3 -3
- data/lib/aylien_news_api/models/sentiment.rb +3 -4
- data/lib/aylien_news_api/models/sentiments.rb +3 -3
- data/lib/aylien_news_api/models/share_count.rb +3 -3
- data/lib/aylien_news_api/models/share_counts.rb +3 -3
- data/lib/aylien_news_api/models/source.rb +3 -3
- data/lib/aylien_news_api/models/stories.rb +3 -3
- data/lib/aylien_news_api/models/story.rb +3 -3
- data/lib/aylien_news_api/models/story_cluster.rb +3 -3
- data/lib/aylien_news_api/models/story_links.rb +3 -3
- data/lib/aylien_news_api/models/summary.rb +3 -3
- data/lib/aylien_news_api/models/time_series.rb +3 -3
- data/lib/aylien_news_api/models/time_series_list.rb +3 -3
- data/lib/aylien_news_api/models/trend.rb +3 -3
- data/lib/aylien_news_api/models/trends.rb +3 -3
- data/lib/aylien_news_api/version.rb +1 -1
- metadata +4 -6
data/docs/Media.md
CHANGED
@@ -5,5 +5,9 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**type** | **String** | The type of media | [optional]
|
7
7
|
**url** | **String** | A URL which points to the media file | [optional]
|
8
|
+
**format** | **String** | The format of media | [optional]
|
9
|
+
**content_length** | **Integer** | The content length of media | [optional]
|
10
|
+
**width** | **Integer** | The width of media | [optional]
|
11
|
+
**height** | **Integer** | The height of media | [optional]
|
8
12
|
|
9
13
|
|
@@ -84,7 +84,7 @@ module AylienNewsApi
|
|
84
84
|
header_params = {}
|
85
85
|
|
86
86
|
# HTTP header 'Accept' (if needed)
|
87
|
-
local_header_accept = ['application/json'
|
87
|
+
local_header_accept = ['application/json']
|
88
88
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
89
89
|
|
90
90
|
# HTTP header 'Content-Type'
|
@@ -113,27 +113,34 @@ module AylienNewsApi
|
|
113
113
|
# List coverages
|
114
114
|
# This endpoint is used for finding story coverages based on the parameters provided. The maximum number of related stories returned is 100.
|
115
115
|
# @param [Hash] opts the optional parameters
|
116
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
116
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
117
117
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
118
118
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
119
119
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
120
120
|
# @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.
|
121
121
|
# @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).
|
122
122
|
# @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).
|
123
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
124
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident. (default to true)
|
125
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
126
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
127
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
128
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
129
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
130
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
131
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
132
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
123
|
+
# @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).
|
124
|
+
# @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). (default to true)
|
125
|
+
# @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).
|
126
|
+
# @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).
|
127
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
128
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
129
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
130
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
131
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
132
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
133
133
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
134
134
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
135
135
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
136
136
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
137
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
138
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
139
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
140
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
141
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
142
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
143
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
137
144
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
138
145
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
139
146
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -148,13 +155,21 @@ module AylienNewsApi
|
|
148
155
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
149
156
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
150
157
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
151
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
152
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
153
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
154
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
155
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
156
|
-
# @option opts [
|
157
|
-
# @option opts [
|
158
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
159
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
160
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
161
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
162
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
163
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
164
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
165
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
166
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
167
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
168
|
+
# @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.
|
169
|
+
# @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.
|
170
|
+
# @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.
|
171
|
+
# @option opts [BOOLEAN] :cluster This parameter enables clustering for the returned stories. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering). (default to false)
|
172
|
+
# @option opts [String] :cluster_algorithm This parameter is used for specifying the clustering algorithm you wish to use. It supprts STC, Lingo and [k-means](https://en.wikipedia.org/wiki/K-means_clustering) algorithms. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering). (default to lingo)
|
158
173
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
159
174
|
# @option opts [Integer] :story_id A story id
|
160
175
|
# @option opts [String] :story_url An article or webpage
|
@@ -172,27 +187,34 @@ module AylienNewsApi
|
|
172
187
|
# List coverages
|
173
188
|
# This endpoint is used for finding story coverages based on the parameters provided. The maximum number of related stories returned is 100.
|
174
189
|
# @param [Hash] opts the optional parameters
|
175
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
190
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
176
191
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
177
192
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
178
193
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
179
194
|
# @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.
|
180
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).
|
181
196
|
# @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).
|
182
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
183
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident.
|
184
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
185
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
186
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
187
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
188
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
189
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
190
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
191
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
197
|
+
# @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).
|
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).
|
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).
|
200
|
+
# @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).
|
201
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
202
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
203
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
204
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
205
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
206
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
192
207
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
193
208
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
194
209
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
195
210
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
211
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
212
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
213
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
214
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
215
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
216
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
217
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
196
218
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
197
219
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
198
220
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -207,13 +229,21 @@ module AylienNewsApi
|
|
207
229
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
208
230
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
209
231
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
210
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
211
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
212
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
213
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
214
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
215
|
-
# @option opts [
|
216
|
-
# @option opts [
|
232
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
233
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
234
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
235
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
236
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
237
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
238
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
239
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
240
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
241
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
242
|
+
# @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.
|
243
|
+
# @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.
|
244
|
+
# @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.
|
245
|
+
# @option opts [BOOLEAN] :cluster This parameter enables clustering for the returned stories. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
246
|
+
# @option opts [String] :cluster_algorithm This parameter is used for specifying the clustering algorithm you wish to use. It supprts STC, Lingo and [k-means](https://en.wikipedia.org/wiki/K-means_clustering) algorithms. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
217
247
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
218
248
|
# @option opts [Integer] :story_id A story id
|
219
249
|
# @option opts [String] :story_url An article or webpage
|
@@ -227,8 +257,8 @@ module AylienNewsApi
|
|
227
257
|
if @api_client.config.debugging
|
228
258
|
@api_client.config.logger.debug "Calling API: DefaultApi.list_coverages ..."
|
229
259
|
end
|
230
|
-
if opts[:'language'] && !opts[:'language'].all?{|
|
231
|
-
fail ArgumentError, 'invalid value for "language", must
|
260
|
+
if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
|
261
|
+
fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
|
232
262
|
end
|
233
263
|
if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
|
234
264
|
fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
|
@@ -239,46 +269,105 @@ module AylienNewsApi
|
|
239
269
|
if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
|
240
270
|
fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
|
241
271
|
end
|
242
|
-
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min']
|
243
|
-
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_coverages, must be greater than
|
272
|
+
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0.0
|
273
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
274
|
+
end
|
275
|
+
|
276
|
+
if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0.0
|
277
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
278
|
+
end
|
279
|
+
|
280
|
+
if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0.0
|
281
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
282
|
+
end
|
283
|
+
|
284
|
+
if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0.0
|
285
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
286
|
+
end
|
287
|
+
|
288
|
+
if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0.0
|
289
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
290
|
+
end
|
291
|
+
|
292
|
+
if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0.0
|
293
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
294
|
+
end
|
295
|
+
|
296
|
+
if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0.0
|
297
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
298
|
+
end
|
299
|
+
|
300
|
+
if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0.0
|
301
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
302
|
+
end
|
303
|
+
|
304
|
+
if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
|
305
|
+
fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
|
306
|
+
end
|
307
|
+
if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0.0
|
308
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
309
|
+
end
|
310
|
+
|
311
|
+
if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0.0
|
312
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
313
|
+
end
|
314
|
+
|
315
|
+
if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
|
316
|
+
fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
|
317
|
+
end
|
318
|
+
if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0.0
|
319
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
244
320
|
end
|
245
321
|
|
246
|
-
if !opts[:'
|
247
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
322
|
+
if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0.0
|
323
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
248
324
|
end
|
249
325
|
|
250
|
-
if !opts[:'
|
251
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
326
|
+
if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0.0
|
327
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
252
328
|
end
|
253
329
|
|
254
|
-
if !opts[:'
|
255
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
330
|
+
if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0.0
|
331
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
256
332
|
end
|
257
333
|
|
258
|
-
if opts[:'
|
259
|
-
fail ArgumentError, 'invalid value for "
|
334
|
+
if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0.0
|
335
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
260
336
|
end
|
261
|
-
|
262
|
-
|
337
|
+
|
338
|
+
if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0.0
|
339
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
340
|
+
end
|
341
|
+
|
342
|
+
if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0.0
|
343
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
344
|
+
end
|
345
|
+
|
346
|
+
if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0.0
|
347
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
348
|
+
end
|
349
|
+
|
350
|
+
if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0.0
|
351
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
263
352
|
end
|
264
353
|
|
265
|
-
if !opts[:'
|
266
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
354
|
+
if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0.0
|
355
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
267
356
|
end
|
268
357
|
|
269
|
-
if !opts[:'
|
270
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
358
|
+
if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0.0
|
359
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
271
360
|
end
|
272
361
|
|
273
|
-
if !opts[:'
|
274
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
362
|
+
if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0.0
|
363
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_coverages, must be greater than 0.0.'
|
275
364
|
end
|
276
365
|
|
277
366
|
if opts[:'cluster_algorithm'] && !['stc', 'lingo', 'kmeans'].include?(opts[:'cluster_algorithm'])
|
278
367
|
fail ArgumentError, 'invalid value for "cluster_algorithm", must be one of stc, lingo, kmeans'
|
279
368
|
end
|
280
|
-
if opts[:'_return'] && !opts[:'_return'].all?{|
|
281
|
-
fail ArgumentError, 'invalid value for "_return", must
|
369
|
+
if opts[:'_return'] && !opts[:'_return'].all?{|item| ['id', 'title', 'body', 'summary', 'source', 'author', 'entities', 'keywords', 'hashtags', 'characters_count', 'words_count', 'sentences_count', 'paragraphs_count', 'categories', 'social_shares_count', 'media', 'sentiment', 'language', 'published_at', 'links'].include?(item)}
|
370
|
+
fail ArgumentError, 'invalid value for "_return", must include one of id, title, body, summary, source, author, entities, keywords, hashtags, characters_count, words_count, sentences_count, paragraphs_count, categories, social_shares_count, media, sentiment, language, published_at, links'
|
282
371
|
end
|
283
372
|
if opts[:'story_language'] && !['auto', 'en', 'de', 'fr', 'it', 'es', 'pt'].include?(opts[:'story_language'])
|
284
373
|
fail ArgumentError, 'invalid value for "story_language", must be one of auto, en, de, fr, it, es, pt'
|
@@ -301,7 +390,7 @@ module AylienNewsApi
|
|
301
390
|
header_params = {}
|
302
391
|
|
303
392
|
# HTTP header 'Accept' (if needed)
|
304
|
-
local_header_accept = ['application/json'
|
393
|
+
local_header_accept = ['application/json']
|
305
394
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
306
395
|
|
307
396
|
# HTTP header 'Content-Type'
|
@@ -331,6 +420,13 @@ module AylienNewsApi
|
|
331
420
|
form_params["sentiment.body.polarity"] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
|
332
421
|
form_params["media.images.count.min"] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
|
333
422
|
form_params["media.images.count.max"] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
|
423
|
+
form_params["media.images.width.min"] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
|
424
|
+
form_params["media.images.width.max"] = opts[:'media_images_width_max'] if !opts[:'media_images_width_max'].nil?
|
425
|
+
form_params["media.images.height.min"] = opts[:'media_images_height_min'] if !opts[:'media_images_height_min'].nil?
|
426
|
+
form_params["media.images.height.max"] = opts[:'media_images_height_max'] if !opts[:'media_images_height_max'].nil?
|
427
|
+
form_params["media.images.content_length.min"] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
|
428
|
+
form_params["media.images.content_length.max"] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
|
429
|
+
form_params["media.images.format[]"] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
|
334
430
|
form_params["media.videos.count.min"] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
|
335
431
|
form_params["media.videos.count.max"] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
|
336
432
|
form_params["author.id[]"] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
|
@@ -350,6 +446,14 @@ module AylienNewsApi
|
|
350
446
|
form_params["source.rankings.alexa.rank.min"] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
|
351
447
|
form_params["source.rankings.alexa.rank.max"] = opts[:'source_rankings_alexa_rank_max'] if !opts[:'source_rankings_alexa_rank_max'].nil?
|
352
448
|
form_params["source.rankings.alexa.country[]"] = @api_client.build_collection_param(opts[:'source_rankings_alexa_country'], :multi) if !opts[:'source_rankings_alexa_country'].nil?
|
449
|
+
form_params["social_shares_count.facebook.min"] = opts[:'social_shares_count_facebook_min'] if !opts[:'social_shares_count_facebook_min'].nil?
|
450
|
+
form_params["social_shares_count.facebook.max"] = opts[:'social_shares_count_facebook_max'] if !opts[:'social_shares_count_facebook_max'].nil?
|
451
|
+
form_params["social_shares_count.google_plus.min"] = opts[:'social_shares_count_google_plus_min'] if !opts[:'social_shares_count_google_plus_min'].nil?
|
452
|
+
form_params["social_shares_count.google_plus.max"] = opts[:'social_shares_count_google_plus_max'] if !opts[:'social_shares_count_google_plus_max'].nil?
|
453
|
+
form_params["social_shares_count.linkedin.min"] = opts[:'social_shares_count_linkedin_min'] if !opts[:'social_shares_count_linkedin_min'].nil?
|
454
|
+
form_params["social_shares_count.linkedin.max"] = opts[:'social_shares_count_linkedin_max'] if !opts[:'social_shares_count_linkedin_max'].nil?
|
455
|
+
form_params["social_shares_count.reddit.min"] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
456
|
+
form_params["social_shares_count.reddit.max"] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
353
457
|
form_params["cluster"] = opts[:'cluster'] if !opts[:'cluster'].nil?
|
354
458
|
form_params["cluster.algorithm"] = opts[:'cluster_algorithm'] if !opts[:'cluster_algorithm'].nil?
|
355
459
|
form_params["return[]"] = @api_client.build_collection_param(opts[:'_return'], :multi) if !opts[:'_return'].nil?
|
@@ -380,27 +484,34 @@ module AylienNewsApi
|
|
380
484
|
# List histograms
|
381
485
|
# This endpoint is used for getting histograms based on the `field` parameter passed to the API.
|
382
486
|
# @param [Hash] opts the optional parameters
|
383
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
487
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
384
488
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
385
489
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
386
490
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
387
491
|
# @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.
|
388
492
|
# @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).
|
389
493
|
# @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).
|
390
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
391
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident. (default to true)
|
392
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
393
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
394
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
395
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
396
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
397
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
398
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
399
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
494
|
+
# @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).
|
495
|
+
# @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). (default to true)
|
496
|
+
# @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).
|
497
|
+
# @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).
|
498
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
499
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
500
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
501
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
502
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
503
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
400
504
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
401
505
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
402
506
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
403
507
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
508
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
509
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
510
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
511
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
512
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
513
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
514
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
404
515
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
405
516
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
406
517
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -415,11 +526,19 @@ module AylienNewsApi
|
|
415
526
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
416
527
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
417
528
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
418
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
419
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
420
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
421
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
422
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
529
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
530
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
531
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
532
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
533
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
534
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
535
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
536
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
537
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
538
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
539
|
+
# @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.
|
540
|
+
# @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.
|
541
|
+
# @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.
|
423
542
|
# @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
|
424
543
|
# @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
|
425
544
|
# @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
|
@@ -433,27 +552,34 @@ module AylienNewsApi
|
|
433
552
|
# List histograms
|
434
553
|
# This endpoint is used for getting histograms based on the `field` parameter passed to the API.
|
435
554
|
# @param [Hash] opts the optional parameters
|
436
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
555
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
437
556
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
438
557
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
439
558
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
440
559
|
# @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.
|
441
560
|
# @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).
|
442
561
|
# @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).
|
443
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
444
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident.
|
445
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
446
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
447
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
448
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
449
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
450
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
451
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
452
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
562
|
+
# @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).
|
563
|
+
# @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).
|
564
|
+
# @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).
|
565
|
+
# @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).
|
566
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
567
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
568
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
569
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
570
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
571
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
453
572
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
454
573
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
455
574
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
456
575
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
576
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
577
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
578
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
579
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
580
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
581
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
582
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
457
583
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
458
584
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
459
585
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -468,11 +594,19 @@ module AylienNewsApi
|
|
468
594
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
469
595
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
470
596
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
471
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
472
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
473
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
474
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
475
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
597
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
598
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
599
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
600
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
601
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
602
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
603
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
604
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
605
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
606
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
607
|
+
# @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.
|
608
|
+
# @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.
|
609
|
+
# @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.
|
476
610
|
# @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
|
477
611
|
# @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
|
478
612
|
# @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
|
@@ -482,8 +616,8 @@ module AylienNewsApi
|
|
482
616
|
if @api_client.config.debugging
|
483
617
|
@api_client.config.logger.debug "Calling API: DefaultApi.list_histograms ..."
|
484
618
|
end
|
485
|
-
if opts[:'language'] && !opts[:'language'].all?{|
|
486
|
-
fail ArgumentError, 'invalid value for "language", must
|
619
|
+
if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
|
620
|
+
fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
|
487
621
|
end
|
488
622
|
if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
|
489
623
|
fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
|
@@ -494,39 +628,98 @@ module AylienNewsApi
|
|
494
628
|
if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
|
495
629
|
fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
|
496
630
|
end
|
497
|
-
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min']
|
498
|
-
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_histograms, must be greater than
|
631
|
+
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0.0
|
632
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
633
|
+
end
|
634
|
+
|
635
|
+
if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0.0
|
636
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
637
|
+
end
|
638
|
+
|
639
|
+
if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0.0
|
640
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
499
641
|
end
|
500
642
|
|
501
|
-
if !opts[:'
|
502
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
643
|
+
if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0.0
|
644
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
503
645
|
end
|
504
646
|
|
505
|
-
if !opts[:'
|
506
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
647
|
+
if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0.0
|
648
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
507
649
|
end
|
508
650
|
|
509
|
-
if !opts[:'
|
510
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
651
|
+
if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0.0
|
652
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
511
653
|
end
|
512
654
|
|
513
|
-
if opts[:'
|
514
|
-
fail ArgumentError, 'invalid value for "
|
655
|
+
if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0.0
|
656
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
515
657
|
end
|
516
|
-
|
517
|
-
|
658
|
+
|
659
|
+
if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0.0
|
660
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
661
|
+
end
|
662
|
+
|
663
|
+
if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
|
664
|
+
fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
|
665
|
+
end
|
666
|
+
if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0.0
|
667
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
668
|
+
end
|
669
|
+
|
670
|
+
if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0.0
|
671
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
672
|
+
end
|
673
|
+
|
674
|
+
if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
|
675
|
+
fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
|
676
|
+
end
|
677
|
+
if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0.0
|
678
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
679
|
+
end
|
680
|
+
|
681
|
+
if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0.0
|
682
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
518
683
|
end
|
519
684
|
|
520
|
-
if !opts[:'
|
521
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
685
|
+
if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0.0
|
686
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
522
687
|
end
|
523
688
|
|
524
|
-
if !opts[:'
|
525
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
689
|
+
if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0.0
|
690
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
526
691
|
end
|
527
692
|
|
528
|
-
if !opts[:'
|
529
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
693
|
+
if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0.0
|
694
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
695
|
+
end
|
696
|
+
|
697
|
+
if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0.0
|
698
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
699
|
+
end
|
700
|
+
|
701
|
+
if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0.0
|
702
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
703
|
+
end
|
704
|
+
|
705
|
+
if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0.0
|
706
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
707
|
+
end
|
708
|
+
|
709
|
+
if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0.0
|
710
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
711
|
+
end
|
712
|
+
|
713
|
+
if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0.0
|
714
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
715
|
+
end
|
716
|
+
|
717
|
+
if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0.0
|
718
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
719
|
+
end
|
720
|
+
|
721
|
+
if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0.0
|
722
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_histograms, must be greater than 0.0.'
|
530
723
|
end
|
531
724
|
|
532
725
|
if opts[:'field'] && !['social_shares_count', 'social_shares_count.facebook', 'social_shares_count.linkedin', 'social_shares_count.reddit', 'social_shares_count.google_plus', 'characters_count', 'words_count', 'sentences_count', 'paragraphs_count', 'media.images.count', 'media.videos.count', 'source.links_in_count', 'source.rankings.alexa.rank', 'source.rankings.alexa.rank.AF', 'source.rankings.alexa.rank.AX', 'source.rankings.alexa.rank.AL', 'source.rankings.alexa.rank.DZ', 'source.rankings.alexa.rank.AS', 'source.rankings.alexa.rank.AD', 'source.rankings.alexa.rank.AO', 'source.rankings.alexa.rank.AI', 'source.rankings.alexa.rank.AQ', 'source.rankings.alexa.rank.AG', 'source.rankings.alexa.rank.AR', 'source.rankings.alexa.rank.AM', 'source.rankings.alexa.rank.AW', 'source.rankings.alexa.rank.AU', 'source.rankings.alexa.rank.AT', 'source.rankings.alexa.rank.AZ', 'source.rankings.alexa.rank.BS', 'source.rankings.alexa.rank.BH', 'source.rankings.alexa.rank.BD', 'source.rankings.alexa.rank.BB', 'source.rankings.alexa.rank.BY', 'source.rankings.alexa.rank.BE', 'source.rankings.alexa.rank.BZ', 'source.rankings.alexa.rank.BJ', 'source.rankings.alexa.rank.BM', 'source.rankings.alexa.rank.BT', 'source.rankings.alexa.rank.BO', 'source.rankings.alexa.rank.BQ', 'source.rankings.alexa.rank.BA', 'source.rankings.alexa.rank.BW', 'source.rankings.alexa.rank.BV', 'source.rankings.alexa.rank.BR', 'source.rankings.alexa.rank.IO', 'source.rankings.alexa.rank.BN', 'source.rankings.alexa.rank.BG', 'source.rankings.alexa.rank.BF', 'source.rankings.alexa.rank.BI', 'source.rankings.alexa.rank.KH', 'source.rankings.alexa.rank.CM', 'source.rankings.alexa.rank.CA', 'source.rankings.alexa.rank.CV', 'source.rankings.alexa.rank.KY', 'source.rankings.alexa.rank.CF', 'source.rankings.alexa.rank.TD', 'source.rankings.alexa.rank.CL', 'source.rankings.alexa.rank.CN', 'source.rankings.alexa.rank.CX', 'source.rankings.alexa.rank.CC', 'source.rankings.alexa.rank.CO', 'source.rankings.alexa.rank.KM', 'source.rankings.alexa.rank.CG', 'source.rankings.alexa.rank.CD', 'source.rankings.alexa.rank.CK', 'source.rankings.alexa.rank.CR', 'source.rankings.alexa.rank.CI', 'source.rankings.alexa.rank.HR', 'source.rankings.alexa.rank.CU', 'source.rankings.alexa.rank.CW', 'source.rankings.alexa.rank.CY', 'source.rankings.alexa.rank.CZ', 'source.rankings.alexa.rank.DK', 'source.rankings.alexa.rank.DJ', 'source.rankings.alexa.rank.DM', 'source.rankings.alexa.rank.DO', 'source.rankings.alexa.rank.EC', 'source.rankings.alexa.rank.EG', 'source.rankings.alexa.rank.SV', 'source.rankings.alexa.rank.GQ', 'source.rankings.alexa.rank.ER', 'source.rankings.alexa.rank.EE', 'source.rankings.alexa.rank.ET', 'source.rankings.alexa.rank.FK', 'source.rankings.alexa.rank.FO', 'source.rankings.alexa.rank.FJ', 'source.rankings.alexa.rank.FI', 'source.rankings.alexa.rank.FR', 'source.rankings.alexa.rank.GF', 'source.rankings.alexa.rank.PF', 'source.rankings.alexa.rank.TF', 'source.rankings.alexa.rank.GA', 'source.rankings.alexa.rank.GM', 'source.rankings.alexa.rank.GE', 'source.rankings.alexa.rank.DE', 'source.rankings.alexa.rank.GH', 'source.rankings.alexa.rank.GI', 'source.rankings.alexa.rank.GR', 'source.rankings.alexa.rank.GL', 'source.rankings.alexa.rank.GD', 'source.rankings.alexa.rank.GP', 'source.rankings.alexa.rank.GU', 'source.rankings.alexa.rank.GT', 'source.rankings.alexa.rank.GG', 'source.rankings.alexa.rank.GN', 'source.rankings.alexa.rank.GW', 'source.rankings.alexa.rank.GY', 'source.rankings.alexa.rank.HT', 'source.rankings.alexa.rank.HM', 'source.rankings.alexa.rank.VA', 'source.rankings.alexa.rank.HN', 'source.rankings.alexa.rank.HK', 'source.rankings.alexa.rank.HU', 'source.rankings.alexa.rank.IS', 'source.rankings.alexa.rank.IN', 'source.rankings.alexa.rank.ID', 'source.rankings.alexa.rank.IR', 'source.rankings.alexa.rank.IQ', 'source.rankings.alexa.rank.IE', 'source.rankings.alexa.rank.IM', 'source.rankings.alexa.rank.IL', 'source.rankings.alexa.rank.IT', 'source.rankings.alexa.rank.JM', 'source.rankings.alexa.rank.JP', 'source.rankings.alexa.rank.JE', 'source.rankings.alexa.rank.JO', 'source.rankings.alexa.rank.KZ', 'source.rankings.alexa.rank.KE', 'source.rankings.alexa.rank.KI', 'source.rankings.alexa.rank.KP', 'source.rankings.alexa.rank.KR', 'source.rankings.alexa.rank.KW', 'source.rankings.alexa.rank.KG', 'source.rankings.alexa.rank.LA', 'source.rankings.alexa.rank.LV', 'source.rankings.alexa.rank.LB', 'source.rankings.alexa.rank.LS', 'source.rankings.alexa.rank.LR', 'source.rankings.alexa.rank.LY', 'source.rankings.alexa.rank.LI', 'source.rankings.alexa.rank.LT', 'source.rankings.alexa.rank.LU', 'source.rankings.alexa.rank.MO', 'source.rankings.alexa.rank.MK', 'source.rankings.alexa.rank.MG', 'source.rankings.alexa.rank.MW', 'source.rankings.alexa.rank.MY', 'source.rankings.alexa.rank.MV', 'source.rankings.alexa.rank.ML', 'source.rankings.alexa.rank.MT', 'source.rankings.alexa.rank.MH', 'source.rankings.alexa.rank.MQ', 'source.rankings.alexa.rank.MR', 'source.rankings.alexa.rank.MU', 'source.rankings.alexa.rank.YT', 'source.rankings.alexa.rank.MX', 'source.rankings.alexa.rank.FM', 'source.rankings.alexa.rank.MD', 'source.rankings.alexa.rank.MC', 'source.rankings.alexa.rank.MN', 'source.rankings.alexa.rank.ME', 'source.rankings.alexa.rank.MS', 'source.rankings.alexa.rank.MA', 'source.rankings.alexa.rank.MZ', 'source.rankings.alexa.rank.MM', 'source.rankings.alexa.rank.NA', 'source.rankings.alexa.rank.NR', 'source.rankings.alexa.rank.NP', 'source.rankings.alexa.rank.NL', 'source.rankings.alexa.rank.NC', 'source.rankings.alexa.rank.NZ', 'source.rankings.alexa.rank.NI', 'source.rankings.alexa.rank.NE', 'source.rankings.alexa.rank.NG', 'source.rankings.alexa.rank.NU', 'source.rankings.alexa.rank.NF', 'source.rankings.alexa.rank.MP', 'source.rankings.alexa.rank.NO', 'source.rankings.alexa.rank.OM', 'source.rankings.alexa.rank.PK', 'source.rankings.alexa.rank.PW', 'source.rankings.alexa.rank.PS', 'source.rankings.alexa.rank.PA', 'source.rankings.alexa.rank.PG', 'source.rankings.alexa.rank.PY', 'source.rankings.alexa.rank.PE', 'source.rankings.alexa.rank.PH', 'source.rankings.alexa.rank.PN', 'source.rankings.alexa.rank.PL', 'source.rankings.alexa.rank.PT', 'source.rankings.alexa.rank.PR', 'source.rankings.alexa.rank.QA', 'source.rankings.alexa.rank.RE', 'source.rankings.alexa.rank.RO', 'source.rankings.alexa.rank.RU', 'source.rankings.alexa.rank.RW', 'source.rankings.alexa.rank.BL', 'source.rankings.alexa.rank.SH', 'source.rankings.alexa.rank.KN', 'source.rankings.alexa.rank.LC', 'source.rankings.alexa.rank.MF', 'source.rankings.alexa.rank.PM', 'source.rankings.alexa.rank.VC', 'source.rankings.alexa.rank.WS', 'source.rankings.alexa.rank.SM', 'source.rankings.alexa.rank.ST', 'source.rankings.alexa.rank.SA', 'source.rankings.alexa.rank.SN', 'source.rankings.alexa.rank.RS', 'source.rankings.alexa.rank.SC', 'source.rankings.alexa.rank.SL', 'source.rankings.alexa.rank.SG', 'source.rankings.alexa.rank.SX', 'source.rankings.alexa.rank.SK', 'source.rankings.alexa.rank.SI', 'source.rankings.alexa.rank.SB', 'source.rankings.alexa.rank.SO', 'source.rankings.alexa.rank.ZA', 'source.rankings.alexa.rank.GS', 'source.rankings.alexa.rank.SS', 'source.rankings.alexa.rank.ES', 'source.rankings.alexa.rank.LK', 'source.rankings.alexa.rank.SD', 'source.rankings.alexa.rank.SR', 'source.rankings.alexa.rank.SJ', 'source.rankings.alexa.rank.SZ', 'source.rankings.alexa.rank.SE', 'source.rankings.alexa.rank.CH', 'source.rankings.alexa.rank.SY', 'source.rankings.alexa.rank.TW', 'source.rankings.alexa.rank.TJ', 'source.rankings.alexa.rank.TZ', 'source.rankings.alexa.rank.TH', 'source.rankings.alexa.rank.TL', 'source.rankings.alexa.rank.TG', 'source.rankings.alexa.rank.TK', 'source.rankings.alexa.rank.TO', 'source.rankings.alexa.rank.TT', 'source.rankings.alexa.rank.TN', 'source.rankings.alexa.rank.TR', 'source.rankings.alexa.rank.TM', 'source.rankings.alexa.rank.TC', 'source.rankings.alexa.rank.TV', 'source.rankings.alexa.rank.UG', 'source.rankings.alexa.rank.UA', 'source.rankings.alexa.rank.AE', 'source.rankings.alexa.rank.GB', 'source.rankings.alexa.rank.US', 'source.rankings.alexa.rank.UM', 'source.rankings.alexa.rank.UY', 'source.rankings.alexa.rank.UZ', 'source.rankings.alexa.rank.VU', 'source.rankings.alexa.rank.VE', 'source.rankings.alexa.rank.VN', 'source.rankings.alexa.rank.VG', 'source.rankings.alexa.rank.VI', 'source.rankings.alexa.rank.WF', 'source.rankings.alexa.rank.EH', 'source.rankings.alexa.rank.YE', 'source.rankings.alexa.rank.ZM', 'source.rankings.alexa.rank.ZW'].include?(opts[:'field'])
|
@@ -558,6 +751,13 @@ module AylienNewsApi
|
|
558
751
|
query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
|
559
752
|
query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
|
560
753
|
query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
|
754
|
+
query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
|
755
|
+
query_params[:'media.images.width.max'] = opts[:'media_images_width_max'] if !opts[:'media_images_width_max'].nil?
|
756
|
+
query_params[:'media.images.height.min'] = opts[:'media_images_height_min'] if !opts[:'media_images_height_min'].nil?
|
757
|
+
query_params[:'media.images.height.max'] = opts[:'media_images_height_max'] if !opts[:'media_images_height_max'].nil?
|
758
|
+
query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
|
759
|
+
query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
|
760
|
+
query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
|
561
761
|
query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
|
562
762
|
query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
|
563
763
|
query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
|
@@ -577,6 +777,14 @@ module AylienNewsApi
|
|
577
777
|
query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
|
578
778
|
query_params[:'source.rankings.alexa.rank.max'] = opts[:'source_rankings_alexa_rank_max'] if !opts[:'source_rankings_alexa_rank_max'].nil?
|
579
779
|
query_params[:'source.rankings.alexa.country[]'] = @api_client.build_collection_param(opts[:'source_rankings_alexa_country'], :multi) if !opts[:'source_rankings_alexa_country'].nil?
|
780
|
+
query_params[:'social_shares_count.facebook.min'] = opts[:'social_shares_count_facebook_min'] if !opts[:'social_shares_count_facebook_min'].nil?
|
781
|
+
query_params[:'social_shares_count.facebook.max'] = opts[:'social_shares_count_facebook_max'] if !opts[:'social_shares_count_facebook_max'].nil?
|
782
|
+
query_params[:'social_shares_count.google_plus.min'] = opts[:'social_shares_count_google_plus_min'] if !opts[:'social_shares_count_google_plus_min'].nil?
|
783
|
+
query_params[:'social_shares_count.google_plus.max'] = opts[:'social_shares_count_google_plus_max'] if !opts[:'social_shares_count_google_plus_max'].nil?
|
784
|
+
query_params[:'social_shares_count.linkedin.min'] = opts[:'social_shares_count_linkedin_min'] if !opts[:'social_shares_count_linkedin_min'].nil?
|
785
|
+
query_params[:'social_shares_count.linkedin.max'] = opts[:'social_shares_count_linkedin_max'] if !opts[:'social_shares_count_linkedin_max'].nil?
|
786
|
+
query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
787
|
+
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
580
788
|
query_params[:'interval.start'] = opts[:'interval_start'] if !opts[:'interval_start'].nil?
|
581
789
|
query_params[:'interval.end'] = opts[:'interval_end'] if !opts[:'interval_end'].nil?
|
582
790
|
query_params[:'interval.width'] = opts[:'interval_width'] if !opts[:'interval_width'].nil?
|
@@ -586,7 +794,7 @@ module AylienNewsApi
|
|
586
794
|
header_params = {}
|
587
795
|
|
588
796
|
# HTTP header 'Accept' (if needed)
|
589
|
-
local_header_accept = ['application/json'
|
797
|
+
local_header_accept = ['application/json']
|
590
798
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
591
799
|
|
592
800
|
# HTTP header 'Content-Type'
|
@@ -615,27 +823,34 @@ module AylienNewsApi
|
|
615
823
|
# List related stories
|
616
824
|
# This endpoint is used for finding related stories based on the parameters provided. The maximum number of related stories returned is 100.
|
617
825
|
# @param [Hash] opts the optional parameters
|
618
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
826
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
619
827
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
620
828
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
621
829
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
622
830
|
# @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.
|
623
831
|
# @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).
|
624
832
|
# @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).
|
625
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
626
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident. (default to true)
|
627
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
628
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
629
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
630
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
631
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
632
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
633
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
634
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
833
|
+
# @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).
|
834
|
+
# @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). (default to true)
|
835
|
+
# @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).
|
836
|
+
# @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).
|
837
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
838
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
839
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
840
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
841
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
842
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
635
843
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
636
844
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
637
845
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
638
846
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
847
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
848
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
849
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
850
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
851
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
852
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
853
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
639
854
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
640
855
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
641
856
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -650,13 +865,21 @@ module AylienNewsApi
|
|
650
865
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
651
866
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
652
867
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
653
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
654
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
655
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
656
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
657
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
658
|
-
# @option opts [
|
659
|
-
# @option opts [
|
868
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
869
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
870
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
871
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
872
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
873
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
874
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
875
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
876
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
877
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
878
|
+
# @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.
|
879
|
+
# @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.
|
880
|
+
# @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.
|
881
|
+
# @option opts [BOOLEAN] :cluster This parameter enables clustering for the returned stories. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering). (default to false)
|
882
|
+
# @option opts [String] :cluster_algorithm This parameter is used for specifying the clustering algorithm you wish to use. It supprts STC, Lingo and [k-means](https://en.wikipedia.org/wiki/K-means_clustering) algorithms. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering). (default to lingo)
|
660
883
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
661
884
|
# @option opts [Integer] :story_id A story id
|
662
885
|
# @option opts [String] :story_url An article or webpage
|
@@ -674,27 +897,34 @@ module AylienNewsApi
|
|
674
897
|
# List related stories
|
675
898
|
# This endpoint is used for finding related stories based on the parameters provided. The maximum number of related stories returned is 100.
|
676
899
|
# @param [Hash] opts the optional parameters
|
677
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
900
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
678
901
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
679
902
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
680
903
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
681
904
|
# @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.
|
682
905
|
# @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).
|
683
906
|
# @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).
|
684
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
685
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident.
|
686
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
687
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
688
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
689
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
690
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
691
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
692
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
693
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
907
|
+
# @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).
|
908
|
+
# @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).
|
909
|
+
# @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).
|
910
|
+
# @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).
|
911
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
912
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
913
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
914
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
915
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
916
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
694
917
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
695
918
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
696
919
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
697
920
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
921
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
922
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
923
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
924
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
925
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
926
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
927
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
698
928
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
699
929
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
700
930
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -709,13 +939,21 @@ module AylienNewsApi
|
|
709
939
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
710
940
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
711
941
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
712
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
713
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
714
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
715
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
716
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
717
|
-
# @option opts [
|
718
|
-
# @option opts [
|
942
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
943
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
944
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
945
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
946
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
947
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
948
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
949
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
950
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
951
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
952
|
+
# @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.
|
953
|
+
# @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.
|
954
|
+
# @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.
|
955
|
+
# @option opts [BOOLEAN] :cluster This parameter enables clustering for the returned stories. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
956
|
+
# @option opts [String] :cluster_algorithm This parameter is used for specifying the clustering algorithm you wish to use. It supprts STC, Lingo and [k-means](https://en.wikipedia.org/wiki/K-means_clustering) algorithms. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
719
957
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
720
958
|
# @option opts [Integer] :story_id A story id
|
721
959
|
# @option opts [String] :story_url An article or webpage
|
@@ -729,8 +967,8 @@ module AylienNewsApi
|
|
729
967
|
if @api_client.config.debugging
|
730
968
|
@api_client.config.logger.debug "Calling API: DefaultApi.list_related_stories ..."
|
731
969
|
end
|
732
|
-
if opts[:'language'] && !opts[:'language'].all?{|
|
733
|
-
fail ArgumentError, 'invalid value for "language", must
|
970
|
+
if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
|
971
|
+
fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
|
734
972
|
end
|
735
973
|
if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
|
736
974
|
fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
|
@@ -741,46 +979,105 @@ module AylienNewsApi
|
|
741
979
|
if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
|
742
980
|
fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
|
743
981
|
end
|
744
|
-
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min']
|
745
|
-
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_related_stories, must be greater than
|
982
|
+
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0.0
|
983
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
746
984
|
end
|
747
985
|
|
748
|
-
if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max']
|
749
|
-
fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_related_stories, must be greater than
|
986
|
+
if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0.0
|
987
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
750
988
|
end
|
751
989
|
|
752
|
-
if !opts[:'
|
753
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
990
|
+
if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0.0
|
991
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
754
992
|
end
|
755
993
|
|
756
|
-
if !opts[:'
|
757
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
994
|
+
if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0.0
|
995
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
758
996
|
end
|
759
997
|
|
760
|
-
if opts[:'
|
761
|
-
fail ArgumentError, 'invalid value for "
|
998
|
+
if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0.0
|
999
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
762
1000
|
end
|
763
|
-
|
764
|
-
|
1001
|
+
|
1002
|
+
if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0.0
|
1003
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
765
1004
|
end
|
766
1005
|
|
767
|
-
if !opts[:'
|
768
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1006
|
+
if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0.0
|
1007
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
769
1008
|
end
|
770
1009
|
|
771
|
-
if !opts[:'
|
772
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1010
|
+
if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0.0
|
1011
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
773
1012
|
end
|
774
1013
|
|
775
|
-
if
|
776
|
-
fail ArgumentError, 'invalid value for "
|
1014
|
+
if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
|
1015
|
+
fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
|
1016
|
+
end
|
1017
|
+
if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0.0
|
1018
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0.0
|
1022
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
|
1026
|
+
fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
|
1027
|
+
end
|
1028
|
+
if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0.0
|
1029
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0.0
|
1033
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0.0
|
1037
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0.0
|
1041
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0.0
|
1045
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0.0
|
1049
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0.0
|
1053
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0.0
|
1057
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0.0
|
1061
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0.0
|
1065
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0.0
|
1069
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0.0
|
1073
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.0.'
|
777
1074
|
end
|
778
1075
|
|
779
1076
|
if opts[:'cluster_algorithm'] && !['stc', 'lingo', 'kmeans'].include?(opts[:'cluster_algorithm'])
|
780
1077
|
fail ArgumentError, 'invalid value for "cluster_algorithm", must be one of stc, lingo, kmeans'
|
781
1078
|
end
|
782
|
-
if opts[:'_return'] && !opts[:'_return'].all?{|
|
783
|
-
fail ArgumentError, 'invalid value for "_return", must
|
1079
|
+
if opts[:'_return'] && !opts[:'_return'].all?{|item| ['id', 'title', 'body', 'summary', 'source', 'author', 'entities', 'keywords', 'hashtags', 'characters_count', 'words_count', 'sentences_count', 'paragraphs_count', 'categories', 'social_shares_count', 'media', 'sentiment', 'language', 'published_at', 'links'].include?(item)}
|
1080
|
+
fail ArgumentError, 'invalid value for "_return", must include one of id, title, body, summary, source, author, entities, keywords, hashtags, characters_count, words_count, sentences_count, paragraphs_count, categories, social_shares_count, media, sentiment, language, published_at, links'
|
784
1081
|
end
|
785
1082
|
if opts[:'boost_by'] && !['recency', 'popularity'].include?(opts[:'boost_by'])
|
786
1083
|
fail ArgumentError, 'invalid value for "boost_by", must be one of recency, popularity'
|
@@ -806,7 +1103,7 @@ module AylienNewsApi
|
|
806
1103
|
header_params = {}
|
807
1104
|
|
808
1105
|
# HTTP header 'Accept' (if needed)
|
809
|
-
local_header_accept = ['application/json'
|
1106
|
+
local_header_accept = ['application/json']
|
810
1107
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
811
1108
|
|
812
1109
|
# HTTP header 'Content-Type'
|
@@ -836,6 +1133,13 @@ module AylienNewsApi
|
|
836
1133
|
form_params["sentiment.body.polarity"] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
|
837
1134
|
form_params["media.images.count.min"] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
|
838
1135
|
form_params["media.images.count.max"] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
|
1136
|
+
form_params["media.images.width.min"] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
|
1137
|
+
form_params["media.images.width.max"] = opts[:'media_images_width_max'] if !opts[:'media_images_width_max'].nil?
|
1138
|
+
form_params["media.images.height.min"] = opts[:'media_images_height_min'] if !opts[:'media_images_height_min'].nil?
|
1139
|
+
form_params["media.images.height.max"] = opts[:'media_images_height_max'] if !opts[:'media_images_height_max'].nil?
|
1140
|
+
form_params["media.images.content_length.min"] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
|
1141
|
+
form_params["media.images.content_length.max"] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
|
1142
|
+
form_params["media.images.format[]"] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
|
839
1143
|
form_params["media.videos.count.min"] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
|
840
1144
|
form_params["media.videos.count.max"] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
|
841
1145
|
form_params["author.id[]"] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
|
@@ -855,6 +1159,14 @@ module AylienNewsApi
|
|
855
1159
|
form_params["source.rankings.alexa.rank.min"] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
|
856
1160
|
form_params["source.rankings.alexa.rank.max"] = opts[:'source_rankings_alexa_rank_max'] if !opts[:'source_rankings_alexa_rank_max'].nil?
|
857
1161
|
form_params["source.rankings.alexa.country[]"] = @api_client.build_collection_param(opts[:'source_rankings_alexa_country'], :multi) if !opts[:'source_rankings_alexa_country'].nil?
|
1162
|
+
form_params["social_shares_count.facebook.min"] = opts[:'social_shares_count_facebook_min'] if !opts[:'social_shares_count_facebook_min'].nil?
|
1163
|
+
form_params["social_shares_count.facebook.max"] = opts[:'social_shares_count_facebook_max'] if !opts[:'social_shares_count_facebook_max'].nil?
|
1164
|
+
form_params["social_shares_count.google_plus.min"] = opts[:'social_shares_count_google_plus_min'] if !opts[:'social_shares_count_google_plus_min'].nil?
|
1165
|
+
form_params["social_shares_count.google_plus.max"] = opts[:'social_shares_count_google_plus_max'] if !opts[:'social_shares_count_google_plus_max'].nil?
|
1166
|
+
form_params["social_shares_count.linkedin.min"] = opts[:'social_shares_count_linkedin_min'] if !opts[:'social_shares_count_linkedin_min'].nil?
|
1167
|
+
form_params["social_shares_count.linkedin.max"] = opts[:'social_shares_count_linkedin_max'] if !opts[:'social_shares_count_linkedin_max'].nil?
|
1168
|
+
form_params["social_shares_count.reddit.min"] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
1169
|
+
form_params["social_shares_count.reddit.max"] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
858
1170
|
form_params["cluster"] = opts[:'cluster'] if !opts[:'cluster'].nil?
|
859
1171
|
form_params["cluster.algorithm"] = opts[:'cluster_algorithm'] if !opts[:'cluster_algorithm'].nil?
|
860
1172
|
form_params["return[]"] = @api_client.build_collection_param(opts[:'_return'], :multi) if !opts[:'_return'].nil?
|
@@ -885,27 +1197,34 @@ module AylienNewsApi
|
|
885
1197
|
# List Stories
|
886
1198
|
# This endpoint is used for getting a list of stories.
|
887
1199
|
# @param [Hash] opts the optional parameters
|
888
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
1200
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
889
1201
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
890
1202
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
891
1203
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
892
1204
|
# @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.
|
893
1205
|
# @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).
|
894
1206
|
# @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).
|
895
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
896
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident. (default to true)
|
897
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
898
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
899
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
900
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
901
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
902
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
903
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
904
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
1207
|
+
# @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).
|
1208
|
+
# @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). (default to true)
|
1209
|
+
# @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).
|
1210
|
+
# @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).
|
1211
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1212
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1213
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1214
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1215
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1216
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
905
1217
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
906
1218
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
907
1219
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
908
1220
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
1221
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
1222
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
1223
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
1224
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
1225
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
1226
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
1227
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
909
1228
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
910
1229
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
911
1230
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -920,18 +1239,26 @@ module AylienNewsApi
|
|
920
1239
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
921
1240
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
922
1241
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
923
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
924
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
925
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
926
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
927
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
928
|
-
# @option opts [
|
929
|
-
# @option opts [
|
1242
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1243
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1244
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1245
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1246
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1247
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
1248
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
1249
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
1250
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
1251
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
1252
|
+
# @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.
|
1253
|
+
# @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.
|
1254
|
+
# @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.
|
1255
|
+
# @option opts [BOOLEAN] :cluster This parameter enables clustering for the returned stories. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering). (default to false)
|
1256
|
+
# @option opts [String] :cluster_algorithm This parameter is used for specifying the clustering algorithm you wish to use. It supprts STC, Lingo and [k-means](https://en.wikipedia.org/wiki/K-means_clustering) algorithms. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering). (default to lingo)
|
930
1257
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
931
1258
|
# @option opts [String] :sort_by This parameter is used for changing the order column of the results. (default to published_at)
|
932
1259
|
# @option opts [String] :sort_direction This parameter is used for changing the order direction of the result. (default to desc)
|
933
|
-
# @option opts [String] :cursor This parameter is used for finding a specific page. (default to *)
|
934
|
-
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page. (default to 10)
|
1260
|
+
# @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). (default to *)
|
1261
|
+
# @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) (default to 10)
|
935
1262
|
# @return [Stories]
|
936
1263
|
def list_stories(opts = {})
|
937
1264
|
data, _status_code, _headers = list_stories_with_http_info(opts)
|
@@ -941,27 +1268,34 @@ module AylienNewsApi
|
|
941
1268
|
# List Stories
|
942
1269
|
# This endpoint is used for getting a list of stories.
|
943
1270
|
# @param [Hash] opts the optional parameters
|
944
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
1271
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
945
1272
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
946
1273
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
947
1274
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
948
1275
|
# @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.
|
949
1276
|
# @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).
|
950
1277
|
# @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).
|
951
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
952
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident.
|
953
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
954
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
955
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
956
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
957
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
958
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
959
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
960
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
1278
|
+
# @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).
|
1279
|
+
# @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).
|
1280
|
+
# @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).
|
1281
|
+
# @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).
|
1282
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1283
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1284
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1285
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1286
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1287
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
961
1288
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
962
1289
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
963
1290
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
964
1291
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
1292
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
1293
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
1294
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
1295
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
1296
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
1297
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
1298
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
965
1299
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
966
1300
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
967
1301
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -976,25 +1310,33 @@ module AylienNewsApi
|
|
976
1310
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
977
1311
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
978
1312
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
979
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
980
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
981
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
982
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
983
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
984
|
-
# @option opts [
|
985
|
-
# @option opts [
|
1313
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1314
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1315
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1316
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1317
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1318
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
1319
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
1320
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
1321
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
1322
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
1323
|
+
# @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.
|
1324
|
+
# @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.
|
1325
|
+
# @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.
|
1326
|
+
# @option opts [BOOLEAN] :cluster This parameter enables clustering for the returned stories. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
1327
|
+
# @option opts [String] :cluster_algorithm This parameter is used for specifying the clustering algorithm you wish to use. It supprts STC, Lingo and [k-means](https://en.wikipedia.org/wiki/K-means_clustering) algorithms. You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
986
1328
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
987
1329
|
# @option opts [String] :sort_by This parameter is used for changing the order column of the results.
|
988
1330
|
# @option opts [String] :sort_direction This parameter is used for changing the order direction of the result.
|
989
|
-
# @option opts [String] :cursor This parameter is used for finding a specific page.
|
990
|
-
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
1331
|
+
# @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).
|
1332
|
+
# @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)
|
991
1333
|
# @return [Array<(Stories, Fixnum, Hash)>] Stories data, response status code and response headers
|
992
1334
|
def list_stories_with_http_info(opts = {})
|
993
1335
|
if @api_client.config.debugging
|
994
1336
|
@api_client.config.logger.debug "Calling API: DefaultApi.list_stories ..."
|
995
1337
|
end
|
996
|
-
if opts[:'language'] && !opts[:'language'].all?{|
|
997
|
-
fail ArgumentError, 'invalid value for "language", must
|
1338
|
+
if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
|
1339
|
+
fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
|
998
1340
|
end
|
999
1341
|
if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
|
1000
1342
|
fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
|
@@ -1005,46 +1347,105 @@ module AylienNewsApi
|
|
1005
1347
|
if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
|
1006
1348
|
fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
|
1007
1349
|
end
|
1008
|
-
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min']
|
1009
|
-
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_stories, must be greater than
|
1350
|
+
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0.0
|
1351
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0.0
|
1355
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0.0
|
1359
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0.0
|
1363
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0.0
|
1367
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1010
1368
|
end
|
1011
1369
|
|
1012
|
-
if !opts[:'
|
1013
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1370
|
+
if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0.0
|
1371
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1014
1372
|
end
|
1015
1373
|
|
1016
|
-
if !opts[:'
|
1017
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1374
|
+
if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0.0
|
1375
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1018
1376
|
end
|
1019
1377
|
|
1020
|
-
if !opts[:'
|
1021
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1378
|
+
if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0.0
|
1379
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1022
1380
|
end
|
1023
1381
|
|
1024
|
-
if opts[:'
|
1025
|
-
fail ArgumentError, 'invalid value for "
|
1382
|
+
if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
|
1383
|
+
fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
|
1026
1384
|
end
|
1027
|
-
if !opts[:'
|
1028
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1385
|
+
if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0.0
|
1386
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1029
1387
|
end
|
1030
1388
|
|
1031
|
-
if !opts[:'
|
1032
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1389
|
+
if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0.0
|
1390
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
|
1394
|
+
fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
|
1395
|
+
end
|
1396
|
+
if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0.0
|
1397
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1033
1398
|
end
|
1034
1399
|
|
1035
|
-
if !opts[:'
|
1036
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1400
|
+
if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0.0
|
1401
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1037
1402
|
end
|
1038
1403
|
|
1039
|
-
if !opts[:'
|
1040
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1404
|
+
if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0.0
|
1405
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0.0
|
1409
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1410
|
+
end
|
1411
|
+
|
1412
|
+
if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0.0
|
1413
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0.0
|
1417
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0.0
|
1421
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0.0
|
1425
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0.0
|
1429
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0.0
|
1433
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0.0
|
1437
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0.0
|
1441
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_stories, must be greater than 0.0.'
|
1041
1442
|
end
|
1042
1443
|
|
1043
1444
|
if opts[:'cluster_algorithm'] && !['stc', 'lingo', 'kmeans'].include?(opts[:'cluster_algorithm'])
|
1044
1445
|
fail ArgumentError, 'invalid value for "cluster_algorithm", must be one of stc, lingo, kmeans'
|
1045
1446
|
end
|
1046
|
-
if opts[:'_return'] && !opts[:'_return'].all?{|
|
1047
|
-
fail ArgumentError, 'invalid value for "_return", must
|
1447
|
+
if opts[:'_return'] && !opts[:'_return'].all?{|item| ['id', 'title', 'body', 'summary', 'source', 'author', 'entities', 'keywords', 'hashtags', 'characters_count', 'words_count', 'sentences_count', 'paragraphs_count', 'categories', 'social_shares_count', 'media', 'sentiment', 'language', 'published_at', 'links'].include?(item)}
|
1448
|
+
fail ArgumentError, 'invalid value for "_return", must include one of id, title, body, summary, source, author, entities, keywords, hashtags, characters_count, words_count, sentences_count, paragraphs_count, categories, social_shares_count, media, sentiment, language, published_at, links'
|
1048
1449
|
end
|
1049
1450
|
if opts[:'sort_by'] && !['relevance', 'recency', 'hotness', 'published_at', 'social_shares_count', 'social_shares_count.facebook', 'social_shares_count.linkedin', 'social_shares_count.google_plus', 'social_shares_count.reddit', 'media.images.count', 'media.videos.count', 'source.links_in_count', 'source.rankings.alexa.rank', 'source.rankings.alexa.rank.AF', 'source.rankings.alexa.rank.AX', 'source.rankings.alexa.rank.AL', 'source.rankings.alexa.rank.DZ', 'source.rankings.alexa.rank.AS', 'source.rankings.alexa.rank.AD', 'source.rankings.alexa.rank.AO', 'source.rankings.alexa.rank.AI', 'source.rankings.alexa.rank.AQ', 'source.rankings.alexa.rank.AG', 'source.rankings.alexa.rank.AR', 'source.rankings.alexa.rank.AM', 'source.rankings.alexa.rank.AW', 'source.rankings.alexa.rank.AU', 'source.rankings.alexa.rank.AT', 'source.rankings.alexa.rank.AZ', 'source.rankings.alexa.rank.BS', 'source.rankings.alexa.rank.BH', 'source.rankings.alexa.rank.BD', 'source.rankings.alexa.rank.BB', 'source.rankings.alexa.rank.BY', 'source.rankings.alexa.rank.BE', 'source.rankings.alexa.rank.BZ', 'source.rankings.alexa.rank.BJ', 'source.rankings.alexa.rank.BM', 'source.rankings.alexa.rank.BT', 'source.rankings.alexa.rank.BO', 'source.rankings.alexa.rank.BQ', 'source.rankings.alexa.rank.BA', 'source.rankings.alexa.rank.BW', 'source.rankings.alexa.rank.BV', 'source.rankings.alexa.rank.BR', 'source.rankings.alexa.rank.IO', 'source.rankings.alexa.rank.BN', 'source.rankings.alexa.rank.BG', 'source.rankings.alexa.rank.BF', 'source.rankings.alexa.rank.BI', 'source.rankings.alexa.rank.KH', 'source.rankings.alexa.rank.CM', 'source.rankings.alexa.rank.CA', 'source.rankings.alexa.rank.CV', 'source.rankings.alexa.rank.KY', 'source.rankings.alexa.rank.CF', 'source.rankings.alexa.rank.TD', 'source.rankings.alexa.rank.CL', 'source.rankings.alexa.rank.CN', 'source.rankings.alexa.rank.CX', 'source.rankings.alexa.rank.CC', 'source.rankings.alexa.rank.CO', 'source.rankings.alexa.rank.KM', 'source.rankings.alexa.rank.CG', 'source.rankings.alexa.rank.CD', 'source.rankings.alexa.rank.CK', 'source.rankings.alexa.rank.CR', 'source.rankings.alexa.rank.CI', 'source.rankings.alexa.rank.HR', 'source.rankings.alexa.rank.CU', 'source.rankings.alexa.rank.CW', 'source.rankings.alexa.rank.CY', 'source.rankings.alexa.rank.CZ', 'source.rankings.alexa.rank.DK', 'source.rankings.alexa.rank.DJ', 'source.rankings.alexa.rank.DM', 'source.rankings.alexa.rank.DO', 'source.rankings.alexa.rank.EC', 'source.rankings.alexa.rank.EG', 'source.rankings.alexa.rank.SV', 'source.rankings.alexa.rank.GQ', 'source.rankings.alexa.rank.ER', 'source.rankings.alexa.rank.EE', 'source.rankings.alexa.rank.ET', 'source.rankings.alexa.rank.FK', 'source.rankings.alexa.rank.FO', 'source.rankings.alexa.rank.FJ', 'source.rankings.alexa.rank.FI', 'source.rankings.alexa.rank.FR', 'source.rankings.alexa.rank.GF', 'source.rankings.alexa.rank.PF', 'source.rankings.alexa.rank.TF', 'source.rankings.alexa.rank.GA', 'source.rankings.alexa.rank.GM', 'source.rankings.alexa.rank.GE', 'source.rankings.alexa.rank.DE', 'source.rankings.alexa.rank.GH', 'source.rankings.alexa.rank.GI', 'source.rankings.alexa.rank.GR', 'source.rankings.alexa.rank.GL', 'source.rankings.alexa.rank.GD', 'source.rankings.alexa.rank.GP', 'source.rankings.alexa.rank.GU', 'source.rankings.alexa.rank.GT', 'source.rankings.alexa.rank.GG', 'source.rankings.alexa.rank.GN', 'source.rankings.alexa.rank.GW', 'source.rankings.alexa.rank.GY', 'source.rankings.alexa.rank.HT', 'source.rankings.alexa.rank.HM', 'source.rankings.alexa.rank.VA', 'source.rankings.alexa.rank.HN', 'source.rankings.alexa.rank.HK', 'source.rankings.alexa.rank.HU', 'source.rankings.alexa.rank.IS', 'source.rankings.alexa.rank.IN', 'source.rankings.alexa.rank.ID', 'source.rankings.alexa.rank.IR', 'source.rankings.alexa.rank.IQ', 'source.rankings.alexa.rank.IE', 'source.rankings.alexa.rank.IM', 'source.rankings.alexa.rank.IL', 'source.rankings.alexa.rank.IT', 'source.rankings.alexa.rank.JM', 'source.rankings.alexa.rank.JP', 'source.rankings.alexa.rank.JE', 'source.rankings.alexa.rank.JO', 'source.rankings.alexa.rank.KZ', 'source.rankings.alexa.rank.KE', 'source.rankings.alexa.rank.KI', 'source.rankings.alexa.rank.KP', 'source.rankings.alexa.rank.KR', 'source.rankings.alexa.rank.KW', 'source.rankings.alexa.rank.KG', 'source.rankings.alexa.rank.LA', 'source.rankings.alexa.rank.LV', 'source.rankings.alexa.rank.LB', 'source.rankings.alexa.rank.LS', 'source.rankings.alexa.rank.LR', 'source.rankings.alexa.rank.LY', 'source.rankings.alexa.rank.LI', 'source.rankings.alexa.rank.LT', 'source.rankings.alexa.rank.LU', 'source.rankings.alexa.rank.MO', 'source.rankings.alexa.rank.MK', 'source.rankings.alexa.rank.MG', 'source.rankings.alexa.rank.MW', 'source.rankings.alexa.rank.MY', 'source.rankings.alexa.rank.MV', 'source.rankings.alexa.rank.ML', 'source.rankings.alexa.rank.MT', 'source.rankings.alexa.rank.MH', 'source.rankings.alexa.rank.MQ', 'source.rankings.alexa.rank.MR', 'source.rankings.alexa.rank.MU', 'source.rankings.alexa.rank.YT', 'source.rankings.alexa.rank.MX', 'source.rankings.alexa.rank.FM', 'source.rankings.alexa.rank.MD', 'source.rankings.alexa.rank.MC', 'source.rankings.alexa.rank.MN', 'source.rankings.alexa.rank.ME', 'source.rankings.alexa.rank.MS', 'source.rankings.alexa.rank.MA', 'source.rankings.alexa.rank.MZ', 'source.rankings.alexa.rank.MM', 'source.rankings.alexa.rank.NA', 'source.rankings.alexa.rank.NR', 'source.rankings.alexa.rank.NP', 'source.rankings.alexa.rank.NL', 'source.rankings.alexa.rank.NC', 'source.rankings.alexa.rank.NZ', 'source.rankings.alexa.rank.NI', 'source.rankings.alexa.rank.NE', 'source.rankings.alexa.rank.NG', 'source.rankings.alexa.rank.NU', 'source.rankings.alexa.rank.NF', 'source.rankings.alexa.rank.MP', 'source.rankings.alexa.rank.NO', 'source.rankings.alexa.rank.OM', 'source.rankings.alexa.rank.PK', 'source.rankings.alexa.rank.PW', 'source.rankings.alexa.rank.PS', 'source.rankings.alexa.rank.PA', 'source.rankings.alexa.rank.PG', 'source.rankings.alexa.rank.PY', 'source.rankings.alexa.rank.PE', 'source.rankings.alexa.rank.PH', 'source.rankings.alexa.rank.PN', 'source.rankings.alexa.rank.PL', 'source.rankings.alexa.rank.PT', 'source.rankings.alexa.rank.PR', 'source.rankings.alexa.rank.QA', 'source.rankings.alexa.rank.RE', 'source.rankings.alexa.rank.RO', 'source.rankings.alexa.rank.RU', 'source.rankings.alexa.rank.RW', 'source.rankings.alexa.rank.BL', 'source.rankings.alexa.rank.SH', 'source.rankings.alexa.rank.KN', 'source.rankings.alexa.rank.LC', 'source.rankings.alexa.rank.MF', 'source.rankings.alexa.rank.PM', 'source.rankings.alexa.rank.VC', 'source.rankings.alexa.rank.WS', 'source.rankings.alexa.rank.SM', 'source.rankings.alexa.rank.ST', 'source.rankings.alexa.rank.SA', 'source.rankings.alexa.rank.SN', 'source.rankings.alexa.rank.RS', 'source.rankings.alexa.rank.SC', 'source.rankings.alexa.rank.SL', 'source.rankings.alexa.rank.SG', 'source.rankings.alexa.rank.SX', 'source.rankings.alexa.rank.SK', 'source.rankings.alexa.rank.SI', 'source.rankings.alexa.rank.SB', 'source.rankings.alexa.rank.SO', 'source.rankings.alexa.rank.ZA', 'source.rankings.alexa.rank.GS', 'source.rankings.alexa.rank.SS', 'source.rankings.alexa.rank.ES', 'source.rankings.alexa.rank.LK', 'source.rankings.alexa.rank.SD', 'source.rankings.alexa.rank.SR', 'source.rankings.alexa.rank.SJ', 'source.rankings.alexa.rank.SZ', 'source.rankings.alexa.rank.SE', 'source.rankings.alexa.rank.CH', 'source.rankings.alexa.rank.SY', 'source.rankings.alexa.rank.TW', 'source.rankings.alexa.rank.TJ', 'source.rankings.alexa.rank.TZ', 'source.rankings.alexa.rank.TH', 'source.rankings.alexa.rank.TL', 'source.rankings.alexa.rank.TG', 'source.rankings.alexa.rank.TK', 'source.rankings.alexa.rank.TO', 'source.rankings.alexa.rank.TT', 'source.rankings.alexa.rank.TN', 'source.rankings.alexa.rank.TR', 'source.rankings.alexa.rank.TM', 'source.rankings.alexa.rank.TC', 'source.rankings.alexa.rank.TV', 'source.rankings.alexa.rank.UG', 'source.rankings.alexa.rank.UA', 'source.rankings.alexa.rank.AE', 'source.rankings.alexa.rank.GB', 'source.rankings.alexa.rank.US', 'source.rankings.alexa.rank.UM', 'source.rankings.alexa.rank.UY', 'source.rankings.alexa.rank.UZ', 'source.rankings.alexa.rank.VU', 'source.rankings.alexa.rank.VE', 'source.rankings.alexa.rank.VN', 'source.rankings.alexa.rank.VG', 'source.rankings.alexa.rank.VI', 'source.rankings.alexa.rank.WF', 'source.rankings.alexa.rank.EH', 'source.rankings.alexa.rank.YE', 'source.rankings.alexa.rank.ZM', 'source.rankings.alexa.rank.ZW'].include?(opts[:'sort_by'])
|
1050
1451
|
fail ArgumentError, 'invalid value for "sort_by", must be one of relevance, recency, hotness, published_at, social_shares_count, social_shares_count.facebook, social_shares_count.linkedin, social_shares_count.google_plus, social_shares_count.reddit, media.images.count, media.videos.count, source.links_in_count, source.rankings.alexa.rank, source.rankings.alexa.rank.AF, source.rankings.alexa.rank.AX, source.rankings.alexa.rank.AL, source.rankings.alexa.rank.DZ, source.rankings.alexa.rank.AS, source.rankings.alexa.rank.AD, source.rankings.alexa.rank.AO, source.rankings.alexa.rank.AI, source.rankings.alexa.rank.AQ, source.rankings.alexa.rank.AG, source.rankings.alexa.rank.AR, source.rankings.alexa.rank.AM, source.rankings.alexa.rank.AW, source.rankings.alexa.rank.AU, source.rankings.alexa.rank.AT, source.rankings.alexa.rank.AZ, source.rankings.alexa.rank.BS, source.rankings.alexa.rank.BH, source.rankings.alexa.rank.BD, source.rankings.alexa.rank.BB, source.rankings.alexa.rank.BY, source.rankings.alexa.rank.BE, source.rankings.alexa.rank.BZ, source.rankings.alexa.rank.BJ, source.rankings.alexa.rank.BM, source.rankings.alexa.rank.BT, source.rankings.alexa.rank.BO, source.rankings.alexa.rank.BQ, source.rankings.alexa.rank.BA, source.rankings.alexa.rank.BW, source.rankings.alexa.rank.BV, source.rankings.alexa.rank.BR, source.rankings.alexa.rank.IO, source.rankings.alexa.rank.BN, source.rankings.alexa.rank.BG, source.rankings.alexa.rank.BF, source.rankings.alexa.rank.BI, source.rankings.alexa.rank.KH, source.rankings.alexa.rank.CM, source.rankings.alexa.rank.CA, source.rankings.alexa.rank.CV, source.rankings.alexa.rank.KY, source.rankings.alexa.rank.CF, source.rankings.alexa.rank.TD, source.rankings.alexa.rank.CL, source.rankings.alexa.rank.CN, source.rankings.alexa.rank.CX, source.rankings.alexa.rank.CC, source.rankings.alexa.rank.CO, source.rankings.alexa.rank.KM, source.rankings.alexa.rank.CG, source.rankings.alexa.rank.CD, source.rankings.alexa.rank.CK, source.rankings.alexa.rank.CR, source.rankings.alexa.rank.CI, source.rankings.alexa.rank.HR, source.rankings.alexa.rank.CU, source.rankings.alexa.rank.CW, source.rankings.alexa.rank.CY, source.rankings.alexa.rank.CZ, source.rankings.alexa.rank.DK, source.rankings.alexa.rank.DJ, source.rankings.alexa.rank.DM, source.rankings.alexa.rank.DO, source.rankings.alexa.rank.EC, source.rankings.alexa.rank.EG, source.rankings.alexa.rank.SV, source.rankings.alexa.rank.GQ, source.rankings.alexa.rank.ER, source.rankings.alexa.rank.EE, source.rankings.alexa.rank.ET, source.rankings.alexa.rank.FK, source.rankings.alexa.rank.FO, source.rankings.alexa.rank.FJ, source.rankings.alexa.rank.FI, source.rankings.alexa.rank.FR, source.rankings.alexa.rank.GF, source.rankings.alexa.rank.PF, source.rankings.alexa.rank.TF, source.rankings.alexa.rank.GA, source.rankings.alexa.rank.GM, source.rankings.alexa.rank.GE, source.rankings.alexa.rank.DE, source.rankings.alexa.rank.GH, source.rankings.alexa.rank.GI, source.rankings.alexa.rank.GR, source.rankings.alexa.rank.GL, source.rankings.alexa.rank.GD, source.rankings.alexa.rank.GP, source.rankings.alexa.rank.GU, source.rankings.alexa.rank.GT, source.rankings.alexa.rank.GG, source.rankings.alexa.rank.GN, source.rankings.alexa.rank.GW, source.rankings.alexa.rank.GY, source.rankings.alexa.rank.HT, source.rankings.alexa.rank.HM, source.rankings.alexa.rank.VA, source.rankings.alexa.rank.HN, source.rankings.alexa.rank.HK, source.rankings.alexa.rank.HU, source.rankings.alexa.rank.IS, source.rankings.alexa.rank.IN, source.rankings.alexa.rank.ID, source.rankings.alexa.rank.IR, source.rankings.alexa.rank.IQ, source.rankings.alexa.rank.IE, source.rankings.alexa.rank.IM, source.rankings.alexa.rank.IL, source.rankings.alexa.rank.IT, source.rankings.alexa.rank.JM, source.rankings.alexa.rank.JP, source.rankings.alexa.rank.JE, source.rankings.alexa.rank.JO, source.rankings.alexa.rank.KZ, source.rankings.alexa.rank.KE, source.rankings.alexa.rank.KI, source.rankings.alexa.rank.KP, source.rankings.alexa.rank.KR, source.rankings.alexa.rank.KW, source.rankings.alexa.rank.KG, source.rankings.alexa.rank.LA, source.rankings.alexa.rank.LV, source.rankings.alexa.rank.LB, source.rankings.alexa.rank.LS, source.rankings.alexa.rank.LR, source.rankings.alexa.rank.LY, source.rankings.alexa.rank.LI, source.rankings.alexa.rank.LT, source.rankings.alexa.rank.LU, source.rankings.alexa.rank.MO, source.rankings.alexa.rank.MK, source.rankings.alexa.rank.MG, source.rankings.alexa.rank.MW, source.rankings.alexa.rank.MY, source.rankings.alexa.rank.MV, source.rankings.alexa.rank.ML, source.rankings.alexa.rank.MT, source.rankings.alexa.rank.MH, source.rankings.alexa.rank.MQ, source.rankings.alexa.rank.MR, source.rankings.alexa.rank.MU, source.rankings.alexa.rank.YT, source.rankings.alexa.rank.MX, source.rankings.alexa.rank.FM, source.rankings.alexa.rank.MD, source.rankings.alexa.rank.MC, source.rankings.alexa.rank.MN, source.rankings.alexa.rank.ME, source.rankings.alexa.rank.MS, source.rankings.alexa.rank.MA, source.rankings.alexa.rank.MZ, source.rankings.alexa.rank.MM, source.rankings.alexa.rank.NA, source.rankings.alexa.rank.NR, source.rankings.alexa.rank.NP, source.rankings.alexa.rank.NL, source.rankings.alexa.rank.NC, source.rankings.alexa.rank.NZ, source.rankings.alexa.rank.NI, source.rankings.alexa.rank.NE, source.rankings.alexa.rank.NG, source.rankings.alexa.rank.NU, source.rankings.alexa.rank.NF, source.rankings.alexa.rank.MP, source.rankings.alexa.rank.NO, source.rankings.alexa.rank.OM, source.rankings.alexa.rank.PK, source.rankings.alexa.rank.PW, source.rankings.alexa.rank.PS, source.rankings.alexa.rank.PA, source.rankings.alexa.rank.PG, source.rankings.alexa.rank.PY, source.rankings.alexa.rank.PE, source.rankings.alexa.rank.PH, source.rankings.alexa.rank.PN, source.rankings.alexa.rank.PL, source.rankings.alexa.rank.PT, source.rankings.alexa.rank.PR, source.rankings.alexa.rank.QA, source.rankings.alexa.rank.RE, source.rankings.alexa.rank.RO, source.rankings.alexa.rank.RU, source.rankings.alexa.rank.RW, source.rankings.alexa.rank.BL, source.rankings.alexa.rank.SH, source.rankings.alexa.rank.KN, source.rankings.alexa.rank.LC, source.rankings.alexa.rank.MF, source.rankings.alexa.rank.PM, source.rankings.alexa.rank.VC, source.rankings.alexa.rank.WS, source.rankings.alexa.rank.SM, source.rankings.alexa.rank.ST, source.rankings.alexa.rank.SA, source.rankings.alexa.rank.SN, source.rankings.alexa.rank.RS, source.rankings.alexa.rank.SC, source.rankings.alexa.rank.SL, source.rankings.alexa.rank.SG, source.rankings.alexa.rank.SX, source.rankings.alexa.rank.SK, source.rankings.alexa.rank.SI, source.rankings.alexa.rank.SB, source.rankings.alexa.rank.SO, source.rankings.alexa.rank.ZA, source.rankings.alexa.rank.GS, source.rankings.alexa.rank.SS, source.rankings.alexa.rank.ES, source.rankings.alexa.rank.LK, source.rankings.alexa.rank.SD, source.rankings.alexa.rank.SR, source.rankings.alexa.rank.SJ, source.rankings.alexa.rank.SZ, source.rankings.alexa.rank.SE, source.rankings.alexa.rank.CH, source.rankings.alexa.rank.SY, source.rankings.alexa.rank.TW, source.rankings.alexa.rank.TJ, source.rankings.alexa.rank.TZ, source.rankings.alexa.rank.TH, source.rankings.alexa.rank.TL, source.rankings.alexa.rank.TG, source.rankings.alexa.rank.TK, source.rankings.alexa.rank.TO, source.rankings.alexa.rank.TT, source.rankings.alexa.rank.TN, source.rankings.alexa.rank.TR, source.rankings.alexa.rank.TM, source.rankings.alexa.rank.TC, source.rankings.alexa.rank.TV, source.rankings.alexa.rank.UG, source.rankings.alexa.rank.UA, source.rankings.alexa.rank.AE, source.rankings.alexa.rank.GB, source.rankings.alexa.rank.US, source.rankings.alexa.rank.UM, source.rankings.alexa.rank.UY, source.rankings.alexa.rank.UZ, source.rankings.alexa.rank.VU, source.rankings.alexa.rank.VE, source.rankings.alexa.rank.VN, source.rankings.alexa.rank.VG, source.rankings.alexa.rank.VI, source.rankings.alexa.rank.WF, source.rankings.alexa.rank.EH, source.rankings.alexa.rank.YE, source.rankings.alexa.rank.ZM, source.rankings.alexa.rank.ZW'
|
@@ -1086,6 +1487,13 @@ module AylienNewsApi
|
|
1086
1487
|
query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
|
1087
1488
|
query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
|
1088
1489
|
query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
|
1490
|
+
query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
|
1491
|
+
query_params[:'media.images.width.max'] = opts[:'media_images_width_max'] if !opts[:'media_images_width_max'].nil?
|
1492
|
+
query_params[:'media.images.height.min'] = opts[:'media_images_height_min'] if !opts[:'media_images_height_min'].nil?
|
1493
|
+
query_params[:'media.images.height.max'] = opts[:'media_images_height_max'] if !opts[:'media_images_height_max'].nil?
|
1494
|
+
query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
|
1495
|
+
query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
|
1496
|
+
query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
|
1089
1497
|
query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
|
1090
1498
|
query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
|
1091
1499
|
query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
|
@@ -1105,6 +1513,14 @@ module AylienNewsApi
|
|
1105
1513
|
query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
|
1106
1514
|
query_params[:'source.rankings.alexa.rank.max'] = opts[:'source_rankings_alexa_rank_max'] if !opts[:'source_rankings_alexa_rank_max'].nil?
|
1107
1515
|
query_params[:'source.rankings.alexa.country[]'] = @api_client.build_collection_param(opts[:'source_rankings_alexa_country'], :multi) if !opts[:'source_rankings_alexa_country'].nil?
|
1516
|
+
query_params[:'social_shares_count.facebook.min'] = opts[:'social_shares_count_facebook_min'] if !opts[:'social_shares_count_facebook_min'].nil?
|
1517
|
+
query_params[:'social_shares_count.facebook.max'] = opts[:'social_shares_count_facebook_max'] if !opts[:'social_shares_count_facebook_max'].nil?
|
1518
|
+
query_params[:'social_shares_count.google_plus.min'] = opts[:'social_shares_count_google_plus_min'] if !opts[:'social_shares_count_google_plus_min'].nil?
|
1519
|
+
query_params[:'social_shares_count.google_plus.max'] = opts[:'social_shares_count_google_plus_max'] if !opts[:'social_shares_count_google_plus_max'].nil?
|
1520
|
+
query_params[:'social_shares_count.linkedin.min'] = opts[:'social_shares_count_linkedin_min'] if !opts[:'social_shares_count_linkedin_min'].nil?
|
1521
|
+
query_params[:'social_shares_count.linkedin.max'] = opts[:'social_shares_count_linkedin_max'] if !opts[:'social_shares_count_linkedin_max'].nil?
|
1522
|
+
query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
1523
|
+
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
1108
1524
|
query_params[:'cluster'] = opts[:'cluster'] if !opts[:'cluster'].nil?
|
1109
1525
|
query_params[:'cluster.algorithm'] = opts[:'cluster_algorithm'] if !opts[:'cluster_algorithm'].nil?
|
1110
1526
|
query_params[:'return[]'] = @api_client.build_collection_param(opts[:'_return'], :multi) if !opts[:'_return'].nil?
|
@@ -1117,7 +1533,7 @@ module AylienNewsApi
|
|
1117
1533
|
header_params = {}
|
1118
1534
|
|
1119
1535
|
# HTTP header 'Accept' (if needed)
|
1120
|
-
local_header_accept = ['application/json'
|
1536
|
+
local_header_accept = ['application/json']
|
1121
1537
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1122
1538
|
|
1123
1539
|
# HTTP header 'Content-Type'
|
@@ -1146,25 +1562,32 @@ module AylienNewsApi
|
|
1146
1562
|
# List time series
|
1147
1563
|
# This endpoint is used for getting time series by stories.
|
1148
1564
|
# @param [Hash] opts the optional parameters
|
1149
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
1565
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
1150
1566
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1151
1567
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1152
1568
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1153
1569
|
# @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.
|
1154
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
1155
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident. (default to true)
|
1156
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
1157
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
1158
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
1159
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
1160
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
1161
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
1162
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
1163
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
1570
|
+
# @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).
|
1571
|
+
# @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). (default to true)
|
1572
|
+
# @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).
|
1573
|
+
# @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).
|
1574
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1575
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1576
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1577
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1578
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1579
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1164
1580
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
1165
1581
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
1166
1582
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
1167
1583
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
1584
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
1585
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
1586
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
1587
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
1588
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
1589
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
1590
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
1168
1591
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
1169
1592
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
1170
1593
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -1179,11 +1602,19 @@ module AylienNewsApi
|
|
1179
1602
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
1180
1603
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
1181
1604
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
1182
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
1183
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
1184
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
1185
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
1186
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
1605
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1606
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1607
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1608
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1609
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1610
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
1611
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
1612
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
1613
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
1614
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
1615
|
+
# @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.
|
1616
|
+
# @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.
|
1617
|
+
# @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.
|
1187
1618
|
# @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). (default to NOW-7DAYS/DAY)
|
1188
1619
|
# @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). (default to NOW/DAY)
|
1189
1620
|
# @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 `+` following an integer number greater than 0 and one of the Date Math keywords. e.g. `+1DAY`, `+2MINUTES` and `+1MONTH`. Here are [Supported keywords](https://newsapi.aylien.com/docs/working-with-dates#date-math). (default to +1DAY)
|
@@ -1196,25 +1627,32 @@ module AylienNewsApi
|
|
1196
1627
|
# List time series
|
1197
1628
|
# This endpoint is used for getting time series by stories.
|
1198
1629
|
# @param [Hash] opts the optional parameters
|
1199
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
1630
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
1200
1631
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1201
1632
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1202
1633
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1203
1634
|
# @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.
|
1204
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
1205
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident.
|
1206
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
1207
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
1208
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
1209
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
1210
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
1211
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
1212
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
1213
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
1635
|
+
# @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).
|
1636
|
+
# @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).
|
1637
|
+
# @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).
|
1638
|
+
# @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).
|
1639
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1640
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1641
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1642
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1643
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1644
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1214
1645
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
1215
1646
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
1216
1647
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
1217
1648
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
1649
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
1650
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
1651
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
1652
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
1653
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
1654
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
1655
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
1218
1656
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
1219
1657
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
1220
1658
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -1229,11 +1667,19 @@ module AylienNewsApi
|
|
1229
1667
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
1230
1668
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
1231
1669
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
1232
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
1233
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
1234
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
1235
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
1236
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
1670
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1671
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1672
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1673
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1674
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1675
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
1676
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
1677
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
1678
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
1679
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
1680
|
+
# @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.
|
1681
|
+
# @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.
|
1682
|
+
# @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.
|
1237
1683
|
# @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).
|
1238
1684
|
# @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).
|
1239
1685
|
# @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 `+` following an integer number greater than 0 and one of the Date Math keywords. e.g. `+1DAY`, `+2MINUTES` and `+1MONTH`. Here are [Supported keywords](https://newsapi.aylien.com/docs/working-with-dates#date-math).
|
@@ -1242,8 +1688,8 @@ module AylienNewsApi
|
|
1242
1688
|
if @api_client.config.debugging
|
1243
1689
|
@api_client.config.logger.debug "Calling API: DefaultApi.list_time_series ..."
|
1244
1690
|
end
|
1245
|
-
if opts[:'language'] && !opts[:'language'].all?{|
|
1246
|
-
fail ArgumentError, 'invalid value for "language", must
|
1691
|
+
if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
|
1692
|
+
fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
|
1247
1693
|
end
|
1248
1694
|
if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
|
1249
1695
|
fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
|
@@ -1254,39 +1700,98 @@ module AylienNewsApi
|
|
1254
1700
|
if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
|
1255
1701
|
fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
|
1256
1702
|
end
|
1257
|
-
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min']
|
1258
|
-
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_time_series, must be greater than
|
1703
|
+
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0.0
|
1704
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1705
|
+
end
|
1706
|
+
|
1707
|
+
if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0.0
|
1708
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1709
|
+
end
|
1710
|
+
|
1711
|
+
if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0.0
|
1712
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1713
|
+
end
|
1714
|
+
|
1715
|
+
if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0.0
|
1716
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0.0
|
1720
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1721
|
+
end
|
1722
|
+
|
1723
|
+
if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0.0
|
1724
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0.0
|
1728
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1729
|
+
end
|
1730
|
+
|
1731
|
+
if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0.0
|
1732
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
|
1736
|
+
fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
|
1737
|
+
end
|
1738
|
+
if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0.0
|
1739
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1740
|
+
end
|
1741
|
+
|
1742
|
+
if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0.0
|
1743
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
|
1747
|
+
fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
|
1748
|
+
end
|
1749
|
+
if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0.0
|
1750
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1751
|
+
end
|
1752
|
+
|
1753
|
+
if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0.0
|
1754
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1259
1755
|
end
|
1260
1756
|
|
1261
|
-
if !opts[:'
|
1262
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1757
|
+
if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0.0
|
1758
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1263
1759
|
end
|
1264
1760
|
|
1265
|
-
if !opts[:'
|
1266
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1761
|
+
if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0.0
|
1762
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1267
1763
|
end
|
1268
1764
|
|
1269
|
-
if !opts[:'
|
1270
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1765
|
+
if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0.0
|
1766
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1271
1767
|
end
|
1272
1768
|
|
1273
|
-
if opts[:'
|
1274
|
-
fail ArgumentError, 'invalid value for "
|
1769
|
+
if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0.0
|
1770
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1275
1771
|
end
|
1276
|
-
|
1277
|
-
|
1772
|
+
|
1773
|
+
if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0.0
|
1774
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1278
1775
|
end
|
1279
1776
|
|
1280
|
-
if !opts[:'
|
1281
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1777
|
+
if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0.0
|
1778
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1282
1779
|
end
|
1283
1780
|
|
1284
|
-
if !opts[:'
|
1285
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1781
|
+
if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0.0
|
1782
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1286
1783
|
end
|
1287
1784
|
|
1288
|
-
if !opts[:'
|
1289
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
1785
|
+
if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0.0
|
1786
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0.0
|
1790
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0.0
|
1794
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_time_series, must be greater than 0.0.'
|
1290
1795
|
end
|
1291
1796
|
|
1292
1797
|
# resource path
|
@@ -1313,6 +1818,13 @@ module AylienNewsApi
|
|
1313
1818
|
query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
|
1314
1819
|
query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
|
1315
1820
|
query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
|
1821
|
+
query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
|
1822
|
+
query_params[:'media.images.width.max'] = opts[:'media_images_width_max'] if !opts[:'media_images_width_max'].nil?
|
1823
|
+
query_params[:'media.images.height.min'] = opts[:'media_images_height_min'] if !opts[:'media_images_height_min'].nil?
|
1824
|
+
query_params[:'media.images.height.max'] = opts[:'media_images_height_max'] if !opts[:'media_images_height_max'].nil?
|
1825
|
+
query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
|
1826
|
+
query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
|
1827
|
+
query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
|
1316
1828
|
query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
|
1317
1829
|
query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
|
1318
1830
|
query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
|
@@ -1332,6 +1844,14 @@ module AylienNewsApi
|
|
1332
1844
|
query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
|
1333
1845
|
query_params[:'source.rankings.alexa.rank.max'] = opts[:'source_rankings_alexa_rank_max'] if !opts[:'source_rankings_alexa_rank_max'].nil?
|
1334
1846
|
query_params[:'source.rankings.alexa.country[]'] = @api_client.build_collection_param(opts[:'source_rankings_alexa_country'], :multi) if !opts[:'source_rankings_alexa_country'].nil?
|
1847
|
+
query_params[:'social_shares_count.facebook.min'] = opts[:'social_shares_count_facebook_min'] if !opts[:'social_shares_count_facebook_min'].nil?
|
1848
|
+
query_params[:'social_shares_count.facebook.max'] = opts[:'social_shares_count_facebook_max'] if !opts[:'social_shares_count_facebook_max'].nil?
|
1849
|
+
query_params[:'social_shares_count.google_plus.min'] = opts[:'social_shares_count_google_plus_min'] if !opts[:'social_shares_count_google_plus_min'].nil?
|
1850
|
+
query_params[:'social_shares_count.google_plus.max'] = opts[:'social_shares_count_google_plus_max'] if !opts[:'social_shares_count_google_plus_max'].nil?
|
1851
|
+
query_params[:'social_shares_count.linkedin.min'] = opts[:'social_shares_count_linkedin_min'] if !opts[:'social_shares_count_linkedin_min'].nil?
|
1852
|
+
query_params[:'social_shares_count.linkedin.max'] = opts[:'social_shares_count_linkedin_max'] if !opts[:'social_shares_count_linkedin_max'].nil?
|
1853
|
+
query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
1854
|
+
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
1335
1855
|
query_params[:'published_at.start'] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
|
1336
1856
|
query_params[:'published_at.end'] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
|
1337
1857
|
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
@@ -1340,7 +1860,7 @@ module AylienNewsApi
|
|
1340
1860
|
header_params = {}
|
1341
1861
|
|
1342
1862
|
# HTTP header 'Accept' (if needed)
|
1343
|
-
local_header_accept = ['application/json'
|
1863
|
+
local_header_accept = ['application/json']
|
1344
1864
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1345
1865
|
|
1346
1866
|
# HTTP header 'Content-Type'
|
@@ -1369,27 +1889,34 @@ module AylienNewsApi
|
|
1369
1889
|
# List trends
|
1370
1890
|
# This endpoint is used for finding trends based on stories.
|
1371
1891
|
# @param [Hash] opts the optional parameters
|
1372
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
1892
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
1373
1893
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1374
1894
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1375
1895
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1376
1896
|
# @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.
|
1377
1897
|
# @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).
|
1378
1898
|
# @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).
|
1379
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
1380
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident. (default to true)
|
1381
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
1382
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
1383
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
1384
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
1385
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
1386
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
1387
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
1388
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
1899
|
+
# @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).
|
1900
|
+
# @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). (default to true)
|
1901
|
+
# @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).
|
1902
|
+
# @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).
|
1903
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1904
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1905
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1906
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1907
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1908
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1389
1909
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
1390
1910
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
1391
1911
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
1392
1912
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
1913
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
1914
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
1915
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
1916
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
1917
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
1918
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
1919
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
1393
1920
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
1394
1921
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
1395
1922
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -1404,11 +1931,19 @@ module AylienNewsApi
|
|
1404
1931
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
1405
1932
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
1406
1933
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
1407
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
1408
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
1409
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
1410
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
1411
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
1934
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1935
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
1936
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1937
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1938
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
1939
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
1940
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
1941
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
1942
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
1943
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
1944
|
+
# @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.
|
1945
|
+
# @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.
|
1946
|
+
# @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.
|
1412
1947
|
# @option opts [String] :field This parameter is used to specify the trend field.
|
1413
1948
|
# @return [Trends]
|
1414
1949
|
def list_trends(opts = {})
|
@@ -1419,27 +1954,34 @@ module AylienNewsApi
|
|
1419
1954
|
# List trends
|
1420
1955
|
# This endpoint is used for finding trends based on stories.
|
1421
1956
|
# @param [Hash] opts the optional parameters
|
1422
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding
|
1957
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
1423
1958
|
# @option opts [String] :title This parameter is used for finding stories whose title contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1424
1959
|
# @option opts [String] :body This parameter is used for finding stories whose body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1425
1960
|
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specfic keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
1426
1961
|
# @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.
|
1427
1962
|
# @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).
|
1428
1963
|
# @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).
|
1429
|
-
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries.
|
1430
|
-
# @option opts [BOOLEAN] :categories_confident This parameter is used for finding stories whose categories are confident.
|
1431
|
-
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id.
|
1432
|
-
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level.
|
1433
|
-
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles.
|
1434
|
-
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles.
|
1435
|
-
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles.
|
1436
|
-
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories.
|
1437
|
-
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories.
|
1438
|
-
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories.
|
1964
|
+
# @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).
|
1965
|
+
# @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).
|
1966
|
+
# @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).
|
1967
|
+
# @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).
|
1968
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1969
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1970
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1971
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1972
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1973
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia This parameter is used to find stories based on the specified entities dbpedia URL in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
1439
1974
|
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
1440
1975
|
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
1441
1976
|
# @option opts [Integer] :media_images_count_min This parameter is used for finding stories whose number of images is greater than or equal to the specified value.
|
1442
1977
|
# @option opts [Integer] :media_images_count_max This parameter is used for finding stories whose number of images is less than or equal to the specified value.
|
1978
|
+
# @option opts [Integer] :media_images_width_min This parameter is used for finding stories whose width of images are greater than or equal to the specified value.
|
1979
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
1980
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
1981
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
1982
|
+
# @option opts [Integer] :media_images_content_length_min This parameter is used for finding stories whose images content length are greater than or equal to the specified value.
|
1983
|
+
# @option opts [Integer] :media_images_content_length_max This parameter is used for finding stories whose images content length are less than or equal to the specified value.
|
1984
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
1443
1985
|
# @option opts [Integer] :media_videos_count_min This parameter is used for finding stories whose number of videos is greater than or equal to the specified value.
|
1444
1986
|
# @option opts [Integer] :media_videos_count_max This parameter is used for finding stories whose number of videos is less than or equal to the specified value.
|
1445
1987
|
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
@@ -1454,19 +1996,27 @@ module AylienNewsApi
|
|
1454
1996
|
# @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes is the specified state/province value. [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).
|
1455
1997
|
# @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes is the specified city value. [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).
|
1456
1998
|
# @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes is the specified level value. [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).
|
1457
|
-
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count here
|
1458
|
-
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count here
|
1459
|
-
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks here
|
1460
|
-
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks here
|
1461
|
-
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks here
|
1999
|
+
# @option opts [Integer] :source_links_in_count_min This parameter is used for finding stories from sources whose Links in count is greater than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
2000
|
+
# @option opts [Integer] :source_links_in_count_max This parameter is used for finding stories from sources whose Links in count is less than or equal to the specified value. You can read more about working with Links in count [here](https://newsapi.aylien.com/docs/working-with-links-in-count).
|
2001
|
+
# @option opts [Integer] :source_rankings_alexa_rank_min This parameter is used for finding stories from sources whose Alexa rank is greater than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
2002
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
2003
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
2004
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
2005
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
2006
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
2007
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
2008
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
2009
|
+
# @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.
|
2010
|
+
# @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.
|
2011
|
+
# @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.
|
1462
2012
|
# @option opts [String] :field This parameter is used to specify the trend field.
|
1463
2013
|
# @return [Array<(Trends, Fixnum, Hash)>] Trends data, response status code and response headers
|
1464
2014
|
def list_trends_with_http_info(opts = {})
|
1465
2015
|
if @api_client.config.debugging
|
1466
2016
|
@api_client.config.logger.debug "Calling API: DefaultApi.list_trends ..."
|
1467
2017
|
end
|
1468
|
-
if opts[:'language'] && !opts[:'language'].all?{|
|
1469
|
-
fail ArgumentError, 'invalid value for "language", must
|
2018
|
+
if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
|
2019
|
+
fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
|
1470
2020
|
end
|
1471
2021
|
if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
|
1472
2022
|
fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
|
@@ -1477,39 +2027,98 @@ module AylienNewsApi
|
|
1477
2027
|
if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
|
1478
2028
|
fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
|
1479
2029
|
end
|
1480
|
-
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min']
|
1481
|
-
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_trends, must be greater than
|
2030
|
+
if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0.0
|
2031
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2032
|
+
end
|
2033
|
+
|
2034
|
+
if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0.0
|
2035
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1482
2036
|
end
|
1483
2037
|
|
1484
|
-
if !opts[:'
|
1485
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
2038
|
+
if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0.0
|
2039
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1486
2040
|
end
|
1487
2041
|
|
1488
|
-
if !opts[:'
|
1489
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
2042
|
+
if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0.0
|
2043
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1490
2044
|
end
|
1491
2045
|
|
1492
|
-
if !opts[:'
|
1493
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
2046
|
+
if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0.0
|
2047
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1494
2048
|
end
|
1495
2049
|
|
1496
|
-
if opts[:'
|
1497
|
-
fail ArgumentError, 'invalid value for "
|
2050
|
+
if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0.0
|
2051
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1498
2052
|
end
|
1499
|
-
|
1500
|
-
|
2053
|
+
|
2054
|
+
if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0.0
|
2055
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0.0
|
2059
|
+
fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
|
2063
|
+
fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
|
2064
|
+
end
|
2065
|
+
if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0.0
|
2066
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2067
|
+
end
|
2068
|
+
|
2069
|
+
if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0.0
|
2070
|
+
fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2071
|
+
end
|
2072
|
+
|
2073
|
+
if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
|
2074
|
+
fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
|
2075
|
+
end
|
2076
|
+
if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0.0
|
2077
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0.0
|
2081
|
+
fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0.0
|
2085
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2086
|
+
end
|
2087
|
+
|
2088
|
+
if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0.0
|
2089
|
+
fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0.0
|
2093
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2094
|
+
end
|
2095
|
+
|
2096
|
+
if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0.0
|
2097
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2098
|
+
end
|
2099
|
+
|
2100
|
+
if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0.0
|
2101
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0.0
|
2105
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0.0
|
2109
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1501
2110
|
end
|
1502
2111
|
|
1503
|
-
if !opts[:'
|
1504
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
2112
|
+
if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0.0
|
2113
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1505
2114
|
end
|
1506
2115
|
|
1507
|
-
if !opts[:'
|
1508
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
2116
|
+
if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0.0
|
2117
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1509
2118
|
end
|
1510
2119
|
|
1511
|
-
if !opts[:'
|
1512
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
2120
|
+
if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0.0
|
2121
|
+
fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_trends, must be greater than 0.0.'
|
1513
2122
|
end
|
1514
2123
|
|
1515
2124
|
if opts[:'field'] && !['author.name', 'source.name', 'source.domain', 'keywords', 'entities.title.text', 'entities.title.type', 'entities.title.links.dbpedia', 'entities.body.text', 'entities.body.type', 'entities.body.links.dbpedia', 'hashtags', 'categories.id', 'sentiment.title.polarity', 'sentiment.body.polarity'].include?(opts[:'field'])
|
@@ -1541,6 +2150,13 @@ module AylienNewsApi
|
|
1541
2150
|
query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
|
1542
2151
|
query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
|
1543
2152
|
query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
|
2153
|
+
query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
|
2154
|
+
query_params[:'media.images.width.max'] = opts[:'media_images_width_max'] if !opts[:'media_images_width_max'].nil?
|
2155
|
+
query_params[:'media.images.height.min'] = opts[:'media_images_height_min'] if !opts[:'media_images_height_min'].nil?
|
2156
|
+
query_params[:'media.images.height.max'] = opts[:'media_images_height_max'] if !opts[:'media_images_height_max'].nil?
|
2157
|
+
query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
|
2158
|
+
query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
|
2159
|
+
query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
|
1544
2160
|
query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
|
1545
2161
|
query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
|
1546
2162
|
query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
|
@@ -1560,13 +2176,21 @@ module AylienNewsApi
|
|
1560
2176
|
query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
|
1561
2177
|
query_params[:'source.rankings.alexa.rank.max'] = opts[:'source_rankings_alexa_rank_max'] if !opts[:'source_rankings_alexa_rank_max'].nil?
|
1562
2178
|
query_params[:'source.rankings.alexa.country[]'] = @api_client.build_collection_param(opts[:'source_rankings_alexa_country'], :multi) if !opts[:'source_rankings_alexa_country'].nil?
|
2179
|
+
query_params[:'social_shares_count.facebook.min'] = opts[:'social_shares_count_facebook_min'] if !opts[:'social_shares_count_facebook_min'].nil?
|
2180
|
+
query_params[:'social_shares_count.facebook.max'] = opts[:'social_shares_count_facebook_max'] if !opts[:'social_shares_count_facebook_max'].nil?
|
2181
|
+
query_params[:'social_shares_count.google_plus.min'] = opts[:'social_shares_count_google_plus_min'] if !opts[:'social_shares_count_google_plus_min'].nil?
|
2182
|
+
query_params[:'social_shares_count.google_plus.max'] = opts[:'social_shares_count_google_plus_max'] if !opts[:'social_shares_count_google_plus_max'].nil?
|
2183
|
+
query_params[:'social_shares_count.linkedin.min'] = opts[:'social_shares_count_linkedin_min'] if !opts[:'social_shares_count_linkedin_min'].nil?
|
2184
|
+
query_params[:'social_shares_count.linkedin.max'] = opts[:'social_shares_count_linkedin_max'] if !opts[:'social_shares_count_linkedin_max'].nil?
|
2185
|
+
query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
2186
|
+
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
1563
2187
|
query_params[:'field'] = opts[:'field'] if !opts[:'field'].nil?
|
1564
2188
|
|
1565
2189
|
# header parameters
|
1566
2190
|
header_params = {}
|
1567
2191
|
|
1568
2192
|
# HTTP header 'Accept' (if needed)
|
1569
|
-
local_header_accept = ['application/json'
|
2193
|
+
local_header_accept = ['application/json']
|
1570
2194
|
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1571
2195
|
|
1572
2196
|
# HTTP header 'Content-Type'
|