aylien_news_api 0.4.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +1 -1
  4. data/Rakefile +8 -0
  5. data/aylien_news_api.gemspec +17 -13
  6. data/docs/DefaultApi.md +897 -611
  7. data/docs/StoryLinks.md +1 -0
  8. data/lib/aylien_news_api.rb +15 -13
  9. data/lib/aylien_news_api/api/default_api.rb +861 -344
  10. data/lib/aylien_news_api/api_client.rb +18 -15
  11. data/lib/aylien_news_api/api_error.rb +22 -18
  12. data/lib/aylien_news_api/configuration.rb +15 -13
  13. data/lib/aylien_news_api/models/author.rb +15 -13
  14. data/lib/aylien_news_api/models/autocomplete.rb +15 -13
  15. data/lib/aylien_news_api/models/autocompletes.rb +15 -13
  16. data/lib/aylien_news_api/models/category.rb +15 -13
  17. data/lib/aylien_news_api/models/category_links.rb +15 -13
  18. data/lib/aylien_news_api/models/coverages.rb +15 -13
  19. data/lib/aylien_news_api/models/entities.rb +15 -13
  20. data/lib/aylien_news_api/models/entity.rb +25 -23
  21. data/lib/aylien_news_api/models/entity_links.rb +15 -13
  22. data/lib/aylien_news_api/models/error.rb +15 -13
  23. data/lib/aylien_news_api/models/error_links.rb +15 -13
  24. data/lib/aylien_news_api/models/errors.rb +15 -13
  25. data/lib/aylien_news_api/models/histogram_interval.rb +15 -13
  26. data/lib/aylien_news_api/models/histograms.rb +15 -13
  27. data/lib/aylien_news_api/models/location.rb +15 -13
  28. data/lib/aylien_news_api/models/media.rb +15 -13
  29. data/lib/aylien_news_api/models/rank.rb +15 -13
  30. data/lib/aylien_news_api/models/rankings.rb +15 -13
  31. data/lib/aylien_news_api/models/related_stories.rb +15 -13
  32. data/lib/aylien_news_api/models/scope.rb +15 -13
  33. data/lib/aylien_news_api/models/sentiment.rb +25 -23
  34. data/lib/aylien_news_api/models/sentiments.rb +15 -13
  35. data/lib/aylien_news_api/models/share_count.rb +15 -13
  36. data/lib/aylien_news_api/models/share_counts.rb +15 -13
  37. data/lib/aylien_news_api/models/source.rb +15 -13
  38. data/lib/aylien_news_api/models/stories.rb +15 -13
  39. data/lib/aylien_news_api/models/story.rb +15 -13
  40. data/lib/aylien_news_api/models/story_cluster.rb +15 -13
  41. data/lib/aylien_news_api/models/story_links.rb +29 -17
  42. data/lib/aylien_news_api/models/summary.rb +15 -13
  43. data/lib/aylien_news_api/models/time_series.rb +15 -13
  44. data/lib/aylien_news_api/models/time_series_list.rb +15 -13
  45. data/lib/aylien_news_api/models/trend.rb +15 -13
  46. data/lib/aylien_news_api/models/trends.rb +15 -13
  47. data/lib/aylien_news_api/version.rb +16 -14
  48. data/spec/api/default_api_spec.rb +463 -189
  49. data/spec/api_client_spec.rb +25 -101
  50. data/spec/configuration_spec.rb +26 -19
  51. data/spec/models/author_spec.rb +19 -29
  52. data/spec/models/autocomplete_spec.rb +18 -24
  53. data/spec/models/autocompletes_spec.rb +17 -19
  54. data/spec/models/category_links_spec.rb +18 -24
  55. data/spec/models/category_spec.rb +26 -44
  56. data/spec/models/coverages_spec.rb +27 -39
  57. data/spec/models/entities_spec.rb +18 -24
  58. data/spec/models/entity_links_spec.rb +17 -19
  59. data/spec/models/entity_spec.rb +21 -39
  60. data/spec/models/error_links_spec.rb +17 -19
  61. data/spec/models/error_spec.rb +22 -44
  62. data/spec/models/errors_spec.rb +17 -19
  63. data/spec/models/histogram_interval_spec.rb +18 -24
  64. data/spec/models/histograms_spec.rb +21 -39
  65. data/spec/models/location_spec.rb +19 -29
  66. data/spec/models/media_spec.rb +50 -24
  67. data/spec/models/rank_spec.rb +15 -13
  68. data/spec/models/rankings_spec.rb +15 -13
  69. data/spec/models/related_stories_spec.rb +26 -34
  70. data/spec/models/scope_spec.rb +24 -34
  71. data/spec/models/sentiment_spec.rb +22 -24
  72. data/spec/models/sentiments_spec.rb +18 -24
  73. data/spec/models/share_count_spec.rb +18 -24
  74. data/spec/models/share_counts_spec.rb +20 -34
  75. data/spec/models/source_spec.rb +52 -44
  76. data/spec/models/stories_spec.rb +19 -29
  77. data/spec/models/story_cluster_spec.rb +21 -39
  78. data/spec/models/story_links_spec.rb +25 -29
  79. data/spec/models/story_spec.rb +36 -114
  80. data/spec/models/summary_spec.rb +17 -19
  81. data/spec/models/time_series_list_spec.rb +20 -34
  82. data/spec/models/time_series_spec.rb +18 -24
  83. data/spec/models/trend_spec.rb +18 -24
  84. data/spec/models/trends_spec.rb +18 -24
  85. data/spec/spec_helper.rb +15 -13
  86. metadata +25 -8
  87. data/Gemfile.lock +0 -65
  88. data/LICENSE +0 -13
  89. data/aylien_news_api-0.2.0.gem +0 -0
  90. data/aylien_news_api-0.3.0.gem +0 -0
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
6
6
  **permalink** | **String** | The story permalink URL | [optional]
7
7
  **related_stories** | **String** | The related stories URL | [optional]
8
8
  **coverages** | **String** | The coverages URL | [optional]
9
+ **canonical** | **String** | The story canonical URL | [optional]
9
10
 
10
11
 
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  # Common files
16
18
  require 'aylien_news_api/api_client'
@@ -1,16 +1,18 @@
1
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ =begin
2
+ Copyright 2017 Aylien, Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ =end
14
16
 
15
17
  require "uri"
16
18
 
@@ -62,12 +64,12 @@ module AylienNewsApi
62
64
  if opts[:'language'] && !['en', 'de', 'fr', 'it', 'es', 'pt'].include?(opts[:'language'])
63
65
  fail ArgumentError, 'invalid value for "language", must be one of en, de, fr, it, es, pt'
64
66
  end
65
- if !opts[:'per_page'].nil? && opts[:'per_page'] > 100.0
66
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_autocompletes, must be smaller than or equal to 100.0.'
67
+ if !opts[:'per_page'].nil? && opts[:'per_page'] > 100
68
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_autocompletes, must be smaller than or equal to 100.'
67
69
  end
68
70
 
69
- if !opts[:'per_page'].nil? && opts[:'per_page'] < 1.0
70
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_autocompletes, must be greater than or equal to 1.0.'
71
+ if !opts[:'per_page'].nil? && opts[:'per_page'] < 1
72
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_autocompletes, must be greater than or equal to 1.'
71
73
  end
72
74
 
73
75
  # resource path
@@ -82,14 +84,10 @@ module AylienNewsApi
82
84
 
83
85
  # header parameters
84
86
  header_params = {}
85
-
86
87
  # HTTP header 'Accept' (if needed)
87
- local_header_accept = ['application/json']
88
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
89
-
88
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml'])
90
89
  # HTTP header 'Content-Type'
91
- local_header_content_type = ['application/x-www-form-urlencoded']
92
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
90
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
93
91
 
94
92
  # form parameters
95
93
  form_params = {}
@@ -114,24 +112,36 @@ module AylienNewsApi
114
112
  # This endpoint is used for finding story coverages based on the parameters provided. The maximum number of related stories returned is 100.
115
113
  # @param [Hash] opts the optional parameters
116
114
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
115
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
117
116
  # @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
117
  # @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
118
  # @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
119
  # @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.
120
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
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
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
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
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<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
126
127
  # @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).
128
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
127
129
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
130
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
128
131
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
132
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
129
133
  # @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).
134
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
135
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
136
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
131
137
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
138
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
132
139
  # @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).
140
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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
141
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
142
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
134
143
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
144
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
135
145
  # @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
146
  # @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
147
  # @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.
@@ -141,20 +151,33 @@ module AylienNewsApi
141
151
  # @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
152
  # @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
153
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
154
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
144
155
  # @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.
145
156
  # @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.
146
157
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
158
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
147
159
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
160
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
148
161
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
162
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
149
163
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
164
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
150
165
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
166
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
151
167
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
168
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
152
169
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
170
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
153
171
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
172
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
154
173
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
174
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
155
175
  # @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).
176
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
156
177
  # @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).
178
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
157
179
  # @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).
180
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
158
181
  # @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
182
  # @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
183
  # @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).
@@ -188,24 +211,36 @@ module AylienNewsApi
188
211
  # This endpoint is used for finding story coverages based on the parameters provided. The maximum number of related stories returned is 100.
189
212
  # @param [Hash] opts the optional parameters
190
213
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
214
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
191
215
  # @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).
192
216
  # @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).
193
217
  # @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).
194
218
  # @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.
219
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
195
220
  # @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).
196
221
  # @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).
197
222
  # @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
223
  # @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
224
  # @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).
225
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
200
226
  # @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).
227
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
201
228
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
229
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
202
230
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
231
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
203
232
  # @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).
233
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
234
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
235
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
205
236
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
237
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
206
238
  # @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).
239
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
207
240
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
241
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
208
242
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
243
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
209
244
  # @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.
210
245
  # @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
246
  # @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.
@@ -215,20 +250,33 @@ module AylienNewsApi
215
250
  # @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
251
  # @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
252
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
253
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
218
254
  # @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.
219
255
  # @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.
220
256
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
257
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
221
258
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
259
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
222
260
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
261
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
223
262
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
263
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
224
264
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
265
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
225
266
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
267
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
226
268
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
269
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
227
270
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
271
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
228
272
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
273
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
229
274
  # @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).
275
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
230
276
  # @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).
277
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
231
278
  # @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).
279
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
232
280
  # @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
281
  # @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
282
  # @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).
@@ -260,107 +308,122 @@ module AylienNewsApi
260
308
  if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
261
309
  fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
262
310
  end
311
+ if opts[:'not_language'] && !opts[:'not_language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
312
+ fail ArgumentError, 'invalid value for "not_language", must include one of en, de, fr, it, es, pt'
313
+ end
263
314
  if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
264
315
  fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
265
316
  end
266
317
  if opts[:'sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_title_polarity'])
267
318
  fail ArgumentError, 'invalid value for "sentiment_title_polarity", must be one of positive, neutral, negative'
268
319
  end
320
+ if opts[:'not_sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_title_polarity'])
321
+ fail ArgumentError, 'invalid value for "not_sentiment_title_polarity", must be one of positive, neutral, negative'
322
+ end
269
323
  if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
270
324
  fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
271
325
  end
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.'
326
+ if opts[:'not_sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_body_polarity'])
327
+ fail ArgumentError, 'invalid value for "not_sentiment_body_polarity", must be one of positive, neutral, negative'
328
+ end
329
+ if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0
330
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
274
331
  end
275
332
 
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.'
333
+ if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0
334
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
278
335
  end
279
336
 
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.'
337
+ if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0
338
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
282
339
  end
283
340
 
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.'
341
+ if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0
342
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
286
343
  end
287
344
 
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.'
345
+ if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0
346
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
290
347
  end
291
348
 
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.'
349
+ if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0
350
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
294
351
  end
295
352
 
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.'
353
+ if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0
354
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
298
355
  end
299
356
 
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.'
357
+ if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0
358
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
302
359
  end
303
360
 
304
361
  if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
305
362
  fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
306
363
  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.'
364
+ if opts[:'not_media_images_format'] && !opts[:'not_media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
365
+ fail ArgumentError, 'invalid value for "not_media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
366
+ end
367
+ if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0
368
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
309
369
  end
310
370
 
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.'
371
+ if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0
372
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
313
373
  end
314
374
 
315
375
  if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
316
376
  fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
317
377
  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.'
378
+ if opts[:'not_source_scopes_level'] && !opts[:'not_source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
379
+ fail ArgumentError, 'invalid value for "not_source_scopes_level", must include one of international, national, local'
380
+ end
381
+ if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0
382
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
320
383
  end
321
384
 
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.'
385
+ if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0
386
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
324
387
  end
325
388
 
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.'
389
+ if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0
390
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
328
391
  end
329
392
 
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.'
393
+ if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0
394
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
332
395
  end
333
396
 
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.'
397
+ if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0
398
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
336
399
  end
337
400
 
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.'
401
+ if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0
402
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
340
403
  end
341
404
 
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.'
405
+ if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0
406
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
344
407
  end
345
408
 
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.'
409
+ if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0
410
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
348
411
  end
349
412
 
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.'
413
+ if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0
414
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
352
415
  end
353
416
 
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.'
417
+ if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0
418
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
356
419
  end
357
420
 
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.'
421
+ if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0
422
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_coverages, must be greater than 0.'
360
423
  end
361
424
 
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.'
425
+ if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0
426
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_coverages, must be greater than 0.'
364
427
  end
365
428
 
366
429
  if opts[:'cluster_algorithm'] && !['stc', 'lingo', 'kmeans'].include?(opts[:'cluster_algorithm'])
@@ -372,12 +435,12 @@ module AylienNewsApi
372
435
  if opts[:'story_language'] && !['auto', 'en', 'de', 'fr', 'it', 'es', 'pt'].include?(opts[:'story_language'])
373
436
  fail ArgumentError, 'invalid value for "story_language", must be one of auto, en, de, fr, it, es, pt'
374
437
  end
375
- if !opts[:'per_page'].nil? && opts[:'per_page'] > 100.0
376
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_coverages, must be smaller than or equal to 100.0.'
438
+ if !opts[:'per_page'].nil? && opts[:'per_page'] > 100
439
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_coverages, must be smaller than or equal to 100.'
377
440
  end
378
441
 
379
- if !opts[:'per_page'].nil? && opts[:'per_page'] < 1.0
380
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_coverages, must be greater than or equal to 1.0.'
442
+ if !opts[:'per_page'].nil? && opts[:'per_page'] < 1
443
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_coverages, must be greater than or equal to 1.'
381
444
  end
382
445
 
383
446
  # resource path
@@ -388,36 +451,44 @@ module AylienNewsApi
388
451
 
389
452
  # header parameters
390
453
  header_params = {}
391
-
392
454
  # HTTP header 'Accept' (if needed)
393
- local_header_accept = ['application/json']
394
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
395
-
455
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml'])
396
456
  # HTTP header 'Content-Type'
397
- local_header_content_type = ['application/x-www-form-urlencoded']
398
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
457
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
399
458
 
400
459
  # form parameters
401
460
  form_params = {}
402
461
  form_params["id[]"] = @api_client.build_collection_param(opts[:'id'], :multi) if !opts[:'id'].nil?
462
+ form_params["!id[]"] = @api_client.build_collection_param(opts[:'not_id'], :multi) if !opts[:'not_id'].nil?
403
463
  form_params["title"] = opts[:'title'] if !opts[:'title'].nil?
404
464
  form_params["body"] = opts[:'body'] if !opts[:'body'].nil?
405
465
  form_params["text"] = opts[:'text'] if !opts[:'text'].nil?
406
466
  form_params["language[]"] = @api_client.build_collection_param(opts[:'language'], :multi) if !opts[:'language'].nil?
467
+ form_params["!language[]"] = @api_client.build_collection_param(opts[:'not_language'], :multi) if !opts[:'not_language'].nil?
407
468
  form_params["published_at.start"] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
408
469
  form_params["published_at.end"] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
409
470
  form_params["categories.taxonomy"] = opts[:'categories_taxonomy'] if !opts[:'categories_taxonomy'].nil?
410
471
  form_params["categories.confident"] = opts[:'categories_confident'] if !opts[:'categories_confident'].nil?
411
472
  form_params["categories.id[]"] = @api_client.build_collection_param(opts[:'categories_id'], :multi) if !opts[:'categories_id'].nil?
473
+ form_params["!categories.id[]"] = @api_client.build_collection_param(opts[:'not_categories_id'], :multi) if !opts[:'not_categories_id'].nil?
412
474
  form_params["categories.level[]"] = @api_client.build_collection_param(opts[:'categories_level'], :multi) if !opts[:'categories_level'].nil?
475
+ form_params["!categories.level[]"] = @api_client.build_collection_param(opts[:'not_categories_level'], :multi) if !opts[:'not_categories_level'].nil?
413
476
  form_params["entities.title.text[]"] = @api_client.build_collection_param(opts[:'entities_title_text'], :multi) if !opts[:'entities_title_text'].nil?
477
+ form_params["!entities.title.text[]"] = @api_client.build_collection_param(opts[:'not_entities_title_text'], :multi) if !opts[:'not_entities_title_text'].nil?
414
478
  form_params["entities.title.type[]"] = @api_client.build_collection_param(opts[:'entities_title_type'], :multi) if !opts[:'entities_title_type'].nil?
479
+ form_params["!entities.title.type[]"] = @api_client.build_collection_param(opts[:'not_entities_title_type'], :multi) if !opts[:'not_entities_title_type'].nil?
415
480
  form_params["entities.title.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'entities_title_links_dbpedia'], :multi) if !opts[:'entities_title_links_dbpedia'].nil?
481
+ form_params["!entities.title.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'not_entities_title_links_dbpedia'], :multi) if !opts[:'not_entities_title_links_dbpedia'].nil?
416
482
  form_params["entities.body.text[]"] = @api_client.build_collection_param(opts[:'entities_body_text'], :multi) if !opts[:'entities_body_text'].nil?
483
+ form_params["!entities.body.text[]"] = @api_client.build_collection_param(opts[:'not_entities_body_text'], :multi) if !opts[:'not_entities_body_text'].nil?
417
484
  form_params["entities.body.type[]"] = @api_client.build_collection_param(opts[:'entities_body_type'], :multi) if !opts[:'entities_body_type'].nil?
485
+ form_params["!entities.body.type[]"] = @api_client.build_collection_param(opts[:'not_entities_body_type'], :multi) if !opts[:'not_entities_body_type'].nil?
418
486
  form_params["entities.body.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'entities_body_links_dbpedia'], :multi) if !opts[:'entities_body_links_dbpedia'].nil?
487
+ form_params["!entities.body.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'not_entities_body_links_dbpedia'], :multi) if !opts[:'not_entities_body_links_dbpedia'].nil?
419
488
  form_params["sentiment.title.polarity"] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
489
+ form_params["!sentiment.title.polarity"] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
420
490
  form_params["sentiment.body.polarity"] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
491
+ form_params["!sentiment.body.polarity"] = opts[:'not_sentiment_body_polarity'] if !opts[:'not_sentiment_body_polarity'].nil?
421
492
  form_params["media.images.count.min"] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
422
493
  form_params["media.images.count.max"] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
423
494
  form_params["media.images.width.min"] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
@@ -427,20 +498,33 @@ module AylienNewsApi
427
498
  form_params["media.images.content_length.min"] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
428
499
  form_params["media.images.content_length.max"] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
429
500
  form_params["media.images.format[]"] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
501
+ form_params["!media.images.format[]"] = @api_client.build_collection_param(opts[:'not_media_images_format'], :multi) if !opts[:'not_media_images_format'].nil?
430
502
  form_params["media.videos.count.min"] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
431
503
  form_params["media.videos.count.max"] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
432
504
  form_params["author.id[]"] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
505
+ form_params["!author.id[]"] = @api_client.build_collection_param(opts[:'not_author_id'], :multi) if !opts[:'not_author_id'].nil?
433
506
  form_params["author.name"] = opts[:'author_name'] if !opts[:'author_name'].nil?
507
+ form_params["!author.name"] = opts[:'not_author_name'] if !opts[:'not_author_name'].nil?
434
508
  form_params["source.id[]"] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
509
+ form_params["!source.id[]"] = @api_client.build_collection_param(opts[:'not_source_id'], :multi) if !opts[:'not_source_id'].nil?
435
510
  form_params["source.name[]"] = @api_client.build_collection_param(opts[:'source_name'], :multi) if !opts[:'source_name'].nil?
511
+ form_params["!source.name[]"] = @api_client.build_collection_param(opts[:'not_source_name'], :multi) if !opts[:'not_source_name'].nil?
436
512
  form_params["source.domain[]"] = @api_client.build_collection_param(opts[:'source_domain'], :multi) if !opts[:'source_domain'].nil?
513
+ form_params["!source.domain[]"] = @api_client.build_collection_param(opts[:'not_source_domain'], :multi) if !opts[:'not_source_domain'].nil?
437
514
  form_params["source.locations.country[]"] = @api_client.build_collection_param(opts[:'source_locations_country'], :multi) if !opts[:'source_locations_country'].nil?
515
+ form_params["!source.locations.country[]"] = @api_client.build_collection_param(opts[:'not_source_locations_country'], :multi) if !opts[:'not_source_locations_country'].nil?
438
516
  form_params["source.locations.state[]"] = @api_client.build_collection_param(opts[:'source_locations_state'], :multi) if !opts[:'source_locations_state'].nil?
517
+ form_params["!source.locations.state[]"] = @api_client.build_collection_param(opts[:'not_source_locations_state'], :multi) if !opts[:'not_source_locations_state'].nil?
439
518
  form_params["source.locations.city[]"] = @api_client.build_collection_param(opts[:'source_locations_city'], :multi) if !opts[:'source_locations_city'].nil?
519
+ form_params["!source.locations.city[]"] = @api_client.build_collection_param(opts[:'not_source_locations_city'], :multi) if !opts[:'not_source_locations_city'].nil?
440
520
  form_params["source.scopes.country[]"] = @api_client.build_collection_param(opts[:'source_scopes_country'], :multi) if !opts[:'source_scopes_country'].nil?
521
+ form_params["!source.scopes.country[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_country'], :multi) if !opts[:'not_source_scopes_country'].nil?
441
522
  form_params["source.scopes.state[]"] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if !opts[:'source_scopes_state'].nil?
523
+ form_params["!source.scopes.state[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_state'], :multi) if !opts[:'not_source_scopes_state'].nil?
442
524
  form_params["source.scopes.city[]"] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if !opts[:'source_scopes_city'].nil?
525
+ form_params["!source.scopes.city[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_city'], :multi) if !opts[:'not_source_scopes_city'].nil?
443
526
  form_params["source.scopes.level[]"] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if !opts[:'source_scopes_level'].nil?
527
+ form_params["!source.scopes.level[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_level'], :multi) if !opts[:'not_source_scopes_level'].nil?
444
528
  form_params["source.links_in_count.min"] = opts[:'source_links_in_count_min'] if !opts[:'source_links_in_count_min'].nil?
445
529
  form_params["source.links_in_count.max"] = opts[:'source_links_in_count_max'] if !opts[:'source_links_in_count_max'].nil?
446
530
  form_params["source.rankings.alexa.rank.min"] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
@@ -485,24 +569,36 @@ module AylienNewsApi
485
569
  # This endpoint is used for getting histograms based on the `field` parameter passed to the API.
486
570
  # @param [Hash] opts the optional parameters
487
571
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
572
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
488
573
  # @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).
489
574
  # @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).
490
575
  # @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).
491
576
  # @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.
577
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
492
578
  # @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).
493
579
  # @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).
494
580
  # @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
581
  # @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
582
  # @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).
583
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
497
584
  # @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).
585
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
498
586
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
587
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
499
588
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
589
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
500
590
  # @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).
591
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
592
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
593
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
502
594
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
595
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
503
596
  # @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).
597
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
504
598
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
599
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
505
600
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
601
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
506
602
  # @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.
507
603
  # @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
604
  # @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.
@@ -512,20 +608,33 @@ module AylienNewsApi
512
608
  # @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
609
  # @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
610
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
611
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
515
612
  # @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.
516
613
  # @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.
517
614
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
615
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
518
616
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
617
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
519
618
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
619
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
520
620
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
621
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
521
622
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
623
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
522
624
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
625
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
523
626
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
627
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
524
628
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
629
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
525
630
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
631
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
526
632
  # @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).
633
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
527
634
  # @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).
635
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
528
636
  # @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).
637
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
529
638
  # @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
639
  # @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
640
  # @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).
@@ -553,24 +662,36 @@ module AylienNewsApi
553
662
  # This endpoint is used for getting histograms based on the &#x60;field&#x60; parameter passed to the API.
554
663
  # @param [Hash] opts the optional parameters
555
664
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
665
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
556
666
  # @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).
557
667
  # @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).
558
668
  # @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).
559
669
  # @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.
670
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
560
671
  # @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).
561
672
  # @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).
562
673
  # @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
674
  # @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
675
  # @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).
676
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
565
677
  # @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).
678
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
566
679
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
680
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
567
681
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
682
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
568
683
  # @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).
684
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
685
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
686
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
570
687
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
688
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
571
689
  # @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).
690
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
572
691
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
692
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
573
693
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
694
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
574
695
  # @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.
575
696
  # @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
697
  # @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.
@@ -580,20 +701,33 @@ module AylienNewsApi
580
701
  # @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
702
  # @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
703
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
704
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
583
705
  # @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.
584
706
  # @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.
585
707
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
708
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
586
709
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
710
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
587
711
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
712
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
588
713
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
714
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
589
715
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
716
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
590
717
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
718
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
591
719
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
720
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
592
721
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
722
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
593
723
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
724
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
594
725
  # @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).
726
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
595
727
  # @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).
728
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
596
729
  # @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).
730
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
597
731
  # @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
732
  # @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
733
  # @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).
@@ -619,107 +753,122 @@ module AylienNewsApi
619
753
  if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
620
754
  fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
621
755
  end
756
+ if opts[:'not_language'] && !opts[:'not_language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
757
+ fail ArgumentError, 'invalid value for "not_language", must include one of en, de, fr, it, es, pt'
758
+ end
622
759
  if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
623
760
  fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
624
761
  end
625
762
  if opts[:'sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_title_polarity'])
626
763
  fail ArgumentError, 'invalid value for "sentiment_title_polarity", must be one of positive, neutral, negative'
627
764
  end
765
+ if opts[:'not_sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_title_polarity'])
766
+ fail ArgumentError, 'invalid value for "not_sentiment_title_polarity", must be one of positive, neutral, negative'
767
+ end
628
768
  if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
629
769
  fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
630
770
  end
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.'
771
+ if opts[:'not_sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_body_polarity'])
772
+ fail ArgumentError, 'invalid value for "not_sentiment_body_polarity", must be one of positive, neutral, negative'
773
+ end
774
+ if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0
775
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
633
776
  end
634
777
 
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.'
778
+ if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0
779
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
637
780
  end
638
781
 
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.'
782
+ if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0
783
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
641
784
  end
642
785
 
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.'
786
+ if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0
787
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
645
788
  end
646
789
 
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.'
790
+ if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0
791
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
649
792
  end
650
793
 
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.'
794
+ if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0
795
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
653
796
  end
654
797
 
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.'
798
+ if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0
799
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
657
800
  end
658
801
 
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.'
802
+ if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0
803
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
661
804
  end
662
805
 
663
806
  if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
664
807
  fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
665
808
  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.'
809
+ if opts[:'not_media_images_format'] && !opts[:'not_media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
810
+ fail ArgumentError, 'invalid value for "not_media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
811
+ end
812
+ if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0
813
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
668
814
  end
669
815
 
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.'
816
+ if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0
817
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
672
818
  end
673
819
 
674
820
  if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
675
821
  fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
676
822
  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.'
823
+ if opts[:'not_source_scopes_level'] && !opts[:'not_source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
824
+ fail ArgumentError, 'invalid value for "not_source_scopes_level", must include one of international, national, local'
825
+ end
826
+ if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0
827
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
679
828
  end
680
829
 
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.'
830
+ if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0
831
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
683
832
  end
684
833
 
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.'
834
+ if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0
835
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
687
836
  end
688
837
 
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.'
838
+ if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0
839
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
691
840
  end
692
841
 
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.'
842
+ if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0
843
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
695
844
  end
696
845
 
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.'
846
+ if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0
847
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
699
848
  end
700
849
 
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.'
850
+ if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0
851
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
703
852
  end
704
853
 
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.'
854
+ if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0
855
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
707
856
  end
708
857
 
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.'
858
+ if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0
859
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
711
860
  end
712
861
 
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.'
862
+ if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0
863
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
715
864
  end
716
865
 
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.'
866
+ if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0
867
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_histograms, must be greater than 0.'
719
868
  end
720
869
 
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.'
870
+ if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0
871
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_histograms, must be greater than 0.'
723
872
  end
724
873
 
725
874
  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'])
@@ -731,24 +880,36 @@ module AylienNewsApi
731
880
  # query parameters
732
881
  query_params = {}
733
882
  query_params[:'id[]'] = @api_client.build_collection_param(opts[:'id'], :multi) if !opts[:'id'].nil?
883
+ query_params[:'!id[]'] = @api_client.build_collection_param(opts[:'not_id'], :multi) if !opts[:'not_id'].nil?
734
884
  query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
735
885
  query_params[:'body'] = opts[:'body'] if !opts[:'body'].nil?
736
886
  query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
737
887
  query_params[:'language[]'] = @api_client.build_collection_param(opts[:'language'], :multi) if !opts[:'language'].nil?
888
+ query_params[:'!language[]'] = @api_client.build_collection_param(opts[:'not_language'], :multi) if !opts[:'not_language'].nil?
738
889
  query_params[:'published_at.start'] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
739
890
  query_params[:'published_at.end'] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
740
891
  query_params[:'categories.taxonomy'] = opts[:'categories_taxonomy'] if !opts[:'categories_taxonomy'].nil?
741
892
  query_params[:'categories.confident'] = opts[:'categories_confident'] if !opts[:'categories_confident'].nil?
742
893
  query_params[:'categories.id[]'] = @api_client.build_collection_param(opts[:'categories_id'], :multi) if !opts[:'categories_id'].nil?
894
+ query_params[:'!categories.id[]'] = @api_client.build_collection_param(opts[:'not_categories_id'], :multi) if !opts[:'not_categories_id'].nil?
743
895
  query_params[:'categories.level[]'] = @api_client.build_collection_param(opts[:'categories_level'], :multi) if !opts[:'categories_level'].nil?
896
+ query_params[:'!categories.level[]'] = @api_client.build_collection_param(opts[:'not_categories_level'], :multi) if !opts[:'not_categories_level'].nil?
744
897
  query_params[:'entities.title.text[]'] = @api_client.build_collection_param(opts[:'entities_title_text'], :multi) if !opts[:'entities_title_text'].nil?
898
+ query_params[:'!entities.title.text[]'] = @api_client.build_collection_param(opts[:'not_entities_title_text'], :multi) if !opts[:'not_entities_title_text'].nil?
745
899
  query_params[:'entities.title.type[]'] = @api_client.build_collection_param(opts[:'entities_title_type'], :multi) if !opts[:'entities_title_type'].nil?
900
+ query_params[:'!entities.title.type[]'] = @api_client.build_collection_param(opts[:'not_entities_title_type'], :multi) if !opts[:'not_entities_title_type'].nil?
746
901
  query_params[:'entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_title_links_dbpedia'], :multi) if !opts[:'entities_title_links_dbpedia'].nil?
902
+ query_params[:'!entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_title_links_dbpedia'], :multi) if !opts[:'not_entities_title_links_dbpedia'].nil?
747
903
  query_params[:'entities.body.text[]'] = @api_client.build_collection_param(opts[:'entities_body_text'], :multi) if !opts[:'entities_body_text'].nil?
904
+ query_params[:'!entities.body.text[]'] = @api_client.build_collection_param(opts[:'not_entities_body_text'], :multi) if !opts[:'not_entities_body_text'].nil?
748
905
  query_params[:'entities.body.type[]'] = @api_client.build_collection_param(opts[:'entities_body_type'], :multi) if !opts[:'entities_body_type'].nil?
906
+ query_params[:'!entities.body.type[]'] = @api_client.build_collection_param(opts[:'not_entities_body_type'], :multi) if !opts[:'not_entities_body_type'].nil?
749
907
  query_params[:'entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_body_links_dbpedia'], :multi) if !opts[:'entities_body_links_dbpedia'].nil?
908
+ query_params[:'!entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_body_links_dbpedia'], :multi) if !opts[:'not_entities_body_links_dbpedia'].nil?
750
909
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
910
+ query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
751
911
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
912
+ query_params[:'!sentiment.body.polarity'] = opts[:'not_sentiment_body_polarity'] if !opts[:'not_sentiment_body_polarity'].nil?
752
913
  query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
753
914
  query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
754
915
  query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
@@ -758,20 +919,33 @@ module AylienNewsApi
758
919
  query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
759
920
  query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
760
921
  query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
922
+ query_params[:'!media.images.format[]'] = @api_client.build_collection_param(opts[:'not_media_images_format'], :multi) if !opts[:'not_media_images_format'].nil?
761
923
  query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
762
924
  query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
763
925
  query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
926
+ query_params[:'!author.id[]'] = @api_client.build_collection_param(opts[:'not_author_id'], :multi) if !opts[:'not_author_id'].nil?
764
927
  query_params[:'author.name'] = opts[:'author_name'] if !opts[:'author_name'].nil?
928
+ query_params[:'!author.name'] = opts[:'not_author_name'] if !opts[:'not_author_name'].nil?
765
929
  query_params[:'source.id[]'] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
930
+ query_params[:'!source.id[]'] = @api_client.build_collection_param(opts[:'not_source_id'], :multi) if !opts[:'not_source_id'].nil?
766
931
  query_params[:'source.name[]'] = @api_client.build_collection_param(opts[:'source_name'], :multi) if !opts[:'source_name'].nil?
932
+ query_params[:'!source.name[]'] = @api_client.build_collection_param(opts[:'not_source_name'], :multi) if !opts[:'not_source_name'].nil?
767
933
  query_params[:'source.domain[]'] = @api_client.build_collection_param(opts[:'source_domain'], :multi) if !opts[:'source_domain'].nil?
934
+ query_params[:'!source.domain[]'] = @api_client.build_collection_param(opts[:'not_source_domain'], :multi) if !opts[:'not_source_domain'].nil?
768
935
  query_params[:'source.locations.country[]'] = @api_client.build_collection_param(opts[:'source_locations_country'], :multi) if !opts[:'source_locations_country'].nil?
936
+ query_params[:'!source.locations.country[]'] = @api_client.build_collection_param(opts[:'not_source_locations_country'], :multi) if !opts[:'not_source_locations_country'].nil?
769
937
  query_params[:'source.locations.state[]'] = @api_client.build_collection_param(opts[:'source_locations_state'], :multi) if !opts[:'source_locations_state'].nil?
938
+ query_params[:'!source.locations.state[]'] = @api_client.build_collection_param(opts[:'not_source_locations_state'], :multi) if !opts[:'not_source_locations_state'].nil?
770
939
  query_params[:'source.locations.city[]'] = @api_client.build_collection_param(opts[:'source_locations_city'], :multi) if !opts[:'source_locations_city'].nil?
940
+ query_params[:'!source.locations.city[]'] = @api_client.build_collection_param(opts[:'not_source_locations_city'], :multi) if !opts[:'not_source_locations_city'].nil?
771
941
  query_params[:'source.scopes.country[]'] = @api_client.build_collection_param(opts[:'source_scopes_country'], :multi) if !opts[:'source_scopes_country'].nil?
942
+ query_params[:'!source.scopes.country[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_country'], :multi) if !opts[:'not_source_scopes_country'].nil?
772
943
  query_params[:'source.scopes.state[]'] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if !opts[:'source_scopes_state'].nil?
944
+ query_params[:'!source.scopes.state[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_state'], :multi) if !opts[:'not_source_scopes_state'].nil?
773
945
  query_params[:'source.scopes.city[]'] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if !opts[:'source_scopes_city'].nil?
946
+ query_params[:'!source.scopes.city[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_city'], :multi) if !opts[:'not_source_scopes_city'].nil?
774
947
  query_params[:'source.scopes.level[]'] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if !opts[:'source_scopes_level'].nil?
948
+ query_params[:'!source.scopes.level[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_level'], :multi) if !opts[:'not_source_scopes_level'].nil?
775
949
  query_params[:'source.links_in_count.min'] = opts[:'source_links_in_count_min'] if !opts[:'source_links_in_count_min'].nil?
776
950
  query_params[:'source.links_in_count.max'] = opts[:'source_links_in_count_max'] if !opts[:'source_links_in_count_max'].nil?
777
951
  query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
@@ -792,14 +966,10 @@ module AylienNewsApi
792
966
 
793
967
  # header parameters
794
968
  header_params = {}
795
-
796
969
  # HTTP header 'Accept' (if needed)
797
- local_header_accept = ['application/json']
798
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
799
-
970
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml'])
800
971
  # HTTP header 'Content-Type'
801
- local_header_content_type = ['application/x-www-form-urlencoded']
802
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
972
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
803
973
 
804
974
  # form parameters
805
975
  form_params = {}
@@ -824,24 +994,36 @@ module AylienNewsApi
824
994
  # This endpoint is used for finding related stories based on the parameters provided. The maximum number of related stories returned is 100.
825
995
  # @param [Hash] opts the optional parameters
826
996
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
997
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
827
998
  # @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).
828
999
  # @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).
829
1000
  # @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).
830
1001
  # @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.
1002
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
831
1003
  # @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).
832
1004
  # @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).
833
1005
  # @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
1006
  # @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
1007
  # @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).
1008
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
836
1009
  # @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).
1010
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
837
1011
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1012
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
838
1013
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1014
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
839
1015
  # @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).
1016
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
1017
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1018
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
841
1019
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1020
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
842
1021
  # @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).
1022
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
843
1023
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1024
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
844
1025
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
1026
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
845
1027
  # @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.
846
1028
  # @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
1029
  # @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.
@@ -851,20 +1033,33 @@ module AylienNewsApi
851
1033
  # @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
1034
  # @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
1035
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
1036
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
854
1037
  # @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.
855
1038
  # @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.
856
1039
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
1040
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
857
1041
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
1042
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
858
1043
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
1044
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
859
1045
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
1046
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
860
1047
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
1048
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
861
1049
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1050
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
862
1051
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
1052
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
863
1053
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
1054
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
864
1055
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1056
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
865
1057
  # @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).
1058
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
866
1059
  # @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).
1060
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
867
1061
  # @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).
1062
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
868
1063
  # @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
1064
  # @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
1065
  # @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).
@@ -898,24 +1093,36 @@ module AylienNewsApi
898
1093
  # This endpoint is used for finding related stories based on the parameters provided. The maximum number of related stories returned is 100.
899
1094
  # @param [Hash] opts the optional parameters
900
1095
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
1096
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
901
1097
  # @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).
902
1098
  # @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).
903
1099
  # @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).
904
1100
  # @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.
1101
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
905
1102
  # @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).
906
1103
  # @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).
907
1104
  # @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
1105
  # @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
1106
  # @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).
1107
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
910
1108
  # @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).
1109
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
911
1110
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1111
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
912
1112
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1113
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
913
1114
  # @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).
1115
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
1116
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1117
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
915
1118
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1119
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
916
1120
  # @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).
1121
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
917
1122
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1123
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
918
1124
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
1125
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
919
1126
  # @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.
920
1127
  # @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
1128
  # @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.
@@ -925,20 +1132,33 @@ module AylienNewsApi
925
1132
  # @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
1133
  # @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
1134
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
1135
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
928
1136
  # @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.
929
1137
  # @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.
930
1138
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
1139
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
931
1140
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
1141
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
932
1142
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
1143
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
933
1144
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
1145
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
934
1146
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
1147
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
935
1148
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1149
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
936
1150
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
1151
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
937
1152
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
1153
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
938
1154
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1155
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
939
1156
  # @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).
1157
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
940
1158
  # @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).
1159
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
941
1160
  # @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).
1161
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
942
1162
  # @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
1163
  # @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
1164
  # @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).
@@ -970,107 +1190,122 @@ module AylienNewsApi
970
1190
  if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
971
1191
  fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
972
1192
  end
1193
+ if opts[:'not_language'] && !opts[:'not_language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
1194
+ fail ArgumentError, 'invalid value for "not_language", must include one of en, de, fr, it, es, pt'
1195
+ end
973
1196
  if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
974
1197
  fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
975
1198
  end
976
1199
  if opts[:'sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_title_polarity'])
977
1200
  fail ArgumentError, 'invalid value for "sentiment_title_polarity", must be one of positive, neutral, negative'
978
1201
  end
1202
+ if opts[:'not_sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_title_polarity'])
1203
+ fail ArgumentError, 'invalid value for "not_sentiment_title_polarity", must be one of positive, neutral, negative'
1204
+ end
979
1205
  if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
980
1206
  fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
981
1207
  end
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.'
1208
+ if opts[:'not_sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_body_polarity'])
1209
+ fail ArgumentError, 'invalid value for "not_sentiment_body_polarity", must be one of positive, neutral, negative'
1210
+ end
1211
+ if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0
1212
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
984
1213
  end
985
1214
 
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.'
1215
+ if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0
1216
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
988
1217
  end
989
1218
 
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.'
1219
+ if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0
1220
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
992
1221
  end
993
1222
 
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.'
1223
+ if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0
1224
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
996
1225
  end
997
1226
 
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.'
1227
+ if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0
1228
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1000
1229
  end
1001
1230
 
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.'
1231
+ if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0
1232
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1004
1233
  end
1005
1234
 
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.'
1235
+ if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0
1236
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1008
1237
  end
1009
1238
 
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.'
1239
+ if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0
1240
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1012
1241
  end
1013
1242
 
1014
1243
  if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
1015
1244
  fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
1016
1245
  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.'
1246
+ if opts[:'not_media_images_format'] && !opts[:'not_media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
1247
+ fail ArgumentError, 'invalid value for "not_media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
1248
+ end
1249
+ if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0
1250
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1019
1251
  end
1020
1252
 
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.'
1253
+ if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0
1254
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1023
1255
  end
1024
1256
 
1025
1257
  if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
1026
1258
  fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
1027
1259
  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.'
1260
+ if opts[:'not_source_scopes_level'] && !opts[:'not_source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
1261
+ fail ArgumentError, 'invalid value for "not_source_scopes_level", must include one of international, national, local'
1262
+ end
1263
+ if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0
1264
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1030
1265
  end
1031
1266
 
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.'
1267
+ if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0
1268
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1034
1269
  end
1035
1270
 
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.'
1271
+ if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0
1272
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1038
1273
  end
1039
1274
 
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.'
1275
+ if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0
1276
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1042
1277
  end
1043
1278
 
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.'
1279
+ if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0
1280
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1046
1281
  end
1047
1282
 
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.'
1283
+ if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0
1284
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1050
1285
  end
1051
1286
 
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.'
1287
+ if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0
1288
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1054
1289
  end
1055
1290
 
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.'
1291
+ if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0
1292
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1058
1293
  end
1059
1294
 
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.'
1295
+ if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0
1296
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1062
1297
  end
1063
1298
 
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.'
1299
+ if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0
1300
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1066
1301
  end
1067
1302
 
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.'
1303
+ if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0
1304
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1070
1305
  end
1071
1306
 
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.'
1307
+ if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0
1308
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_related_stories, must be greater than 0.'
1074
1309
  end
1075
1310
 
1076
1311
  if opts[:'cluster_algorithm'] && !['stc', 'lingo', 'kmeans'].include?(opts[:'cluster_algorithm'])
@@ -1085,12 +1320,12 @@ module AylienNewsApi
1085
1320
  if opts[:'story_language'] && !['auto', 'en', 'de', 'fr', 'it', 'es', 'pt'].include?(opts[:'story_language'])
1086
1321
  fail ArgumentError, 'invalid value for "story_language", must be one of auto, en, de, fr, it, es, pt'
1087
1322
  end
1088
- if !opts[:'per_page'].nil? && opts[:'per_page'] > 100.0
1089
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_related_stories, must be smaller than or equal to 100.0.'
1323
+ if !opts[:'per_page'].nil? && opts[:'per_page'] > 100
1324
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_related_stories, must be smaller than or equal to 100.'
1090
1325
  end
1091
1326
 
1092
- if !opts[:'per_page'].nil? && opts[:'per_page'] < 1.0
1093
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_related_stories, must be greater than or equal to 1.0.'
1327
+ if !opts[:'per_page'].nil? && opts[:'per_page'] < 1
1328
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_related_stories, must be greater than or equal to 1.'
1094
1329
  end
1095
1330
 
1096
1331
  # resource path
@@ -1101,36 +1336,44 @@ module AylienNewsApi
1101
1336
 
1102
1337
  # header parameters
1103
1338
  header_params = {}
1104
-
1105
1339
  # HTTP header 'Accept' (if needed)
1106
- local_header_accept = ['application/json']
1107
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1108
-
1340
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml'])
1109
1341
  # HTTP header 'Content-Type'
1110
- local_header_content_type = ['application/x-www-form-urlencoded']
1111
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1342
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1112
1343
 
1113
1344
  # form parameters
1114
1345
  form_params = {}
1115
1346
  form_params["id[]"] = @api_client.build_collection_param(opts[:'id'], :multi) if !opts[:'id'].nil?
1347
+ form_params["!id[]"] = @api_client.build_collection_param(opts[:'not_id'], :multi) if !opts[:'not_id'].nil?
1116
1348
  form_params["title"] = opts[:'title'] if !opts[:'title'].nil?
1117
1349
  form_params["body"] = opts[:'body'] if !opts[:'body'].nil?
1118
1350
  form_params["text"] = opts[:'text'] if !opts[:'text'].nil?
1119
1351
  form_params["language[]"] = @api_client.build_collection_param(opts[:'language'], :multi) if !opts[:'language'].nil?
1352
+ form_params["!language[]"] = @api_client.build_collection_param(opts[:'not_language'], :multi) if !opts[:'not_language'].nil?
1120
1353
  form_params["published_at.start"] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
1121
1354
  form_params["published_at.end"] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
1122
1355
  form_params["categories.taxonomy"] = opts[:'categories_taxonomy'] if !opts[:'categories_taxonomy'].nil?
1123
1356
  form_params["categories.confident"] = opts[:'categories_confident'] if !opts[:'categories_confident'].nil?
1124
1357
  form_params["categories.id[]"] = @api_client.build_collection_param(opts[:'categories_id'], :multi) if !opts[:'categories_id'].nil?
1358
+ form_params["!categories.id[]"] = @api_client.build_collection_param(opts[:'not_categories_id'], :multi) if !opts[:'not_categories_id'].nil?
1125
1359
  form_params["categories.level[]"] = @api_client.build_collection_param(opts[:'categories_level'], :multi) if !opts[:'categories_level'].nil?
1360
+ form_params["!categories.level[]"] = @api_client.build_collection_param(opts[:'not_categories_level'], :multi) if !opts[:'not_categories_level'].nil?
1126
1361
  form_params["entities.title.text[]"] = @api_client.build_collection_param(opts[:'entities_title_text'], :multi) if !opts[:'entities_title_text'].nil?
1362
+ form_params["!entities.title.text[]"] = @api_client.build_collection_param(opts[:'not_entities_title_text'], :multi) if !opts[:'not_entities_title_text'].nil?
1127
1363
  form_params["entities.title.type[]"] = @api_client.build_collection_param(opts[:'entities_title_type'], :multi) if !opts[:'entities_title_type'].nil?
1364
+ form_params["!entities.title.type[]"] = @api_client.build_collection_param(opts[:'not_entities_title_type'], :multi) if !opts[:'not_entities_title_type'].nil?
1128
1365
  form_params["entities.title.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'entities_title_links_dbpedia'], :multi) if !opts[:'entities_title_links_dbpedia'].nil?
1366
+ form_params["!entities.title.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'not_entities_title_links_dbpedia'], :multi) if !opts[:'not_entities_title_links_dbpedia'].nil?
1129
1367
  form_params["entities.body.text[]"] = @api_client.build_collection_param(opts[:'entities_body_text'], :multi) if !opts[:'entities_body_text'].nil?
1368
+ form_params["!entities.body.text[]"] = @api_client.build_collection_param(opts[:'not_entities_body_text'], :multi) if !opts[:'not_entities_body_text'].nil?
1130
1369
  form_params["entities.body.type[]"] = @api_client.build_collection_param(opts[:'entities_body_type'], :multi) if !opts[:'entities_body_type'].nil?
1370
+ form_params["!entities.body.type[]"] = @api_client.build_collection_param(opts[:'not_entities_body_type'], :multi) if !opts[:'not_entities_body_type'].nil?
1131
1371
  form_params["entities.body.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'entities_body_links_dbpedia'], :multi) if !opts[:'entities_body_links_dbpedia'].nil?
1372
+ form_params["!entities.body.links.dbpedia[]"] = @api_client.build_collection_param(opts[:'not_entities_body_links_dbpedia'], :multi) if !opts[:'not_entities_body_links_dbpedia'].nil?
1132
1373
  form_params["sentiment.title.polarity"] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
1374
+ form_params["!sentiment.title.polarity"] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
1133
1375
  form_params["sentiment.body.polarity"] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
1376
+ form_params["!sentiment.body.polarity"] = opts[:'not_sentiment_body_polarity'] if !opts[:'not_sentiment_body_polarity'].nil?
1134
1377
  form_params["media.images.count.min"] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
1135
1378
  form_params["media.images.count.max"] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
1136
1379
  form_params["media.images.width.min"] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
@@ -1140,20 +1383,33 @@ module AylienNewsApi
1140
1383
  form_params["media.images.content_length.min"] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
1141
1384
  form_params["media.images.content_length.max"] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
1142
1385
  form_params["media.images.format[]"] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
1386
+ form_params["!media.images.format[]"] = @api_client.build_collection_param(opts[:'not_media_images_format'], :multi) if !opts[:'not_media_images_format'].nil?
1143
1387
  form_params["media.videos.count.min"] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
1144
1388
  form_params["media.videos.count.max"] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
1145
1389
  form_params["author.id[]"] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
1390
+ form_params["!author.id[]"] = @api_client.build_collection_param(opts[:'not_author_id'], :multi) if !opts[:'not_author_id'].nil?
1146
1391
  form_params["author.name"] = opts[:'author_name'] if !opts[:'author_name'].nil?
1392
+ form_params["!author.name"] = opts[:'not_author_name'] if !opts[:'not_author_name'].nil?
1147
1393
  form_params["source.id[]"] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
1394
+ form_params["!source.id[]"] = @api_client.build_collection_param(opts[:'not_source_id'], :multi) if !opts[:'not_source_id'].nil?
1148
1395
  form_params["source.name[]"] = @api_client.build_collection_param(opts[:'source_name'], :multi) if !opts[:'source_name'].nil?
1396
+ form_params["!source.name[]"] = @api_client.build_collection_param(opts[:'not_source_name'], :multi) if !opts[:'not_source_name'].nil?
1149
1397
  form_params["source.domain[]"] = @api_client.build_collection_param(opts[:'source_domain'], :multi) if !opts[:'source_domain'].nil?
1398
+ form_params["!source.domain[]"] = @api_client.build_collection_param(opts[:'not_source_domain'], :multi) if !opts[:'not_source_domain'].nil?
1150
1399
  form_params["source.locations.country[]"] = @api_client.build_collection_param(opts[:'source_locations_country'], :multi) if !opts[:'source_locations_country'].nil?
1400
+ form_params["!source.locations.country[]"] = @api_client.build_collection_param(opts[:'not_source_locations_country'], :multi) if !opts[:'not_source_locations_country'].nil?
1151
1401
  form_params["source.locations.state[]"] = @api_client.build_collection_param(opts[:'source_locations_state'], :multi) if !opts[:'source_locations_state'].nil?
1402
+ form_params["!source.locations.state[]"] = @api_client.build_collection_param(opts[:'not_source_locations_state'], :multi) if !opts[:'not_source_locations_state'].nil?
1152
1403
  form_params["source.locations.city[]"] = @api_client.build_collection_param(opts[:'source_locations_city'], :multi) if !opts[:'source_locations_city'].nil?
1404
+ form_params["!source.locations.city[]"] = @api_client.build_collection_param(opts[:'not_source_locations_city'], :multi) if !opts[:'not_source_locations_city'].nil?
1153
1405
  form_params["source.scopes.country[]"] = @api_client.build_collection_param(opts[:'source_scopes_country'], :multi) if !opts[:'source_scopes_country'].nil?
1406
+ form_params["!source.scopes.country[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_country'], :multi) if !opts[:'not_source_scopes_country'].nil?
1154
1407
  form_params["source.scopes.state[]"] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if !opts[:'source_scopes_state'].nil?
1408
+ form_params["!source.scopes.state[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_state'], :multi) if !opts[:'not_source_scopes_state'].nil?
1155
1409
  form_params["source.scopes.city[]"] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if !opts[:'source_scopes_city'].nil?
1410
+ form_params["!source.scopes.city[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_city'], :multi) if !opts[:'not_source_scopes_city'].nil?
1156
1411
  form_params["source.scopes.level[]"] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if !opts[:'source_scopes_level'].nil?
1412
+ form_params["!source.scopes.level[]"] = @api_client.build_collection_param(opts[:'not_source_scopes_level'], :multi) if !opts[:'not_source_scopes_level'].nil?
1157
1413
  form_params["source.links_in_count.min"] = opts[:'source_links_in_count_min'] if !opts[:'source_links_in_count_min'].nil?
1158
1414
  form_params["source.links_in_count.max"] = opts[:'source_links_in_count_max'] if !opts[:'source_links_in_count_max'].nil?
1159
1415
  form_params["source.rankings.alexa.rank.min"] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
@@ -1198,24 +1454,36 @@ module AylienNewsApi
1198
1454
  # This endpoint is used for getting a list of stories.
1199
1455
  # @param [Hash] opts the optional parameters
1200
1456
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
1457
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
1201
1458
  # @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).
1202
1459
  # @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).
1203
1460
  # @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).
1204
1461
  # @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.
1462
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1205
1463
  # @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).
1206
1464
  # @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).
1207
1465
  # @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
1466
  # @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
1467
  # @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).
1468
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1210
1469
  # @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).
1470
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1211
1471
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1472
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1212
1473
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1474
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1213
1475
  # @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).
1476
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
1477
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1478
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1215
1479
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1480
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1216
1481
  # @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).
1482
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
1217
1483
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1484
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1218
1485
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
1486
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
1219
1487
  # @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.
1220
1488
  # @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
1489
  # @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.
@@ -1225,20 +1493,33 @@ module AylienNewsApi
1225
1493
  # @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
1494
  # @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
1495
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
1496
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
1228
1497
  # @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.
1229
1498
  # @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.
1230
1499
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
1500
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
1231
1501
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
1502
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
1232
1503
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
1504
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
1233
1505
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
1506
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
1234
1507
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
1508
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
1235
1509
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1510
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1236
1511
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
1512
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
1237
1513
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
1514
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
1238
1515
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1516
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1239
1517
  # @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).
1518
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
1240
1519
  # @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).
1520
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
1241
1521
  # @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).
1522
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
1242
1523
  # @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
1524
  # @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
1525
  # @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).
@@ -1269,24 +1550,36 @@ module AylienNewsApi
1269
1550
  # This endpoint is used for getting a list of stories.
1270
1551
  # @param [Hash] opts the optional parameters
1271
1552
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
1553
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
1272
1554
  # @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).
1273
1555
  # @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).
1274
1556
  # @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).
1275
1557
  # @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.
1558
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1276
1559
  # @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).
1277
1560
  # @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).
1278
1561
  # @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
1562
  # @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
1563
  # @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).
1564
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1281
1565
  # @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).
1566
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1282
1567
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1568
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1283
1569
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1570
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1284
1571
  # @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).
1572
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
1573
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1574
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1286
1575
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1576
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1287
1577
  # @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).
1578
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
1288
1579
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1580
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1289
1581
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
1582
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
1290
1583
  # @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.
1291
1584
  # @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
1585
  # @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.
@@ -1296,20 +1589,33 @@ module AylienNewsApi
1296
1589
  # @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
1590
  # @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
1591
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
1592
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
1299
1593
  # @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.
1300
1594
  # @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.
1301
1595
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
1596
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
1302
1597
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
1598
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
1303
1599
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
1600
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
1304
1601
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
1602
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
1305
1603
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
1604
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
1306
1605
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1606
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1307
1607
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
1608
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
1308
1609
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
1610
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
1309
1611
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1612
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1310
1613
  # @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).
1614
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
1311
1615
  # @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).
1616
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
1312
1617
  # @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).
1618
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
1313
1619
  # @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
1620
  # @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
1621
  # @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).
@@ -1338,107 +1644,122 @@ module AylienNewsApi
1338
1644
  if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
1339
1645
  fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
1340
1646
  end
1647
+ if opts[:'not_language'] && !opts[:'not_language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
1648
+ fail ArgumentError, 'invalid value for "not_language", must include one of en, de, fr, it, es, pt'
1649
+ end
1341
1650
  if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
1342
1651
  fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
1343
1652
  end
1344
1653
  if opts[:'sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_title_polarity'])
1345
1654
  fail ArgumentError, 'invalid value for "sentiment_title_polarity", must be one of positive, neutral, negative'
1346
1655
  end
1656
+ if opts[:'not_sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_title_polarity'])
1657
+ fail ArgumentError, 'invalid value for "not_sentiment_title_polarity", must be one of positive, neutral, negative'
1658
+ end
1347
1659
  if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
1348
1660
  fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
1349
1661
  end
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.'
1662
+ if opts[:'not_sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_body_polarity'])
1663
+ fail ArgumentError, 'invalid value for "not_sentiment_body_polarity", must be one of positive, neutral, negative'
1664
+ end
1665
+ if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0
1666
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1352
1667
  end
1353
1668
 
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.'
1669
+ if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0
1670
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1356
1671
  end
1357
1672
 
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.'
1673
+ if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0
1674
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1360
1675
  end
1361
1676
 
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.'
1677
+ if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0
1678
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1364
1679
  end
1365
1680
 
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.'
1681
+ if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0
1682
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1368
1683
  end
1369
1684
 
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.'
1685
+ if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0
1686
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1372
1687
  end
1373
1688
 
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.'
1689
+ if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0
1690
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1376
1691
  end
1377
1692
 
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.'
1693
+ if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0
1694
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1380
1695
  end
1381
1696
 
1382
1697
  if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
1383
1698
  fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
1384
1699
  end
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.'
1700
+ if opts[:'not_media_images_format'] && !opts[:'not_media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
1701
+ fail ArgumentError, 'invalid value for "not_media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
1702
+ end
1703
+ if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0
1704
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1387
1705
  end
1388
1706
 
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.'
1707
+ if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0
1708
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1391
1709
  end
1392
1710
 
1393
1711
  if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
1394
1712
  fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
1395
1713
  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.'
1714
+ if opts[:'not_source_scopes_level'] && !opts[:'not_source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
1715
+ fail ArgumentError, 'invalid value for "not_source_scopes_level", must include one of international, national, local'
1716
+ end
1717
+ if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0
1718
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1398
1719
  end
1399
1720
 
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.'
1721
+ if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0
1722
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1402
1723
  end
1403
1724
 
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.'
1725
+ if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0
1726
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1406
1727
  end
1407
1728
 
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.'
1729
+ if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0
1730
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1410
1731
  end
1411
1732
 
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.'
1733
+ if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0
1734
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1414
1735
  end
1415
1736
 
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.'
1737
+ if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0
1738
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1418
1739
  end
1419
1740
 
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.'
1741
+ if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0
1742
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1422
1743
  end
1423
1744
 
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.'
1745
+ if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0
1746
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1426
1747
  end
1427
1748
 
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.'
1749
+ if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0
1750
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1430
1751
  end
1431
1752
 
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.'
1753
+ if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0
1754
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1434
1755
  end
1435
1756
 
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.'
1757
+ if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0
1758
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_stories, must be greater than 0.'
1438
1759
  end
1439
1760
 
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.'
1761
+ if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0
1762
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_stories, must be greater than 0.'
1442
1763
  end
1443
1764
 
1444
1765
  if opts[:'cluster_algorithm'] && !['stc', 'lingo', 'kmeans'].include?(opts[:'cluster_algorithm'])
@@ -1453,12 +1774,12 @@ module AylienNewsApi
1453
1774
  if opts[:'sort_direction'] && !['asc', 'desc'].include?(opts[:'sort_direction'])
1454
1775
  fail ArgumentError, 'invalid value for "sort_direction", must be one of asc, desc'
1455
1776
  end
1456
- if !opts[:'per_page'].nil? && opts[:'per_page'] > 100.0
1457
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_stories, must be smaller than or equal to 100.0.'
1777
+ if !opts[:'per_page'].nil? && opts[:'per_page'] > 100
1778
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_stories, must be smaller than or equal to 100.'
1458
1779
  end
1459
1780
 
1460
- if !opts[:'per_page'].nil? && opts[:'per_page'] < 1.0
1461
- fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_stories, must be greater than or equal to 1.0.'
1781
+ if !opts[:'per_page'].nil? && opts[:'per_page'] < 1
1782
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling DefaultApi.list_stories, must be greater than or equal to 1.'
1462
1783
  end
1463
1784
 
1464
1785
  # resource path
@@ -1467,24 +1788,36 @@ module AylienNewsApi
1467
1788
  # query parameters
1468
1789
  query_params = {}
1469
1790
  query_params[:'id[]'] = @api_client.build_collection_param(opts[:'id'], :multi) if !opts[:'id'].nil?
1791
+ query_params[:'!id[]'] = @api_client.build_collection_param(opts[:'not_id'], :multi) if !opts[:'not_id'].nil?
1470
1792
  query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
1471
1793
  query_params[:'body'] = opts[:'body'] if !opts[:'body'].nil?
1472
1794
  query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
1473
1795
  query_params[:'language[]'] = @api_client.build_collection_param(opts[:'language'], :multi) if !opts[:'language'].nil?
1796
+ query_params[:'!language[]'] = @api_client.build_collection_param(opts[:'not_language'], :multi) if !opts[:'not_language'].nil?
1474
1797
  query_params[:'published_at.start'] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
1475
1798
  query_params[:'published_at.end'] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
1476
1799
  query_params[:'categories.taxonomy'] = opts[:'categories_taxonomy'] if !opts[:'categories_taxonomy'].nil?
1477
1800
  query_params[:'categories.confident'] = opts[:'categories_confident'] if !opts[:'categories_confident'].nil?
1478
1801
  query_params[:'categories.id[]'] = @api_client.build_collection_param(opts[:'categories_id'], :multi) if !opts[:'categories_id'].nil?
1802
+ query_params[:'!categories.id[]'] = @api_client.build_collection_param(opts[:'not_categories_id'], :multi) if !opts[:'not_categories_id'].nil?
1479
1803
  query_params[:'categories.level[]'] = @api_client.build_collection_param(opts[:'categories_level'], :multi) if !opts[:'categories_level'].nil?
1804
+ query_params[:'!categories.level[]'] = @api_client.build_collection_param(opts[:'not_categories_level'], :multi) if !opts[:'not_categories_level'].nil?
1480
1805
  query_params[:'entities.title.text[]'] = @api_client.build_collection_param(opts[:'entities_title_text'], :multi) if !opts[:'entities_title_text'].nil?
1806
+ query_params[:'!entities.title.text[]'] = @api_client.build_collection_param(opts[:'not_entities_title_text'], :multi) if !opts[:'not_entities_title_text'].nil?
1481
1807
  query_params[:'entities.title.type[]'] = @api_client.build_collection_param(opts[:'entities_title_type'], :multi) if !opts[:'entities_title_type'].nil?
1808
+ query_params[:'!entities.title.type[]'] = @api_client.build_collection_param(opts[:'not_entities_title_type'], :multi) if !opts[:'not_entities_title_type'].nil?
1482
1809
  query_params[:'entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_title_links_dbpedia'], :multi) if !opts[:'entities_title_links_dbpedia'].nil?
1810
+ query_params[:'!entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_title_links_dbpedia'], :multi) if !opts[:'not_entities_title_links_dbpedia'].nil?
1483
1811
  query_params[:'entities.body.text[]'] = @api_client.build_collection_param(opts[:'entities_body_text'], :multi) if !opts[:'entities_body_text'].nil?
1812
+ query_params[:'!entities.body.text[]'] = @api_client.build_collection_param(opts[:'not_entities_body_text'], :multi) if !opts[:'not_entities_body_text'].nil?
1484
1813
  query_params[:'entities.body.type[]'] = @api_client.build_collection_param(opts[:'entities_body_type'], :multi) if !opts[:'entities_body_type'].nil?
1814
+ query_params[:'!entities.body.type[]'] = @api_client.build_collection_param(opts[:'not_entities_body_type'], :multi) if !opts[:'not_entities_body_type'].nil?
1485
1815
  query_params[:'entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_body_links_dbpedia'], :multi) if !opts[:'entities_body_links_dbpedia'].nil?
1816
+ query_params[:'!entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_body_links_dbpedia'], :multi) if !opts[:'not_entities_body_links_dbpedia'].nil?
1486
1817
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
1818
+ query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
1487
1819
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
1820
+ query_params[:'!sentiment.body.polarity'] = opts[:'not_sentiment_body_polarity'] if !opts[:'not_sentiment_body_polarity'].nil?
1488
1821
  query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
1489
1822
  query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
1490
1823
  query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
@@ -1494,20 +1827,33 @@ module AylienNewsApi
1494
1827
  query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
1495
1828
  query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
1496
1829
  query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
1830
+ query_params[:'!media.images.format[]'] = @api_client.build_collection_param(opts[:'not_media_images_format'], :multi) if !opts[:'not_media_images_format'].nil?
1497
1831
  query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
1498
1832
  query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
1499
1833
  query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
1834
+ query_params[:'!author.id[]'] = @api_client.build_collection_param(opts[:'not_author_id'], :multi) if !opts[:'not_author_id'].nil?
1500
1835
  query_params[:'author.name'] = opts[:'author_name'] if !opts[:'author_name'].nil?
1836
+ query_params[:'!author.name'] = opts[:'not_author_name'] if !opts[:'not_author_name'].nil?
1501
1837
  query_params[:'source.id[]'] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
1838
+ query_params[:'!source.id[]'] = @api_client.build_collection_param(opts[:'not_source_id'], :multi) if !opts[:'not_source_id'].nil?
1502
1839
  query_params[:'source.name[]'] = @api_client.build_collection_param(opts[:'source_name'], :multi) if !opts[:'source_name'].nil?
1840
+ query_params[:'!source.name[]'] = @api_client.build_collection_param(opts[:'not_source_name'], :multi) if !opts[:'not_source_name'].nil?
1503
1841
  query_params[:'source.domain[]'] = @api_client.build_collection_param(opts[:'source_domain'], :multi) if !opts[:'source_domain'].nil?
1842
+ query_params[:'!source.domain[]'] = @api_client.build_collection_param(opts[:'not_source_domain'], :multi) if !opts[:'not_source_domain'].nil?
1504
1843
  query_params[:'source.locations.country[]'] = @api_client.build_collection_param(opts[:'source_locations_country'], :multi) if !opts[:'source_locations_country'].nil?
1844
+ query_params[:'!source.locations.country[]'] = @api_client.build_collection_param(opts[:'not_source_locations_country'], :multi) if !opts[:'not_source_locations_country'].nil?
1505
1845
  query_params[:'source.locations.state[]'] = @api_client.build_collection_param(opts[:'source_locations_state'], :multi) if !opts[:'source_locations_state'].nil?
1846
+ query_params[:'!source.locations.state[]'] = @api_client.build_collection_param(opts[:'not_source_locations_state'], :multi) if !opts[:'not_source_locations_state'].nil?
1506
1847
  query_params[:'source.locations.city[]'] = @api_client.build_collection_param(opts[:'source_locations_city'], :multi) if !opts[:'source_locations_city'].nil?
1848
+ query_params[:'!source.locations.city[]'] = @api_client.build_collection_param(opts[:'not_source_locations_city'], :multi) if !opts[:'not_source_locations_city'].nil?
1507
1849
  query_params[:'source.scopes.country[]'] = @api_client.build_collection_param(opts[:'source_scopes_country'], :multi) if !opts[:'source_scopes_country'].nil?
1850
+ query_params[:'!source.scopes.country[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_country'], :multi) if !opts[:'not_source_scopes_country'].nil?
1508
1851
  query_params[:'source.scopes.state[]'] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if !opts[:'source_scopes_state'].nil?
1852
+ query_params[:'!source.scopes.state[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_state'], :multi) if !opts[:'not_source_scopes_state'].nil?
1509
1853
  query_params[:'source.scopes.city[]'] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if !opts[:'source_scopes_city'].nil?
1854
+ query_params[:'!source.scopes.city[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_city'], :multi) if !opts[:'not_source_scopes_city'].nil?
1510
1855
  query_params[:'source.scopes.level[]'] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if !opts[:'source_scopes_level'].nil?
1856
+ query_params[:'!source.scopes.level[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_level'], :multi) if !opts[:'not_source_scopes_level'].nil?
1511
1857
  query_params[:'source.links_in_count.min'] = opts[:'source_links_in_count_min'] if !opts[:'source_links_in_count_min'].nil?
1512
1858
  query_params[:'source.links_in_count.max'] = opts[:'source_links_in_count_max'] if !opts[:'source_links_in_count_max'].nil?
1513
1859
  query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
@@ -1531,14 +1877,10 @@ module AylienNewsApi
1531
1877
 
1532
1878
  # header parameters
1533
1879
  header_params = {}
1534
-
1535
1880
  # HTTP header 'Accept' (if needed)
1536
- local_header_accept = ['application/json']
1537
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1538
-
1881
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml'])
1539
1882
  # HTTP header 'Content-Type'
1540
- local_header_content_type = ['application/x-www-form-urlencoded']
1541
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1883
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1542
1884
 
1543
1885
  # form parameters
1544
1886
  form_params = {}
@@ -1563,22 +1905,34 @@ module AylienNewsApi
1563
1905
  # This endpoint is used for getting time series by stories.
1564
1906
  # @param [Hash] opts the optional parameters
1565
1907
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
1908
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
1566
1909
  # @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).
1567
1910
  # @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).
1568
1911
  # @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).
1569
1912
  # @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.
1913
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1570
1914
  # @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
1915
  # @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
1916
  # @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).
1917
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1573
1918
  # @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).
1919
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1574
1920
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1921
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1575
1922
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1923
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1576
1924
  # @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).
1925
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
1926
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1927
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1578
1928
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1929
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1579
1930
  # @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).
1931
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
1580
1932
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
1933
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1581
1934
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
1935
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
1582
1936
  # @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.
1583
1937
  # @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
1938
  # @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.
@@ -1588,20 +1942,33 @@ module AylienNewsApi
1588
1942
  # @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
1943
  # @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
1944
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
1945
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
1591
1946
  # @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.
1592
1947
  # @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.
1593
1948
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
1949
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
1594
1950
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
1951
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
1595
1952
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
1953
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
1596
1954
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
1955
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
1597
1956
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
1957
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
1598
1958
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1959
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1599
1960
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
1961
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
1600
1962
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
1963
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
1601
1964
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1965
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1602
1966
  # @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).
1967
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
1603
1968
  # @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).
1969
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
1604
1970
  # @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).
1971
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
1605
1972
  # @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
1973
  # @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
1974
  # @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).
@@ -1628,22 +1995,34 @@ module AylienNewsApi
1628
1995
  # This endpoint is used for getting time series by stories.
1629
1996
  # @param [Hash] opts the optional parameters
1630
1997
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
1998
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
1631
1999
  # @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).
1632
2000
  # @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).
1633
2001
  # @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).
1634
2002
  # @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.
2003
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1635
2004
  # @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
2005
  # @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
2006
  # @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).
2007
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1638
2008
  # @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).
2009
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1639
2010
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2011
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1640
2012
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2013
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1641
2014
  # @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).
2015
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
2016
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2017
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1643
2018
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2019
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1644
2020
  # @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).
2021
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
1645
2022
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
2023
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1646
2024
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
2025
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
1647
2026
  # @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.
1648
2027
  # @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
2028
  # @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.
@@ -1653,20 +2032,33 @@ module AylienNewsApi
1653
2032
  # @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
2033
  # @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
2034
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
2035
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
1656
2036
  # @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.
1657
2037
  # @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.
1658
2038
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
2039
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
1659
2040
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
2041
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
1660
2042
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
2043
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
1661
2044
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
2045
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
1662
2046
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
2047
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
1663
2048
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
2049
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1664
2050
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
2051
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
1665
2052
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
2053
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
1666
2054
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
2055
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1667
2056
  # @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).
2057
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
1668
2058
  # @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).
2059
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
1669
2060
  # @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).
2061
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
1670
2062
  # @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
2063
  # @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
2064
  # @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).
@@ -1691,107 +2083,122 @@ module AylienNewsApi
1691
2083
  if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
1692
2084
  fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
1693
2085
  end
2086
+ if opts[:'not_language'] && !opts[:'not_language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
2087
+ fail ArgumentError, 'invalid value for "not_language", must include one of en, de, fr, it, es, pt'
2088
+ end
1694
2089
  if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
1695
2090
  fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
1696
2091
  end
1697
2092
  if opts[:'sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_title_polarity'])
1698
2093
  fail ArgumentError, 'invalid value for "sentiment_title_polarity", must be one of positive, neutral, negative'
1699
2094
  end
2095
+ if opts[:'not_sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_title_polarity'])
2096
+ fail ArgumentError, 'invalid value for "not_sentiment_title_polarity", must be one of positive, neutral, negative'
2097
+ end
1700
2098
  if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
1701
2099
  fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
1702
2100
  end
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.'
2101
+ if opts[:'not_sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_body_polarity'])
2102
+ fail ArgumentError, 'invalid value for "not_sentiment_body_polarity", must be one of positive, neutral, negative'
2103
+ end
2104
+ if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0
2105
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1705
2106
  end
1706
2107
 
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.'
2108
+ if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0
2109
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1709
2110
  end
1710
2111
 
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.'
2112
+ if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0
2113
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1713
2114
  end
1714
2115
 
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.'
2116
+ if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0
2117
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1717
2118
  end
1718
2119
 
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.'
2120
+ if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0
2121
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1721
2122
  end
1722
2123
 
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.'
2124
+ if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0
2125
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1725
2126
  end
1726
2127
 
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.'
2128
+ if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0
2129
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1729
2130
  end
1730
2131
 
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.'
2132
+ if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0
2133
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1733
2134
  end
1734
2135
 
1735
2136
  if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
1736
2137
  fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
1737
2138
  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.'
2139
+ if opts[:'not_media_images_format'] && !opts[:'not_media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
2140
+ fail ArgumentError, 'invalid value for "not_media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
2141
+ end
2142
+ if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0
2143
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1740
2144
  end
1741
2145
 
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.'
2146
+ if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0
2147
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1744
2148
  end
1745
2149
 
1746
2150
  if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
1747
2151
  fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
1748
2152
  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.'
2153
+ if opts[:'not_source_scopes_level'] && !opts[:'not_source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
2154
+ fail ArgumentError, 'invalid value for "not_source_scopes_level", must include one of international, national, local'
2155
+ end
2156
+ if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0
2157
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1751
2158
  end
1752
2159
 
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.'
2160
+ if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0
2161
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1755
2162
  end
1756
2163
 
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.'
2164
+ if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0
2165
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1759
2166
  end
1760
2167
 
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.'
2168
+ if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0
2169
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1763
2170
  end
1764
2171
 
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.'
2172
+ if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0
2173
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1767
2174
  end
1768
2175
 
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.'
2176
+ if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0
2177
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1771
2178
  end
1772
2179
 
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.'
2180
+ if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0
2181
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1775
2182
  end
1776
2183
 
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.'
2184
+ if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0
2185
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1779
2186
  end
1780
2187
 
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.'
2188
+ if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0
2189
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1783
2190
  end
1784
2191
 
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.'
2192
+ if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0
2193
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1787
2194
  end
1788
2195
 
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.'
2196
+ if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0
2197
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1791
2198
  end
1792
2199
 
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.'
2200
+ if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0
2201
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_time_series, must be greater than 0.'
1795
2202
  end
1796
2203
 
1797
2204
  # resource path
@@ -1800,22 +2207,34 @@ module AylienNewsApi
1800
2207
  # query parameters
1801
2208
  query_params = {}
1802
2209
  query_params[:'id[]'] = @api_client.build_collection_param(opts[:'id'], :multi) if !opts[:'id'].nil?
2210
+ query_params[:'!id[]'] = @api_client.build_collection_param(opts[:'not_id'], :multi) if !opts[:'not_id'].nil?
1803
2211
  query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
1804
2212
  query_params[:'body'] = opts[:'body'] if !opts[:'body'].nil?
1805
2213
  query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
1806
2214
  query_params[:'language[]'] = @api_client.build_collection_param(opts[:'language'], :multi) if !opts[:'language'].nil?
2215
+ query_params[:'!language[]'] = @api_client.build_collection_param(opts[:'not_language'], :multi) if !opts[:'not_language'].nil?
1807
2216
  query_params[:'categories.taxonomy'] = opts[:'categories_taxonomy'] if !opts[:'categories_taxonomy'].nil?
1808
2217
  query_params[:'categories.confident'] = opts[:'categories_confident'] if !opts[:'categories_confident'].nil?
1809
2218
  query_params[:'categories.id[]'] = @api_client.build_collection_param(opts[:'categories_id'], :multi) if !opts[:'categories_id'].nil?
2219
+ query_params[:'!categories.id[]'] = @api_client.build_collection_param(opts[:'not_categories_id'], :multi) if !opts[:'not_categories_id'].nil?
1810
2220
  query_params[:'categories.level[]'] = @api_client.build_collection_param(opts[:'categories_level'], :multi) if !opts[:'categories_level'].nil?
2221
+ query_params[:'!categories.level[]'] = @api_client.build_collection_param(opts[:'not_categories_level'], :multi) if !opts[:'not_categories_level'].nil?
1811
2222
  query_params[:'entities.title.text[]'] = @api_client.build_collection_param(opts[:'entities_title_text'], :multi) if !opts[:'entities_title_text'].nil?
2223
+ query_params[:'!entities.title.text[]'] = @api_client.build_collection_param(opts[:'not_entities_title_text'], :multi) if !opts[:'not_entities_title_text'].nil?
1812
2224
  query_params[:'entities.title.type[]'] = @api_client.build_collection_param(opts[:'entities_title_type'], :multi) if !opts[:'entities_title_type'].nil?
2225
+ query_params[:'!entities.title.type[]'] = @api_client.build_collection_param(opts[:'not_entities_title_type'], :multi) if !opts[:'not_entities_title_type'].nil?
1813
2226
  query_params[:'entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_title_links_dbpedia'], :multi) if !opts[:'entities_title_links_dbpedia'].nil?
2227
+ query_params[:'!entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_title_links_dbpedia'], :multi) if !opts[:'not_entities_title_links_dbpedia'].nil?
1814
2228
  query_params[:'entities.body.text[]'] = @api_client.build_collection_param(opts[:'entities_body_text'], :multi) if !opts[:'entities_body_text'].nil?
2229
+ query_params[:'!entities.body.text[]'] = @api_client.build_collection_param(opts[:'not_entities_body_text'], :multi) if !opts[:'not_entities_body_text'].nil?
1815
2230
  query_params[:'entities.body.type[]'] = @api_client.build_collection_param(opts[:'entities_body_type'], :multi) if !opts[:'entities_body_type'].nil?
2231
+ query_params[:'!entities.body.type[]'] = @api_client.build_collection_param(opts[:'not_entities_body_type'], :multi) if !opts[:'not_entities_body_type'].nil?
1816
2232
  query_params[:'entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_body_links_dbpedia'], :multi) if !opts[:'entities_body_links_dbpedia'].nil?
2233
+ query_params[:'!entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_body_links_dbpedia'], :multi) if !opts[:'not_entities_body_links_dbpedia'].nil?
1817
2234
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
2235
+ query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
1818
2236
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
2237
+ query_params[:'!sentiment.body.polarity'] = opts[:'not_sentiment_body_polarity'] if !opts[:'not_sentiment_body_polarity'].nil?
1819
2238
  query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
1820
2239
  query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
1821
2240
  query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
@@ -1825,20 +2244,33 @@ module AylienNewsApi
1825
2244
  query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
1826
2245
  query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
1827
2246
  query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
2247
+ query_params[:'!media.images.format[]'] = @api_client.build_collection_param(opts[:'not_media_images_format'], :multi) if !opts[:'not_media_images_format'].nil?
1828
2248
  query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
1829
2249
  query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
1830
2250
  query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
2251
+ query_params[:'!author.id[]'] = @api_client.build_collection_param(opts[:'not_author_id'], :multi) if !opts[:'not_author_id'].nil?
1831
2252
  query_params[:'author.name'] = opts[:'author_name'] if !opts[:'author_name'].nil?
2253
+ query_params[:'!author.name'] = opts[:'not_author_name'] if !opts[:'not_author_name'].nil?
1832
2254
  query_params[:'source.id[]'] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
2255
+ query_params[:'!source.id[]'] = @api_client.build_collection_param(opts[:'not_source_id'], :multi) if !opts[:'not_source_id'].nil?
1833
2256
  query_params[:'source.name[]'] = @api_client.build_collection_param(opts[:'source_name'], :multi) if !opts[:'source_name'].nil?
2257
+ query_params[:'!source.name[]'] = @api_client.build_collection_param(opts[:'not_source_name'], :multi) if !opts[:'not_source_name'].nil?
1834
2258
  query_params[:'source.domain[]'] = @api_client.build_collection_param(opts[:'source_domain'], :multi) if !opts[:'source_domain'].nil?
2259
+ query_params[:'!source.domain[]'] = @api_client.build_collection_param(opts[:'not_source_domain'], :multi) if !opts[:'not_source_domain'].nil?
1835
2260
  query_params[:'source.locations.country[]'] = @api_client.build_collection_param(opts[:'source_locations_country'], :multi) if !opts[:'source_locations_country'].nil?
2261
+ query_params[:'!source.locations.country[]'] = @api_client.build_collection_param(opts[:'not_source_locations_country'], :multi) if !opts[:'not_source_locations_country'].nil?
1836
2262
  query_params[:'source.locations.state[]'] = @api_client.build_collection_param(opts[:'source_locations_state'], :multi) if !opts[:'source_locations_state'].nil?
2263
+ query_params[:'!source.locations.state[]'] = @api_client.build_collection_param(opts[:'not_source_locations_state'], :multi) if !opts[:'not_source_locations_state'].nil?
1837
2264
  query_params[:'source.locations.city[]'] = @api_client.build_collection_param(opts[:'source_locations_city'], :multi) if !opts[:'source_locations_city'].nil?
2265
+ query_params[:'!source.locations.city[]'] = @api_client.build_collection_param(opts[:'not_source_locations_city'], :multi) if !opts[:'not_source_locations_city'].nil?
1838
2266
  query_params[:'source.scopes.country[]'] = @api_client.build_collection_param(opts[:'source_scopes_country'], :multi) if !opts[:'source_scopes_country'].nil?
2267
+ query_params[:'!source.scopes.country[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_country'], :multi) if !opts[:'not_source_scopes_country'].nil?
1839
2268
  query_params[:'source.scopes.state[]'] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if !opts[:'source_scopes_state'].nil?
2269
+ query_params[:'!source.scopes.state[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_state'], :multi) if !opts[:'not_source_scopes_state'].nil?
1840
2270
  query_params[:'source.scopes.city[]'] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if !opts[:'source_scopes_city'].nil?
2271
+ query_params[:'!source.scopes.city[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_city'], :multi) if !opts[:'not_source_scopes_city'].nil?
1841
2272
  query_params[:'source.scopes.level[]'] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if !opts[:'source_scopes_level'].nil?
2273
+ query_params[:'!source.scopes.level[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_level'], :multi) if !opts[:'not_source_scopes_level'].nil?
1842
2274
  query_params[:'source.links_in_count.min'] = opts[:'source_links_in_count_min'] if !opts[:'source_links_in_count_min'].nil?
1843
2275
  query_params[:'source.links_in_count.max'] = opts[:'source_links_in_count_max'] if !opts[:'source_links_in_count_max'].nil?
1844
2276
  query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
@@ -1858,14 +2290,10 @@ module AylienNewsApi
1858
2290
 
1859
2291
  # header parameters
1860
2292
  header_params = {}
1861
-
1862
2293
  # HTTP header 'Accept' (if needed)
1863
- local_header_accept = ['application/json']
1864
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1865
-
2294
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml'])
1866
2295
  # HTTP header 'Content-Type'
1867
- local_header_content_type = ['application/x-www-form-urlencoded']
1868
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2296
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1869
2297
 
1870
2298
  # form parameters
1871
2299
  form_params = {}
@@ -1888,26 +2316,39 @@ module AylienNewsApi
1888
2316
 
1889
2317
  # List trends
1890
2318
  # This endpoint is used for finding trends based on stories.
2319
+ # @param field This parameter is used to specify the trend field.
1891
2320
  # @param [Hash] opts the optional parameters
1892
2321
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
2322
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
1893
2323
  # @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).
1894
2324
  # @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).
1895
2325
  # @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).
1896
2326
  # @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.
2327
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1897
2328
  # @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).
1898
2329
  # @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).
1899
2330
  # @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
2331
  # @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
2332
  # @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).
2333
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1902
2334
  # @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).
2335
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1903
2336
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2337
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1904
2338
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2339
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1905
2340
  # @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).
2341
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
2342
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2343
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1907
2344
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2345
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1908
2346
  # @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).
2347
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
1909
2348
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
2349
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1910
2350
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
2351
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
1911
2352
  # @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.
1912
2353
  # @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
2354
  # @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.
@@ -1917,20 +2358,33 @@ module AylienNewsApi
1917
2358
  # @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
2359
  # @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
2360
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
2361
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
1920
2362
  # @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.
1921
2363
  # @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.
1922
2364
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
2365
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
1923
2366
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
2367
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
1924
2368
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
2369
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
1925
2370
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
2371
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
1926
2372
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
2373
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
1927
2374
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
2375
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1928
2376
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
2377
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
1929
2378
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
2379
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
1930
2380
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
2381
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1931
2382
  # @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).
2383
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
1932
2384
  # @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).
2385
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
1933
2386
  # @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).
2387
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
1934
2388
  # @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
2389
  # @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
2390
  # @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).
@@ -1944,35 +2398,47 @@ module AylienNewsApi
1944
2398
  # @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
2399
  # @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
2400
  # @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.
1947
- # @option opts [String] :field This parameter is used to specify the trend field.
1948
2401
  # @return [Trends]
1949
- def list_trends(opts = {})
1950
- data, _status_code, _headers = list_trends_with_http_info(opts)
2402
+ def list_trends(field, opts = {})
2403
+ data, _status_code, _headers = list_trends_with_http_info(field, opts)
1951
2404
  return data
1952
2405
  end
1953
2406
 
1954
2407
  # List trends
1955
2408
  # This endpoint is used for finding trends based on stories.
2409
+ # @param field This parameter is used to specify the trend field.
1956
2410
  # @param [Hash] opts the optional parameters
1957
2411
  # @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
2412
+ # @option opts [Array<Integer>] :not_id This parameter is used for excluding stories by story id.
1958
2413
  # @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).
1959
2414
  # @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).
1960
2415
  # @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).
1961
2416
  # @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.
2417
+ # @option opts [Array<String>] :not_language This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
1962
2418
  # @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).
1963
2419
  # @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).
1964
2420
  # @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
2421
  # @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
2422
  # @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).
2423
+ # @option opts [Array<String>] :not_categories_id This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1967
2424
  # @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).
2425
+ # @option opts [Array<Integer>] :not_categories_level This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
1968
2426
  # @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2427
+ # @option opts [Array<String>] :not_entities_title_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1969
2428
  # @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2429
+ # @option opts [Array<String>] :not_entities_title_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1970
2430
  # @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).
2431
+ # @option opts [Array<String>] :not_entities_title_links_dbpedia This parameter is used to exclude 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
2432
  # @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2433
+ # @option opts [Array<String>] :not_entities_body_text This parameter is used to exclude stories based on the specified entities &#x60;text&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1972
2434
  # @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
2435
+ # @option opts [Array<String>] :not_entities_body_type This parameter is used to exclude stories based on the specified entities &#x60;type&#x60; in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
1973
2436
  # @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).
2437
+ # @option opts [Array<String>] :not_entities_body_links_dbpedia This parameter is used to exclude 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).
1974
2438
  # @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
2439
+ # @option opts [String] :not_sentiment_title_polarity This parameter is used for excluding stories whose title sentiment is the specified value.
1975
2440
  # @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
2441
+ # @option opts [String] :not_sentiment_body_polarity This parameter is used for excluding stories whose body sentiment is the specified value.
1976
2442
  # @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.
1977
2443
  # @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
2444
  # @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.
@@ -1982,20 +2448,33 @@ module AylienNewsApi
1982
2448
  # @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
2449
  # @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
2450
  # @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
2451
+ # @option opts [Array<String>] :not_media_images_format This parameter is used for excluding stories whose images format are the specified value.
1985
2452
  # @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.
1986
2453
  # @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.
1987
2454
  # @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
2455
+ # @option opts [Array<Integer>] :not_author_id This parameter is used for excluding stories whose author id is the specified value.
1988
2456
  # @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
2457
+ # @option opts [String] :not_author_name This parameter is used for excluding stories whose author full name contains the specified value.
1989
2458
  # @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
2459
+ # @option opts [Array<Integer>] :not_source_id This parameter is used for excluding stories whose source id is the specified value.
1990
2460
  # @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
2461
+ # @option opts [Array<String>] :not_source_name This parameter is used for excluding stories whose source name contains the specified value.
1991
2462
  # @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
2463
+ # @option opts [Array<String>] :not_source_domain This parameter is used for excluding stories whose source domain is the specified value.
1992
2464
  # @option opts [Array<String>] :source_locations_country This parameter is used for finding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
2465
+ # @option opts [Array<String>] :not_source_locations_country This parameter is used for excluding stories whose source country is the specified value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1993
2466
  # @option opts [Array<String>] :source_locations_state This parameter is used for finding stories whose source state/province is the specified 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).
2467
+ # @option opts [Array<String>] :not_source_locations_state This parameter is used for excluding stories whose source state/province is the specified 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).
1994
2468
  # @option opts [Array<String>] :source_locations_city This parameter is used for finding stories whose source city is the specified 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).
2469
+ # @option opts [Array<String>] :not_source_locations_city This parameter is used for excluding stories whose source city is the specified 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).
1995
2470
  # @option opts [Array<String>] :source_scopes_country This parameter is used for finding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
2471
+ # @option opts [Array<String>] :not_source_scopes_country This parameter is used for excluding stories whose source scopes is the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
1996
2472
  # @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).
2473
+ # @option opts [Array<String>] :not_source_scopes_state This parameter is used for excluding 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).
1997
2474
  # @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).
2475
+ # @option opts [Array<String>] :not_source_scopes_city This parameter is used for excluding 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).
1998
2476
  # @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).
2477
+ # @option opts [Array<String>] :not_source_scopes_level This parameter is used for excluding 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).
1999
2478
  # @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
2479
  # @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
2480
  # @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).
@@ -2009,145 +2488,175 @@ module AylienNewsApi
2009
2488
  # @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
2489
  # @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
2490
  # @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.
2012
- # @option opts [String] :field This parameter is used to specify the trend field.
2013
2491
  # @return [Array<(Trends, Fixnum, Hash)>] Trends data, response status code and response headers
2014
- def list_trends_with_http_info(opts = {})
2492
+ def list_trends_with_http_info(field, opts = {})
2015
2493
  if @api_client.config.debugging
2016
2494
  @api_client.config.logger.debug "Calling API: DefaultApi.list_trends ..."
2017
2495
  end
2496
+ # verify the required parameter 'field' is set
2497
+ fail ArgumentError, "Missing the required parameter 'field' when calling DefaultApi.list_trends" if field.nil?
2498
+ # verify enum value
2499
+ unless ['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?(field)
2500
+ fail ArgumentError, "invalid value for 'field', must be one of 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"
2501
+ end
2018
2502
  if opts[:'language'] && !opts[:'language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
2019
2503
  fail ArgumentError, 'invalid value for "language", must include one of en, de, fr, it, es, pt'
2020
2504
  end
2505
+ if opts[:'not_language'] && !opts[:'not_language'].all?{|item| ['en', 'de', 'fr', 'it', 'es', 'pt'].include?(item)}
2506
+ fail ArgumentError, 'invalid value for "not_language", must include one of en, de, fr, it, es, pt'
2507
+ end
2021
2508
  if opts[:'categories_taxonomy'] && !['iab-qag', 'iptc-subjectcode'].include?(opts[:'categories_taxonomy'])
2022
2509
  fail ArgumentError, 'invalid value for "categories_taxonomy", must be one of iab-qag, iptc-subjectcode'
2023
2510
  end
2024
2511
  if opts[:'sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_title_polarity'])
2025
2512
  fail ArgumentError, 'invalid value for "sentiment_title_polarity", must be one of positive, neutral, negative'
2026
2513
  end
2514
+ if opts[:'not_sentiment_title_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_title_polarity'])
2515
+ fail ArgumentError, 'invalid value for "not_sentiment_title_polarity", must be one of positive, neutral, negative'
2516
+ end
2027
2517
  if opts[:'sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'sentiment_body_polarity'])
2028
2518
  fail ArgumentError, 'invalid value for "sentiment_body_polarity", must be one of positive, neutral, negative'
2029
2519
  end
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.'
2520
+ if opts[:'not_sentiment_body_polarity'] && !['positive', 'neutral', 'negative'].include?(opts[:'not_sentiment_body_polarity'])
2521
+ fail ArgumentError, 'invalid value for "not_sentiment_body_polarity", must be one of positive, neutral, negative'
2522
+ end
2523
+ if !opts[:'media_images_count_min'].nil? && opts[:'media_images_count_min'] <= 0
2524
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2032
2525
  end
2033
2526
 
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.'
2527
+ if !opts[:'media_images_count_max'].nil? && opts[:'media_images_count_max'] <= 0
2528
+ fail ArgumentError, 'invalid value for "opts[:"media_images_count_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2036
2529
  end
2037
2530
 
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.'
2531
+ if !opts[:'media_images_width_min'].nil? && opts[:'media_images_width_min'] <= 0
2532
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2040
2533
  end
2041
2534
 
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.'
2535
+ if !opts[:'media_images_width_max'].nil? && opts[:'media_images_width_max'] <= 0
2536
+ fail ArgumentError, 'invalid value for "opts[:"media_images_width_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2044
2537
  end
2045
2538
 
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.'
2539
+ if !opts[:'media_images_height_min'].nil? && opts[:'media_images_height_min'] <= 0
2540
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2048
2541
  end
2049
2542
 
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.'
2543
+ if !opts[:'media_images_height_max'].nil? && opts[:'media_images_height_max'] <= 0
2544
+ fail ArgumentError, 'invalid value for "opts[:"media_images_height_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2052
2545
  end
2053
2546
 
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.'
2547
+ if !opts[:'media_images_content_length_min'].nil? && opts[:'media_images_content_length_min'] <= 0
2548
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2056
2549
  end
2057
2550
 
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.'
2551
+ if !opts[:'media_images_content_length_max'].nil? && opts[:'media_images_content_length_max'] <= 0
2552
+ fail ArgumentError, 'invalid value for "opts[:"media_images_content_length_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2060
2553
  end
2061
2554
 
2062
2555
  if opts[:'media_images_format'] && !opts[:'media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
2063
2556
  fail ArgumentError, 'invalid value for "media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
2064
2557
  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.'
2558
+ if opts[:'not_media_images_format'] && !opts[:'not_media_images_format'].all?{|item| ['BMP', 'GIF', 'JPEG', 'PNG', 'TIFF', 'PSD', 'ICO', 'CUR', 'WEBP', 'SVG'].include?(item)}
2559
+ fail ArgumentError, 'invalid value for "not_media_images_format", must include one of BMP, GIF, JPEG, PNG, TIFF, PSD, ICO, CUR, WEBP, SVG'
2560
+ end
2561
+ if !opts[:'media_videos_count_min'].nil? && opts[:'media_videos_count_min'] <= 0
2562
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2067
2563
  end
2068
2564
 
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.'
2565
+ if !opts[:'media_videos_count_max'].nil? && opts[:'media_videos_count_max'] <= 0
2566
+ fail ArgumentError, 'invalid value for "opts[:"media_videos_count_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2071
2567
  end
2072
2568
 
2073
2569
  if opts[:'source_scopes_level'] && !opts[:'source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
2074
2570
  fail ArgumentError, 'invalid value for "source_scopes_level", must include one of international, national, local'
2075
2571
  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.'
2572
+ if opts[:'not_source_scopes_level'] && !opts[:'not_source_scopes_level'].all?{|item| ['international', 'national', 'local'].include?(item)}
2573
+ fail ArgumentError, 'invalid value for "not_source_scopes_level", must include one of international, national, local'
2078
2574
  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.'
2575
+ if !opts[:'source_links_in_count_min'].nil? && opts[:'source_links_in_count_min'] <= 0
2576
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2082
2577
  end
2083
2578
 
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.'
2579
+ if !opts[:'source_links_in_count_max'].nil? && opts[:'source_links_in_count_max'] <= 0
2580
+ fail ArgumentError, 'invalid value for "opts[:"source_links_in_count_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2086
2581
  end
2087
2582
 
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.'
2583
+ if !opts[:'source_rankings_alexa_rank_min'].nil? && opts[:'source_rankings_alexa_rank_min'] <= 0
2584
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2090
2585
  end
2091
2586
 
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.'
2587
+ if !opts[:'source_rankings_alexa_rank_max'].nil? && opts[:'source_rankings_alexa_rank_max'] <= 0
2588
+ fail ArgumentError, 'invalid value for "opts[:"source_rankings_alexa_rank_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2094
2589
  end
2095
2590
 
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.'
2591
+ if !opts[:'social_shares_count_facebook_min'].nil? && opts[:'social_shares_count_facebook_min'] <= 0
2592
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2098
2593
  end
2099
2594
 
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.'
2595
+ if !opts[:'social_shares_count_facebook_max'].nil? && opts[:'social_shares_count_facebook_max'] <= 0
2596
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_facebook_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2102
2597
  end
2103
2598
 
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.'
2599
+ if !opts[:'social_shares_count_google_plus_min'].nil? && opts[:'social_shares_count_google_plus_min'] <= 0
2600
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2106
2601
  end
2107
2602
 
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.'
2603
+ if !opts[:'social_shares_count_google_plus_max'].nil? && opts[:'social_shares_count_google_plus_max'] <= 0
2604
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_google_plus_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2110
2605
  end
2111
2606
 
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.'
2607
+ if !opts[:'social_shares_count_linkedin_min'].nil? && opts[:'social_shares_count_linkedin_min'] <= 0
2608
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2114
2609
  end
2115
2610
 
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.'
2611
+ if !opts[:'social_shares_count_linkedin_max'].nil? && opts[:'social_shares_count_linkedin_max'] <= 0
2612
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_linkedin_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2118
2613
  end
2119
2614
 
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.'
2615
+ if !opts[:'social_shares_count_reddit_min'].nil? && opts[:'social_shares_count_reddit_min'] <= 0
2616
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_min"]" when calling DefaultApi.list_trends, must be greater than 0.'
2122
2617
  end
2123
2618
 
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'])
2125
- fail ArgumentError, 'invalid value for "field", must be one of 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'
2619
+ if !opts[:'social_shares_count_reddit_max'].nil? && opts[:'social_shares_count_reddit_max'] <= 0
2620
+ fail ArgumentError, 'invalid value for "opts[:"social_shares_count_reddit_max"]" when calling DefaultApi.list_trends, must be greater than 0.'
2126
2621
  end
2622
+
2127
2623
  # resource path
2128
2624
  local_var_path = "/trends".sub('{format}','json')
2129
2625
 
2130
2626
  # query parameters
2131
2627
  query_params = {}
2628
+ query_params[:'field'] = field
2132
2629
  query_params[:'id[]'] = @api_client.build_collection_param(opts[:'id'], :multi) if !opts[:'id'].nil?
2630
+ query_params[:'!id[]'] = @api_client.build_collection_param(opts[:'not_id'], :multi) if !opts[:'not_id'].nil?
2133
2631
  query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
2134
2632
  query_params[:'body'] = opts[:'body'] if !opts[:'body'].nil?
2135
2633
  query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
2136
2634
  query_params[:'language[]'] = @api_client.build_collection_param(opts[:'language'], :multi) if !opts[:'language'].nil?
2635
+ query_params[:'!language[]'] = @api_client.build_collection_param(opts[:'not_language'], :multi) if !opts[:'not_language'].nil?
2137
2636
  query_params[:'published_at.start'] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
2138
2637
  query_params[:'published_at.end'] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
2139
2638
  query_params[:'categories.taxonomy'] = opts[:'categories_taxonomy'] if !opts[:'categories_taxonomy'].nil?
2140
2639
  query_params[:'categories.confident'] = opts[:'categories_confident'] if !opts[:'categories_confident'].nil?
2141
2640
  query_params[:'categories.id[]'] = @api_client.build_collection_param(opts[:'categories_id'], :multi) if !opts[:'categories_id'].nil?
2641
+ query_params[:'!categories.id[]'] = @api_client.build_collection_param(opts[:'not_categories_id'], :multi) if !opts[:'not_categories_id'].nil?
2142
2642
  query_params[:'categories.level[]'] = @api_client.build_collection_param(opts[:'categories_level'], :multi) if !opts[:'categories_level'].nil?
2643
+ query_params[:'!categories.level[]'] = @api_client.build_collection_param(opts[:'not_categories_level'], :multi) if !opts[:'not_categories_level'].nil?
2143
2644
  query_params[:'entities.title.text[]'] = @api_client.build_collection_param(opts[:'entities_title_text'], :multi) if !opts[:'entities_title_text'].nil?
2645
+ query_params[:'!entities.title.text[]'] = @api_client.build_collection_param(opts[:'not_entities_title_text'], :multi) if !opts[:'not_entities_title_text'].nil?
2144
2646
  query_params[:'entities.title.type[]'] = @api_client.build_collection_param(opts[:'entities_title_type'], :multi) if !opts[:'entities_title_type'].nil?
2647
+ query_params[:'!entities.title.type[]'] = @api_client.build_collection_param(opts[:'not_entities_title_type'], :multi) if !opts[:'not_entities_title_type'].nil?
2145
2648
  query_params[:'entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_title_links_dbpedia'], :multi) if !opts[:'entities_title_links_dbpedia'].nil?
2649
+ query_params[:'!entities.title.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_title_links_dbpedia'], :multi) if !opts[:'not_entities_title_links_dbpedia'].nil?
2146
2650
  query_params[:'entities.body.text[]'] = @api_client.build_collection_param(opts[:'entities_body_text'], :multi) if !opts[:'entities_body_text'].nil?
2651
+ query_params[:'!entities.body.text[]'] = @api_client.build_collection_param(opts[:'not_entities_body_text'], :multi) if !opts[:'not_entities_body_text'].nil?
2147
2652
  query_params[:'entities.body.type[]'] = @api_client.build_collection_param(opts[:'entities_body_type'], :multi) if !opts[:'entities_body_type'].nil?
2653
+ query_params[:'!entities.body.type[]'] = @api_client.build_collection_param(opts[:'not_entities_body_type'], :multi) if !opts[:'not_entities_body_type'].nil?
2148
2654
  query_params[:'entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'entities_body_links_dbpedia'], :multi) if !opts[:'entities_body_links_dbpedia'].nil?
2655
+ query_params[:'!entities.body.links.dbpedia[]'] = @api_client.build_collection_param(opts[:'not_entities_body_links_dbpedia'], :multi) if !opts[:'not_entities_body_links_dbpedia'].nil?
2149
2656
  query_params[:'sentiment.title.polarity'] = opts[:'sentiment_title_polarity'] if !opts[:'sentiment_title_polarity'].nil?
2657
+ query_params[:'!sentiment.title.polarity'] = opts[:'not_sentiment_title_polarity'] if !opts[:'not_sentiment_title_polarity'].nil?
2150
2658
  query_params[:'sentiment.body.polarity'] = opts[:'sentiment_body_polarity'] if !opts[:'sentiment_body_polarity'].nil?
2659
+ query_params[:'!sentiment.body.polarity'] = opts[:'not_sentiment_body_polarity'] if !opts[:'not_sentiment_body_polarity'].nil?
2151
2660
  query_params[:'media.images.count.min'] = opts[:'media_images_count_min'] if !opts[:'media_images_count_min'].nil?
2152
2661
  query_params[:'media.images.count.max'] = opts[:'media_images_count_max'] if !opts[:'media_images_count_max'].nil?
2153
2662
  query_params[:'media.images.width.min'] = opts[:'media_images_width_min'] if !opts[:'media_images_width_min'].nil?
@@ -2157,20 +2666,33 @@ module AylienNewsApi
2157
2666
  query_params[:'media.images.content_length.min'] = opts[:'media_images_content_length_min'] if !opts[:'media_images_content_length_min'].nil?
2158
2667
  query_params[:'media.images.content_length.max'] = opts[:'media_images_content_length_max'] if !opts[:'media_images_content_length_max'].nil?
2159
2668
  query_params[:'media.images.format[]'] = @api_client.build_collection_param(opts[:'media_images_format'], :multi) if !opts[:'media_images_format'].nil?
2669
+ query_params[:'!media.images.format[]'] = @api_client.build_collection_param(opts[:'not_media_images_format'], :multi) if !opts[:'not_media_images_format'].nil?
2160
2670
  query_params[:'media.videos.count.min'] = opts[:'media_videos_count_min'] if !opts[:'media_videos_count_min'].nil?
2161
2671
  query_params[:'media.videos.count.max'] = opts[:'media_videos_count_max'] if !opts[:'media_videos_count_max'].nil?
2162
2672
  query_params[:'author.id[]'] = @api_client.build_collection_param(opts[:'author_id'], :multi) if !opts[:'author_id'].nil?
2673
+ query_params[:'!author.id[]'] = @api_client.build_collection_param(opts[:'not_author_id'], :multi) if !opts[:'not_author_id'].nil?
2163
2674
  query_params[:'author.name'] = opts[:'author_name'] if !opts[:'author_name'].nil?
2675
+ query_params[:'!author.name'] = opts[:'not_author_name'] if !opts[:'not_author_name'].nil?
2164
2676
  query_params[:'source.id[]'] = @api_client.build_collection_param(opts[:'source_id'], :multi) if !opts[:'source_id'].nil?
2677
+ query_params[:'!source.id[]'] = @api_client.build_collection_param(opts[:'not_source_id'], :multi) if !opts[:'not_source_id'].nil?
2165
2678
  query_params[:'source.name[]'] = @api_client.build_collection_param(opts[:'source_name'], :multi) if !opts[:'source_name'].nil?
2679
+ query_params[:'!source.name[]'] = @api_client.build_collection_param(opts[:'not_source_name'], :multi) if !opts[:'not_source_name'].nil?
2166
2680
  query_params[:'source.domain[]'] = @api_client.build_collection_param(opts[:'source_domain'], :multi) if !opts[:'source_domain'].nil?
2681
+ query_params[:'!source.domain[]'] = @api_client.build_collection_param(opts[:'not_source_domain'], :multi) if !opts[:'not_source_domain'].nil?
2167
2682
  query_params[:'source.locations.country[]'] = @api_client.build_collection_param(opts[:'source_locations_country'], :multi) if !opts[:'source_locations_country'].nil?
2683
+ query_params[:'!source.locations.country[]'] = @api_client.build_collection_param(opts[:'not_source_locations_country'], :multi) if !opts[:'not_source_locations_country'].nil?
2168
2684
  query_params[:'source.locations.state[]'] = @api_client.build_collection_param(opts[:'source_locations_state'], :multi) if !opts[:'source_locations_state'].nil?
2685
+ query_params[:'!source.locations.state[]'] = @api_client.build_collection_param(opts[:'not_source_locations_state'], :multi) if !opts[:'not_source_locations_state'].nil?
2169
2686
  query_params[:'source.locations.city[]'] = @api_client.build_collection_param(opts[:'source_locations_city'], :multi) if !opts[:'source_locations_city'].nil?
2687
+ query_params[:'!source.locations.city[]'] = @api_client.build_collection_param(opts[:'not_source_locations_city'], :multi) if !opts[:'not_source_locations_city'].nil?
2170
2688
  query_params[:'source.scopes.country[]'] = @api_client.build_collection_param(opts[:'source_scopes_country'], :multi) if !opts[:'source_scopes_country'].nil?
2689
+ query_params[:'!source.scopes.country[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_country'], :multi) if !opts[:'not_source_scopes_country'].nil?
2171
2690
  query_params[:'source.scopes.state[]'] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if !opts[:'source_scopes_state'].nil?
2691
+ query_params[:'!source.scopes.state[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_state'], :multi) if !opts[:'not_source_scopes_state'].nil?
2172
2692
  query_params[:'source.scopes.city[]'] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if !opts[:'source_scopes_city'].nil?
2693
+ query_params[:'!source.scopes.city[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_city'], :multi) if !opts[:'not_source_scopes_city'].nil?
2173
2694
  query_params[:'source.scopes.level[]'] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if !opts[:'source_scopes_level'].nil?
2695
+ query_params[:'!source.scopes.level[]'] = @api_client.build_collection_param(opts[:'not_source_scopes_level'], :multi) if !opts[:'not_source_scopes_level'].nil?
2174
2696
  query_params[:'source.links_in_count.min'] = opts[:'source_links_in_count_min'] if !opts[:'source_links_in_count_min'].nil?
2175
2697
  query_params[:'source.links_in_count.max'] = opts[:'source_links_in_count_max'] if !opts[:'source_links_in_count_max'].nil?
2176
2698
  query_params[:'source.rankings.alexa.rank.min'] = opts[:'source_rankings_alexa_rank_min'] if !opts[:'source_rankings_alexa_rank_min'].nil?
@@ -2184,18 +2706,13 @@ module AylienNewsApi
2184
2706
  query_params[:'social_shares_count.linkedin.max'] = opts[:'social_shares_count_linkedin_max'] if !opts[:'social_shares_count_linkedin_max'].nil?
2185
2707
  query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
2186
2708
  query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
2187
- query_params[:'field'] = opts[:'field'] if !opts[:'field'].nil?
2188
2709
 
2189
2710
  # header parameters
2190
2711
  header_params = {}
2191
-
2192
2712
  # HTTP header 'Accept' (if needed)
2193
- local_header_accept = ['application/json']
2194
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2195
-
2713
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/xml'])
2196
2714
  # HTTP header 'Content-Type'
2197
- local_header_content_type = ['application/x-www-form-urlencoded']
2198
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2715
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
2199
2716
 
2200
2717
  # form parameters
2201
2718
  form_params = {}