aylien_news_api 1.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +6 -0
- data/README.md +117 -4
- data/Rakefile +2 -0
- data/aylien_news_api.gemspec +16 -27
- data/docs/Author.md +12 -1
- data/docs/Autocomplete.md +10 -0
- data/docs/Autocompletes.md +9 -0
- data/docs/Category.md +17 -3
- data/docs/CategoryLinks.md +11 -1
- data/docs/Cluster.md +29 -0
- data/docs/Clusters.md +21 -0
- data/docs/Coverages.md +16 -4
- data/docs/DefaultApi.md +1250 -1117
- data/docs/Entities.md +11 -1
- data/docs/Entity.md +16 -3
- data/docs/EntityLinks.md +9 -0
- data/docs/Error.md +16 -2
- data/docs/ErrorLinks.md +9 -0
- data/docs/Errors.md +9 -0
- data/docs/HistogramInterval.md +10 -0
- data/docs/Histograms.md +16 -3
- data/docs/Location.md +13 -2
- data/docs/Media.md +17 -3
- data/docs/Rank.md +12 -1
- data/docs/Rankings.md +9 -0
- data/docs/RelatedStories.md +14 -3
- data/docs/RepresentativeStory.md +23 -0
- data/docs/Scope.md +14 -2
- data/docs/Sentiment.md +10 -0
- data/docs/Sentiments.md +12 -2
- data/docs/ShareCount.md +10 -0
- data/docs/ShareCounts.md +12 -0
- data/docs/Source.md +27 -8
- data/docs/Stories.md +11 -2
- data/docs/Story.md +48 -16
- data/docs/StoryCluster.md +14 -1
- data/docs/StoryLinks.md +14 -2
- data/docs/StoryTranslations.md +17 -0
- data/docs/StoryTranslationsEn.md +21 -0
- data/docs/Summary.md +9 -0
- data/docs/TimeSeries.md +11 -1
- data/docs/TimeSeriesList.md +15 -3
- data/docs/Trend.md +11 -1
- data/docs/Trends.md +11 -1
- data/git_push.sh +58 -0
- data/lib/aylien_news_api.rb +11 -10
- data/lib/aylien_news_api/api/default_api.rb +2065 -1801
- data/lib/aylien_news_api/api_client.rb +129 -108
- data/lib/aylien_news_api/api_error.rb +25 -10
- data/lib/aylien_news_api/configuration.rb +69 -33
- data/lib/aylien_news_api/models/author.rb +50 -46
- data/lib/aylien_news_api/models/autocomplete.rb +36 -32
- data/lib/aylien_news_api/models/autocompletes.rb +35 -31
- data/lib/aylien_news_api/models/category.rb +63 -59
- data/lib/aylien_news_api/models/category_links.rb +47 -43
- data/lib/aylien_news_api/models/cluster.rb +255 -0
- data/lib/aylien_news_api/models/clusters.rb +219 -0
- data/lib/aylien_news_api/models/coverages.rb +60 -68
- data/lib/aylien_news_api/models/entities.rb +48 -44
- data/lib/aylien_news_api/models/entity.rb +71 -69
- data/lib/aylien_news_api/models/entity_links.rb +35 -31
- data/lib/aylien_news_api/models/error.rb +60 -56
- data/lib/aylien_news_api/models/error_links.rb +35 -31
- data/lib/aylien_news_api/models/errors.rb +35 -31
- data/lib/aylien_news_api/models/histogram_interval.rb +36 -32
- data/lib/aylien_news_api/models/histograms.rb +62 -58
- data/lib/aylien_news_api/models/location.rb +51 -47
- data/lib/aylien_news_api/models/media.rb +81 -76
- data/lib/aylien_news_api/models/rank.rb +48 -44
- data/lib/aylien_news_api/models/rankings.rb +35 -31
- data/lib/aylien_news_api/models/related_stories.rb +53 -61
- data/lib/aylien_news_api/models/representative_story.rb +227 -0
- data/lib/aylien_news_api/models/scope.rb +59 -54
- data/lib/aylien_news_api/models/sentiment.rb +41 -37
- data/lib/aylien_news_api/models/sentiments.rb +46 -44
- data/lib/aylien_news_api/models/share_count.rb +36 -32
- data/lib/aylien_news_api/models/share_counts.rb +38 -34
- data/lib/aylien_news_api/models/source.rb +95 -92
- data/lib/aylien_news_api/models/stories.rb +47 -55
- data/lib/aylien_news_api/models/story.rb +172 -154
- data/lib/aylien_news_api/models/story_cluster.rb +52 -48
- data/lib/aylien_news_api/models/story_links.rb +58 -54
- data/lib/aylien_news_api/models/story_translations.rb +197 -0
- data/lib/aylien_news_api/models/story_translations_en.rb +217 -0
- data/lib/aylien_news_api/models/summary.rb +35 -31
- data/lib/aylien_news_api/models/time_series.rb +47 -43
- data/lib/aylien_news_api/models/time_series_list.rb +56 -52
- data/lib/aylien_news_api/models/trend.rb +47 -43
- data/lib/aylien_news_api/models/trends.rb +48 -44
- data/lib/aylien_news_api/version.rb +7 -11
- data/spec/api/default_api_spec.rb +569 -533
- data/spec/api_client_spec.rb +34 -76
- data/spec/configuration_spec.rb +14 -18
- data/spec/models/author_spec.rb +15 -18
- data/spec/models/autocomplete_spec.rb +11 -14
- data/spec/models/autocompletes_spec.rb +10 -13
- data/spec/models/category_links_spec.rb +13 -16
- data/spec/models/category_spec.rb +24 -27
- data/spec/models/cluster_spec.rb +77 -0
- data/spec/models/clusters_spec.rb +53 -0
- data/spec/models/coverages_spec.rb +17 -26
- data/spec/models/entities_spec.rb +13 -16
- data/spec/models/entity_links_spec.rb +10 -13
- data/spec/models/entity_spec.rb +19 -22
- data/spec/models/error_links_spec.rb +10 -13
- data/spec/models/error_spec.rb +21 -24
- data/spec/models/errors_spec.rb +10 -13
- data/spec/models/histogram_interval_spec.rb +11 -14
- data/spec/models/histograms_spec.rb +18 -21
- data/spec/models/location_spec.rb +15 -18
- data/spec/models/media_spec.rb +29 -32
- data/spec/models/rank_spec.rb +15 -18
- data/spec/models/rankings_spec.rb +10 -13
- data/spec/models/related_stories_spec.rb +15 -24
- data/spec/models/representative_story_spec.rb +59 -0
- data/spec/models/scope_spec.rb +21 -24
- data/spec/models/sentiment_spec.rb +15 -18
- data/spec/models/sentiments_spec.rb +13 -16
- data/spec/models/share_count_spec.rb +11 -14
- data/spec/models/share_counts_spec.rb +13 -16
- data/spec/models/source_spec.rb +29 -32
- data/spec/models/stories_spec.rb +13 -22
- data/spec/models/story_cluster_spec.rb +17 -20
- data/spec/models/story_links_spec.rb +17 -20
- data/spec/models/story_spec.rb +59 -50
- data/spec/models/story_translations_en_spec.rb +53 -0
- data/spec/models/story_translations_spec.rb +41 -0
- data/spec/models/summary_spec.rb +10 -13
- data/spec/models/time_series_list_spec.rb +16 -19
- data/spec/models/time_series_spec.rb +13 -16
- data/spec/models/trend_spec.rb +13 -16
- data/spec/models/trends_spec.rb +13 -16
- data/spec/spec_helper.rb +6 -10
- metadata +68 -194
@@ -1,19 +1,15 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
#AYLIEN News API
|
3
3
|
|
4
|
-
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
4
|
+
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
7
5
|
|
8
|
-
|
6
|
+
The version of the OpenAPI document: 3.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
9
10
|
|
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
11
|
=end
|
16
12
|
|
17
13
|
module AylienNewsApi
|
18
|
-
VERSION =
|
14
|
+
VERSION = '3.0.0'
|
19
15
|
end
|
@@ -1,27 +1,25 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
#AYLIEN News API
|
3
3
|
|
4
|
-
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
4
|
+
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
7
5
|
|
8
|
-
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
9
10
|
|
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
11
|
=end
|
16
12
|
|
17
13
|
require 'spec_helper'
|
18
14
|
require 'json'
|
19
15
|
|
20
16
|
# Unit tests for AylienNewsApi::DefaultApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
21
19
|
describe 'DefaultApi' do
|
22
20
|
before do
|
23
21
|
# run before each test
|
24
|
-
@
|
22
|
+
@api_instance = AylienNewsApi::DefaultApi.new
|
25
23
|
end
|
26
24
|
|
27
25
|
after do
|
@@ -29,601 +27,639 @@ describe 'DefaultApi' do
|
|
29
27
|
end
|
30
28
|
|
31
29
|
describe 'test an instance of DefaultApi' do
|
32
|
-
it 'should create an
|
33
|
-
expect(@
|
30
|
+
it 'should create an instance of DefaultApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AylienNewsApi::DefaultApi)
|
34
32
|
end
|
35
33
|
end
|
36
34
|
|
37
35
|
# unit tests for list_autocompletes
|
38
36
|
# List autocompletes
|
39
|
-
#
|
40
|
-
# @param type This parameter is used for defining the type of autocompletes.
|
41
|
-
# @param term This parameter is used for finding autocomplete objects that contain the specified value.
|
37
|
+
# The autocompletes endpoint a string of characters provided to it, and then returns suggested terms that are the most likely full words or strings. The terms returned by the News API are based on parameters the type parameters you can see below. For example, if you provide the autocompletes endpoint with the term `New York C` and select the type `dbpedia_resources`, the API will return links to the DBpedia resources `New_York_City`, `New_York_City_Subway`, `New_York_City_Police_Department`, and so on.
|
38
|
+
# @param type This parameter is used for defining the type of autocompletes.
|
39
|
+
# @param term This parameter is used for finding autocomplete objects that contain the specified value.
|
42
40
|
# @param [Hash] opts the optional parameters
|
43
|
-
# @option opts [String] :language This parameter is used for autocompletes whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
44
|
-
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
41
|
+
# @option opts [String] :language This parameter is used for autocompletes whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
42
|
+
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
45
43
|
# @return [Autocompletes]
|
46
44
|
describe 'list_autocompletes test' do
|
47
|
-
it
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for list_clusters
|
51
|
+
# List Clusters
|
52
|
+
# The clusters endpoint is used to return clusters based on parameters you set in your query.
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding clusters by cluster id.
|
55
|
+
# @option opts [Array<Integer>] :id2 This parameter is used for excluding clusters by cluster id.
|
56
|
+
# @option opts [Integer] :story_count_min This parameter is used for finding clusters with more than or equal to a specific amount of stories associated with them.
|
57
|
+
# @option opts [Integer] :story_count_max This parameter is used for finding clusters with less than or equal to a specific amount of stories associated with them.
|
58
|
+
# @option opts [String] :time_start This parameter is used for finding clusters whose creation 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).
|
59
|
+
# @option opts [String] :time_end This parameter is used for finding clusters whose creation 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).
|
60
|
+
# @option opts [String] :earliest_story_start This parameter is used for finding clusters whose publication date of its earliest story 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).
|
61
|
+
# @option opts [String] :earliest_story_end This parameter is used for finding clusters whose publication date of its earliest story is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
|
62
|
+
# @option opts [String] :latest_story_start This parameter is used for finding clusters whose publication date of its latest story 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).
|
63
|
+
# @option opts [String] :latest_story_end This parameter is used for finding clusters whose publication date of its latest story is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
|
64
|
+
# @option opts [Array<String>] :location_country This parameter is used for finding clusters belonging to a specific country. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
|
65
|
+
# @option opts [Array<String>] :location_country2 This parameter is used for excluding clusters belonging to a specific country. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. [Here](https://newsapi.aylien.com/docs/working-with-locations) you can find more information about how [to work with locations](https://newsapi.aylien.com/docs/working-with-locations).
|
66
|
+
# @return [Clusters]
|
67
|
+
describe 'list_clusters test' do
|
68
|
+
it 'should work' do
|
48
69
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
70
|
end
|
50
71
|
end
|
51
72
|
|
52
73
|
# unit tests for list_coverages
|
53
74
|
# List coverages
|
54
|
-
#
|
75
|
+
# The coverages endpoint allows you to understand the reach a document has had. For example, you can track the coverage of a press release or a Tweet based on how many times it has been mentioned in stories.
|
55
76
|
# @param [Hash] opts the optional parameters
|
56
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
57
|
-
# @option opts [Array<Integer>] :
|
58
|
-
# @option opts [String] :title This parameter is used for finding stories whose title contains a
|
59
|
-
# @option opts [String] :body This parameter is used for finding stories whose body contains a
|
60
|
-
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a
|
61
|
-
# @option opts [
|
62
|
-
# @option opts [
|
63
|
-
# @option opts [String] :
|
64
|
-
# @option opts [String] :
|
65
|
-
# @option opts [String] :
|
66
|
-
# @option opts [
|
67
|
-
# @option opts [
|
68
|
-
# @option opts [
|
69
|
-
# @option opts [
|
70
|
-
# @option opts [Array<
|
71
|
-
# @option opts [Array<String>] :
|
72
|
-
# @option opts [Array<
|
73
|
-
# @option opts [Array<
|
74
|
-
# @option opts [Array<String>] :
|
75
|
-
# @option opts [Array<String>] :
|
76
|
-
# @option opts [Array<String>] :
|
77
|
-
# @option opts [Array<String>] :
|
78
|
-
# @option opts [Array<String>] :
|
79
|
-
# @option opts [Array<String>] :
|
80
|
-
# @option opts [Array<String>] :
|
81
|
-
# @option opts [Array<String>] :
|
82
|
-
# @option opts [Array<String>] :
|
83
|
-
# @option opts [String] :
|
84
|
-
# @option opts [String] :
|
85
|
-
# @option opts [String] :
|
86
|
-
# @option opts [String] :
|
87
|
-
# @option opts [
|
88
|
-
# @option opts [
|
89
|
-
# @option opts [
|
90
|
-
# @option opts [Integer] :
|
91
|
-
# @option opts [Integer] :
|
92
|
-
# @option opts [Integer] :
|
93
|
-
# @option opts [Integer] :
|
94
|
-
# @option opts [Integer] :
|
95
|
-
# @option opts [
|
96
|
-
# @option opts [
|
97
|
-
# @option opts [Integer] :
|
98
|
-
# @option opts [
|
99
|
-
# @option opts [Array<
|
100
|
-
# @option opts [
|
101
|
-
# @option opts [
|
102
|
-
# @option opts [
|
103
|
-
# @option opts [Array<Integer>] :
|
104
|
-
# @option opts [
|
105
|
-
# @option opts [
|
106
|
-
# @option opts [Array<
|
107
|
-
# @option opts [Array<
|
108
|
-
# @option opts [Array<String>] :
|
109
|
-
# @option opts [Array<String>] :
|
110
|
-
# @option opts [Array<String>] :
|
111
|
-
# @option opts [Array<String>] :
|
112
|
-
# @option opts [Array<String>] :
|
113
|
-
# @option opts [Array<String>] :
|
114
|
-
# @option opts [Array<String>] :
|
115
|
-
# @option opts [Array<String>] :
|
116
|
-
# @option opts [Array<String>] :
|
117
|
-
# @option opts [Array<String>] :
|
118
|
-
# @option opts [Array<String>] :
|
119
|
-
# @option opts [Array<String>] :
|
120
|
-
# @option opts [Array<String>] :
|
121
|
-
# @option opts [Array<String>] :
|
122
|
-
# @option opts [Array<String>] :
|
123
|
-
# @option opts [
|
124
|
-
# @option opts [
|
125
|
-
# @option opts [
|
126
|
-
# @option opts [Integer] :
|
127
|
-
# @option opts [
|
128
|
-
# @option opts [Integer] :
|
129
|
-
# @option opts [Integer] :
|
130
|
-
# @option opts [
|
131
|
-
# @option opts [Integer] :
|
132
|
-
# @option opts [Integer] :
|
133
|
-
# @option opts [Integer] :
|
134
|
-
# @option opts [Integer] :
|
135
|
-
# @option opts [Integer] :
|
136
|
-
# @option opts [
|
137
|
-
# @option opts [
|
77
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
78
|
+
# @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
|
79
|
+
# @option opts [String] :title This parameter is used for finding stories whose title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
80
|
+
# @option opts [String] :body This parameter is used for finding stories whose body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
81
|
+
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
82
|
+
# @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
83
|
+
# @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
84
|
+
# @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
85
|
+
# @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
86
|
+
# @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
87
|
+
# @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).
|
88
|
+
# @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).
|
89
|
+
# @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).
|
90
|
+
# @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
91
|
+
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
92
|
+
# @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
93
|
+
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
94
|
+
# @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
95
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
96
|
+
# @option opts [Array<String>] :entities_title_text2 This parameter is used to exclude stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
97
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
98
|
+
# @option opts [Array<String>] :entities_title_type2 This parameter is used to exclude stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
99
|
+
# @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).
|
100
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia2 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).
|
101
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
102
|
+
# @option opts [Array<String>] :entities_body_text2 This parameter is used to exclude stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
103
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
104
|
+
# @option opts [Array<String>] :entities_body_type2 This parameter is used to exclude stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
105
|
+
# @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).
|
106
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia2 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).
|
107
|
+
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
108
|
+
# @option opts [String] :sentiment_title_polarity2 This parameter is used for excluding stories whose title sentiment is the specified value.
|
109
|
+
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
110
|
+
# @option opts [String] :sentiment_body_polarity2 This parameter is used for excluding stories whose body sentiment is the specified value.
|
111
|
+
# @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.
|
112
|
+
# @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.
|
113
|
+
# @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.
|
114
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
115
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
116
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
117
|
+
# @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.
|
118
|
+
# @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.
|
119
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
120
|
+
# @option opts [Array<String>] :media_images_format2 This parameter is used for excluding stories whose images format are the specified value.
|
121
|
+
# @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.
|
122
|
+
# @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.
|
123
|
+
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
124
|
+
# @option opts [Array<Integer>] :author_id2 This parameter is used for excluding stories whose author id is the specified value.
|
125
|
+
# @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
|
126
|
+
# @option opts [String] :author_name2 This parameter is used for excluding stories whose author full name contains the specified value.
|
127
|
+
# @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
|
128
|
+
# @option opts [Array<Integer>] :source_id2 This parameter is used for excluding stories whose source id is the specified value.
|
129
|
+
# @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
|
130
|
+
# @option opts [Array<String>] :source_name2 This parameter is used for excluding stories whose source name contains the specified value.
|
131
|
+
# @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
|
132
|
+
# @option opts [Array<String>] :source_domain2 This parameter is used for excluding stories whose source domain is the specified value.
|
133
|
+
# @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).
|
134
|
+
# @option opts [Array<String>] :source_locations_country2 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).
|
135
|
+
# @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).
|
136
|
+
# @option opts [Array<String>] :source_locations_state2 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).
|
137
|
+
# @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).
|
138
|
+
# @option opts [Array<String>] :source_locations_city2 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).
|
139
|
+
# @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).
|
140
|
+
# @option opts [Array<String>] :source_scopes_country2 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).
|
141
|
+
# @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).
|
142
|
+
# @option opts [Array<String>] :source_scopes_state2 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).
|
143
|
+
# @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).
|
144
|
+
# @option opts [Array<String>] :source_scopes_city2 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).
|
145
|
+
# @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).
|
146
|
+
# @option opts [Array<String>] :source_scopes_level2 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).
|
147
|
+
# @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).
|
148
|
+
# @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).
|
149
|
+
# @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).
|
150
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
151
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
152
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
153
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
154
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
155
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
156
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
157
|
+
# @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.
|
158
|
+
# @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
|
159
|
+
# @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
|
160
|
+
# @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
138
161
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
139
162
|
# @option opts [Integer] :story_id A story id
|
140
163
|
# @option opts [String] :story_url An article or webpage
|
141
164
|
# @option opts [String] :story_title Title of the article
|
142
165
|
# @option opts [String] :story_body Body of the article
|
143
|
-
# @option opts [DateTime] :story_published_at Publish date of the article. If you use a url or title and body of an article for getting coverages, this parameter is required. The format used is a restricted form of the canonical representation of dateTime in the [XML Schema specification (ISO 8601)](https://www.w3.org/TR/xmlschema-2/#dateTime).
|
144
|
-
# @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
145
|
-
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
166
|
+
# @option opts [DateTime] :story_published_at Publish date of the article. If you use a url or title and body of an article for getting coverages, this parameter is required. The format used is a restricted form of the canonical representation of dateTime in the [XML Schema specification (ISO 8601)](https://www.w3.org/TR/xmlschema-2/#dateTime).
|
167
|
+
# @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
168
|
+
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
146
169
|
# @return [Coverages]
|
147
170
|
describe 'list_coverages test' do
|
148
|
-
it
|
171
|
+
it 'should work' do
|
149
172
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
150
173
|
end
|
151
174
|
end
|
152
175
|
|
153
176
|
# unit tests for list_histograms
|
154
177
|
# List histograms
|
155
|
-
#
|
178
|
+
# For the numerical metadata that the News API gathers (such as word counts or social shares for example), you can use the histograms endpoint to access and display this information. As this endpoint does not return actual stories, the results you are given will not count towards your story allowance provided by your subscription, so you can effectively query this endpoint free of charge.
|
156
179
|
# @param [Hash] opts the optional parameters
|
157
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
158
|
-
# @option opts [Array<Integer>] :
|
159
|
-
# @option opts [String] :title This parameter is used for finding stories whose title contains a
|
160
|
-
# @option opts [String] :body This parameter is used for finding stories whose body contains a
|
161
|
-
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a
|
162
|
-
# @option opts [
|
163
|
-
# @option opts [
|
164
|
-
# @option opts [String] :
|
165
|
-
# @option opts [String] :
|
166
|
-
# @option opts [String] :
|
167
|
-
# @option opts [
|
168
|
-
# @option opts [
|
169
|
-
# @option opts [
|
170
|
-
# @option opts [
|
171
|
-
# @option opts [Array<
|
172
|
-
# @option opts [Array<String>] :
|
173
|
-
# @option opts [Array<
|
174
|
-
# @option opts [Array<
|
175
|
-
# @option opts [Array<String>] :
|
176
|
-
# @option opts [Array<String>] :
|
177
|
-
# @option opts [Array<String>] :
|
178
|
-
# @option opts [Array<String>] :
|
179
|
-
# @option opts [Array<String>] :
|
180
|
-
# @option opts [Array<String>] :
|
181
|
-
# @option opts [Array<String>] :
|
182
|
-
# @option opts [Array<String>] :
|
183
|
-
# @option opts [Array<String>] :
|
184
|
-
# @option opts [String] :
|
185
|
-
# @option opts [String] :
|
186
|
-
# @option opts [String] :
|
187
|
-
# @option opts [String] :
|
188
|
-
# @option opts [
|
189
|
-
# @option opts [
|
190
|
-
# @option opts [
|
191
|
-
# @option opts [Integer] :
|
192
|
-
# @option opts [Integer] :
|
193
|
-
# @option opts [Integer] :
|
194
|
-
# @option opts [Integer] :
|
195
|
-
# @option opts [Integer] :
|
196
|
-
# @option opts [
|
197
|
-
# @option opts [
|
198
|
-
# @option opts [Integer] :
|
199
|
-
# @option opts [
|
200
|
-
# @option opts [Array<
|
201
|
-
# @option opts [
|
202
|
-
# @option opts [
|
203
|
-
# @option opts [
|
204
|
-
# @option opts [Array<Integer>] :
|
205
|
-
# @option opts [
|
206
|
-
# @option opts [
|
207
|
-
# @option opts [Array<
|
208
|
-
# @option opts [Array<
|
209
|
-
# @option opts [Array<String>] :
|
210
|
-
# @option opts [Array<String>] :
|
211
|
-
# @option opts [Array<String>] :
|
212
|
-
# @option opts [Array<String>] :
|
213
|
-
# @option opts [Array<String>] :
|
214
|
-
# @option opts [Array<String>] :
|
215
|
-
# @option opts [Array<String>] :
|
216
|
-
# @option opts [Array<String>] :
|
217
|
-
# @option opts [Array<String>] :
|
218
|
-
# @option opts [Array<String>] :
|
219
|
-
# @option opts [Array<String>] :
|
220
|
-
# @option opts [Array<String>] :
|
221
|
-
# @option opts [Array<String>] :
|
222
|
-
# @option opts [Array<String>] :
|
223
|
-
# @option opts [Array<String>] :
|
224
|
-
# @option opts [
|
225
|
-
# @option opts [
|
226
|
-
# @option opts [
|
227
|
-
# @option opts [Integer] :
|
228
|
-
# @option opts [
|
229
|
-
# @option opts [Integer] :
|
230
|
-
# @option opts [Integer] :
|
231
|
-
# @option opts [
|
232
|
-
# @option opts [Integer] :
|
233
|
-
# @option opts [Integer] :
|
234
|
-
# @option opts [Integer] :
|
235
|
-
# @option opts [Integer] :
|
236
|
-
# @option opts [Integer] :
|
237
|
-
# @option opts [Integer] :
|
238
|
-
# @option opts [Integer] :
|
239
|
-
# @option opts [Integer] :
|
240
|
-
# @option opts [
|
180
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
181
|
+
# @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
|
182
|
+
# @option opts [String] :title This parameter is used for finding stories whose title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
183
|
+
# @option opts [String] :body This parameter is used for finding stories whose body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
184
|
+
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
185
|
+
# @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
186
|
+
# @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
187
|
+
# @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
188
|
+
# @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
189
|
+
# @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
190
|
+
# @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).
|
191
|
+
# @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).
|
192
|
+
# @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).
|
193
|
+
# @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
194
|
+
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
195
|
+
# @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
196
|
+
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
197
|
+
# @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
198
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
199
|
+
# @option opts [Array<String>] :entities_title_text2 This parameter is used to exclude stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
200
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
201
|
+
# @option opts [Array<String>] :entities_title_type2 This parameter is used to exclude stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
202
|
+
# @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).
|
203
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia2 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
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
205
|
+
# @option opts [Array<String>] :entities_body_text2 This parameter is used to exclude stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
206
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
207
|
+
# @option opts [Array<String>] :entities_body_type2 This parameter is used to exclude stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
208
|
+
# @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).
|
209
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia2 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).
|
210
|
+
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
211
|
+
# @option opts [String] :sentiment_title_polarity2 This parameter is used for excluding stories whose title sentiment is the specified value.
|
212
|
+
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
213
|
+
# @option opts [String] :sentiment_body_polarity2 This parameter is used for excluding stories whose body sentiment is the specified value.
|
214
|
+
# @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.
|
215
|
+
# @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.
|
216
|
+
# @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.
|
217
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
218
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
219
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
220
|
+
# @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.
|
221
|
+
# @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.
|
222
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
223
|
+
# @option opts [Array<String>] :media_images_format2 This parameter is used for excluding stories whose images format are the specified value.
|
224
|
+
# @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.
|
225
|
+
# @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.
|
226
|
+
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
227
|
+
# @option opts [Array<Integer>] :author_id2 This parameter is used for excluding stories whose author id is the specified value.
|
228
|
+
# @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
|
229
|
+
# @option opts [String] :author_name2 This parameter is used for excluding stories whose author full name contains the specified value.
|
230
|
+
# @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
|
231
|
+
# @option opts [Array<Integer>] :source_id2 This parameter is used for excluding stories whose source id is the specified value.
|
232
|
+
# @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
|
233
|
+
# @option opts [Array<String>] :source_name2 This parameter is used for excluding stories whose source name contains the specified value.
|
234
|
+
# @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
|
235
|
+
# @option opts [Array<String>] :source_domain2 This parameter is used for excluding stories whose source domain is the specified value.
|
236
|
+
# @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).
|
237
|
+
# @option opts [Array<String>] :source_locations_country2 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).
|
238
|
+
# @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).
|
239
|
+
# @option opts [Array<String>] :source_locations_state2 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).
|
240
|
+
# @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).
|
241
|
+
# @option opts [Array<String>] :source_locations_city2 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).
|
242
|
+
# @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).
|
243
|
+
# @option opts [Array<String>] :source_scopes_country2 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).
|
244
|
+
# @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).
|
245
|
+
# @option opts [Array<String>] :source_scopes_state2 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).
|
246
|
+
# @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).
|
247
|
+
# @option opts [Array<String>] :source_scopes_city2 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).
|
248
|
+
# @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).
|
249
|
+
# @option opts [Array<String>] :source_scopes_level2 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).
|
250
|
+
# @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).
|
251
|
+
# @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).
|
252
|
+
# @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).
|
253
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
254
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
255
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
256
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
257
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
258
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
259
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
260
|
+
# @option opts [Integer] :social_shares_count_linkedin_max This parameter is used for finding stories whose LinkedIn social shares count is less than or equal to the specified value.
|
261
|
+
# @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
|
262
|
+
# @option opts [Integer] :social_shares_count_reddit_max This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
|
263
|
+
# @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
|
264
|
+
# @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
|
265
|
+
# @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
|
266
|
+
# @option opts [String] :field This parameter is used for specifying the y-axis variable for the histogram.
|
241
267
|
# @return [Histograms]
|
242
268
|
describe 'list_histograms test' do
|
243
|
-
it
|
269
|
+
it 'should work' do
|
244
270
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
245
271
|
end
|
246
272
|
end
|
247
273
|
|
248
274
|
# unit tests for list_related_stories
|
249
275
|
# List related stories
|
250
|
-
# This endpoint is used for finding
|
276
|
+
# This endpoint is used for finding semantically similar stories based on the parameters you provide as inputs. For example, if you want to find stories similar to a Tweet or any text extract you input, the related stories endpoint will analyze the entities present and the meaning of the text, and find stories with a similar meaning. The maximum number of related stories returned is 100.
|
251
277
|
# @param [Hash] opts the optional parameters
|
252
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
253
|
-
# @option opts [Array<Integer>] :
|
254
|
-
# @option opts [String] :title This parameter is used for finding stories whose title contains a
|
255
|
-
# @option opts [String] :body This parameter is used for finding stories whose body contains a
|
256
|
-
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a
|
257
|
-
# @option opts [
|
258
|
-
# @option opts [
|
259
|
-
# @option opts [String] :
|
260
|
-
# @option opts [String] :
|
261
|
-
# @option opts [String] :
|
262
|
-
# @option opts [
|
263
|
-
# @option opts [
|
264
|
-
# @option opts [
|
265
|
-
# @option opts [
|
266
|
-
# @option opts [Array<
|
267
|
-
# @option opts [Array<String>] :
|
268
|
-
# @option opts [Array<
|
269
|
-
# @option opts [Array<
|
270
|
-
# @option opts [Array<String>] :
|
271
|
-
# @option opts [Array<String>] :
|
272
|
-
# @option opts [Array<String>] :
|
273
|
-
# @option opts [Array<String>] :
|
274
|
-
# @option opts [Array<String>] :
|
275
|
-
# @option opts [Array<String>] :
|
276
|
-
# @option opts [Array<String>] :
|
277
|
-
# @option opts [Array<String>] :
|
278
|
-
# @option opts [Array<String>] :
|
279
|
-
# @option opts [String] :
|
280
|
-
# @option opts [String] :
|
281
|
-
# @option opts [String] :
|
282
|
-
# @option opts [String] :
|
283
|
-
# @option opts [
|
284
|
-
# @option opts [
|
285
|
-
# @option opts [
|
286
|
-
# @option opts [Integer] :
|
287
|
-
# @option opts [Integer] :
|
288
|
-
# @option opts [Integer] :
|
289
|
-
# @option opts [Integer] :
|
290
|
-
# @option opts [Integer] :
|
291
|
-
# @option opts [
|
292
|
-
# @option opts [
|
293
|
-
# @option opts [Integer] :
|
294
|
-
# @option opts [
|
295
|
-
# @option opts [Array<
|
296
|
-
# @option opts [
|
297
|
-
# @option opts [
|
298
|
-
# @option opts [
|
299
|
-
# @option opts [Array<Integer>] :
|
300
|
-
# @option opts [
|
301
|
-
# @option opts [
|
302
|
-
# @option opts [Array<
|
303
|
-
# @option opts [Array<
|
304
|
-
# @option opts [Array<String>] :
|
305
|
-
# @option opts [Array<String>] :
|
306
|
-
# @option opts [Array<String>] :
|
307
|
-
# @option opts [Array<String>] :
|
308
|
-
# @option opts [Array<String>] :
|
309
|
-
# @option opts [Array<String>] :
|
310
|
-
# @option opts [Array<String>] :
|
311
|
-
# @option opts [Array<String>] :
|
312
|
-
# @option opts [Array<String>] :
|
313
|
-
# @option opts [Array<String>] :
|
314
|
-
# @option opts [Array<String>] :
|
315
|
-
# @option opts [Array<String>] :
|
316
|
-
# @option opts [Array<String>] :
|
317
|
-
# @option opts [Array<String>] :
|
318
|
-
# @option opts [Array<String>] :
|
319
|
-
# @option opts [
|
320
|
-
# @option opts [
|
321
|
-
# @option opts [
|
322
|
-
# @option opts [Integer] :
|
323
|
-
# @option opts [
|
324
|
-
# @option opts [Integer] :
|
325
|
-
# @option opts [Integer] :
|
326
|
-
# @option opts [
|
327
|
-
# @option opts [Integer] :
|
328
|
-
# @option opts [Integer] :
|
329
|
-
# @option opts [Integer] :
|
330
|
-
# @option opts [Integer] :
|
331
|
-
# @option opts [Integer] :
|
332
|
-
# @option opts [
|
333
|
-
# @option opts [
|
278
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
279
|
+
# @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
|
280
|
+
# @option opts [String] :title This parameter is used for finding stories whose title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
281
|
+
# @option opts [String] :body This parameter is used for finding stories whose body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
282
|
+
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
283
|
+
# @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
284
|
+
# @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
285
|
+
# @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
286
|
+
# @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
287
|
+
# @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
288
|
+
# @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).
|
289
|
+
# @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).
|
290
|
+
# @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).
|
291
|
+
# @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
292
|
+
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
293
|
+
# @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
294
|
+
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
295
|
+
# @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
296
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
297
|
+
# @option opts [Array<String>] :entities_title_text2 This parameter is used to exclude stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
298
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
299
|
+
# @option opts [Array<String>] :entities_title_type2 This parameter is used to exclude stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
300
|
+
# @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).
|
301
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia2 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).
|
302
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
303
|
+
# @option opts [Array<String>] :entities_body_text2 This parameter is used to exclude stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
304
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
305
|
+
# @option opts [Array<String>] :entities_body_type2 This parameter is used to exclude stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
306
|
+
# @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).
|
307
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia2 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).
|
308
|
+
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
309
|
+
# @option opts [String] :sentiment_title_polarity2 This parameter is used for excluding stories whose title sentiment is the specified value.
|
310
|
+
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
311
|
+
# @option opts [String] :sentiment_body_polarity2 This parameter is used for excluding stories whose body sentiment is the specified value.
|
312
|
+
# @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.
|
313
|
+
# @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.
|
314
|
+
# @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.
|
315
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
316
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
317
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
318
|
+
# @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.
|
319
|
+
# @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.
|
320
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
321
|
+
# @option opts [Array<String>] :media_images_format2 This parameter is used for excluding stories whose images format are the specified value.
|
322
|
+
# @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.
|
323
|
+
# @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.
|
324
|
+
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
325
|
+
# @option opts [Array<Integer>] :author_id2 This parameter is used for excluding stories whose author id is the specified value.
|
326
|
+
# @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
|
327
|
+
# @option opts [String] :author_name2 This parameter is used for excluding stories whose author full name contains the specified value.
|
328
|
+
# @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
|
329
|
+
# @option opts [Array<Integer>] :source_id2 This parameter is used for excluding stories whose source id is the specified value.
|
330
|
+
# @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
|
331
|
+
# @option opts [Array<String>] :source_name2 This parameter is used for excluding stories whose source name contains the specified value.
|
332
|
+
# @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
|
333
|
+
# @option opts [Array<String>] :source_domain2 This parameter is used for excluding stories whose source domain is the specified value.
|
334
|
+
# @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).
|
335
|
+
# @option opts [Array<String>] :source_locations_country2 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).
|
336
|
+
# @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).
|
337
|
+
# @option opts [Array<String>] :source_locations_state2 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).
|
338
|
+
# @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).
|
339
|
+
# @option opts [Array<String>] :source_locations_city2 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).
|
340
|
+
# @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).
|
341
|
+
# @option opts [Array<String>] :source_scopes_country2 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).
|
342
|
+
# @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).
|
343
|
+
# @option opts [Array<String>] :source_scopes_state2 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).
|
344
|
+
# @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).
|
345
|
+
# @option opts [Array<String>] :source_scopes_city2 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).
|
346
|
+
# @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).
|
347
|
+
# @option opts [Array<String>] :source_scopes_level2 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).
|
348
|
+
# @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).
|
349
|
+
# @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).
|
350
|
+
# @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).
|
351
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
352
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
353
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
354
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
355
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
356
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
357
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
358
|
+
# @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.
|
359
|
+
# @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.
|
360
|
+
# @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.
|
361
|
+
# @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
334
362
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
335
363
|
# @option opts [Integer] :story_id A story id
|
336
364
|
# @option opts [String] :story_url An article or webpage
|
337
365
|
# @option opts [String] :story_title Title of the article
|
338
366
|
# @option opts [String] :story_body Body of the article
|
339
|
-
# @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
|
340
|
-
# @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
341
|
-
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
367
|
+
# @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
|
368
|
+
# @option opts [String] :story_language This parameter is used for setting the language of the story. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
369
|
+
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
342
370
|
# @return [RelatedStories]
|
343
371
|
describe 'list_related_stories test' do
|
344
|
-
it
|
372
|
+
it 'should work' do
|
345
373
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
346
374
|
end
|
347
375
|
end
|
348
376
|
|
349
377
|
# unit tests for list_stories
|
350
378
|
# List Stories
|
351
|
-
#
|
379
|
+
# The stories endpoint is used to return stories based on parameters you set in your query. The News API crawler gathers articles in near real-time and stores information about them, or metadata. Below you can see all of the query parameters, which you can use to narrow down your query.
|
352
380
|
# @param [Hash] opts the optional parameters
|
353
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
354
|
-
# @option opts [Array<Integer>] :
|
355
|
-
# @option opts [String] :title This parameter is used for finding stories whose title contains a
|
356
|
-
# @option opts [String] :body This parameter is used for finding stories whose body contains a
|
357
|
-
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a
|
358
|
-
# @option opts [
|
359
|
-
# @option opts [
|
360
|
-
# @option opts [String] :
|
361
|
-
# @option opts [String] :
|
362
|
-
# @option opts [String] :
|
363
|
-
# @option opts [
|
364
|
-
# @option opts [
|
365
|
-
# @option opts [
|
366
|
-
# @option opts [
|
367
|
-
# @option opts [Array<
|
368
|
-
# @option opts [Array<String>] :
|
369
|
-
# @option opts [Array<
|
370
|
-
# @option opts [Array<
|
371
|
-
# @option opts [Array<String>] :
|
372
|
-
# @option opts [Array<String>] :
|
373
|
-
# @option opts [Array<String>] :
|
374
|
-
# @option opts [Array<String>] :
|
375
|
-
# @option opts [Array<String>] :
|
376
|
-
# @option opts [Array<String>] :
|
377
|
-
# @option opts [Array<String>] :
|
378
|
-
# @option opts [Array<String>] :
|
379
|
-
# @option opts [Array<String>] :
|
380
|
-
# @option opts [String] :
|
381
|
-
# @option opts [String] :
|
382
|
-
# @option opts [String] :
|
383
|
-
# @option opts [String] :
|
384
|
-
# @option opts [
|
385
|
-
# @option opts [
|
386
|
-
# @option opts [
|
387
|
-
# @option opts [Integer] :
|
388
|
-
# @option opts [Integer] :
|
389
|
-
# @option opts [Integer] :
|
390
|
-
# @option opts [Integer] :
|
391
|
-
# @option opts [Integer] :
|
392
|
-
# @option opts [
|
393
|
-
# @option opts [
|
394
|
-
# @option opts [Integer] :
|
395
|
-
# @option opts [
|
396
|
-
# @option opts [Array<
|
397
|
-
# @option opts [
|
398
|
-
# @option opts [
|
399
|
-
# @option opts [
|
400
|
-
# @option opts [Array<Integer>] :
|
401
|
-
# @option opts [
|
402
|
-
# @option opts [
|
403
|
-
# @option opts [Array<
|
404
|
-
# @option opts [Array<
|
405
|
-
# @option opts [Array<String>] :
|
406
|
-
# @option opts [Array<String>] :
|
407
|
-
# @option opts [Array<String>] :
|
408
|
-
# @option opts [Array<String>] :
|
409
|
-
# @option opts [Array<String>] :
|
410
|
-
# @option opts [Array<String>] :
|
411
|
-
# @option opts [Array<String>] :
|
412
|
-
# @option opts [Array<String>] :
|
413
|
-
# @option opts [Array<String>] :
|
414
|
-
# @option opts [Array<String>] :
|
415
|
-
# @option opts [Array<String>] :
|
416
|
-
# @option opts [Array<String>] :
|
417
|
-
# @option opts [Array<String>] :
|
418
|
-
# @option opts [Array<String>] :
|
419
|
-
# @option opts [Array<String>] :
|
420
|
-
# @option opts [
|
421
|
-
# @option opts [
|
422
|
-
# @option opts [
|
423
|
-
# @option opts [Integer] :
|
424
|
-
# @option opts [
|
425
|
-
# @option opts [Integer] :
|
426
|
-
# @option opts [Integer] :
|
427
|
-
# @option opts [
|
428
|
-
# @option opts [Integer] :
|
429
|
-
# @option opts [Integer] :
|
430
|
-
# @option opts [Integer] :
|
431
|
-
# @option opts [Integer] :
|
432
|
-
# @option opts [Integer] :
|
433
|
-
# @option opts [
|
434
|
-
# @option opts [
|
381
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
382
|
+
# @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
|
383
|
+
# @option opts [String] :title This parameter is used for finding stories whose title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
384
|
+
# @option opts [String] :body This parameter is used for finding stories whose body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
385
|
+
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
386
|
+
# @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
387
|
+
# @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
388
|
+
# @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
389
|
+
# @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
390
|
+
# @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
391
|
+
# @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
|
392
|
+
# @option opts [String] :published_at_end This parameter is used for finding stories whose published at time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
|
393
|
+
# @option opts [String] :categories_taxonomy This parameter is used for defining the type of the taxonomy for the rest of the categories queries. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
394
|
+
# @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
395
|
+
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
396
|
+
# @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
397
|
+
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
398
|
+
# @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
399
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
400
|
+
# @option opts [Array<String>] :entities_title_text2 This parameter is used to exclude stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
401
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
402
|
+
# @option opts [Array<String>] :entities_title_type2 This parameter is used to exclude stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
403
|
+
# @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).
|
404
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia2 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).
|
405
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
406
|
+
# @option opts [Array<String>] :entities_body_text2 This parameter is used to exclude stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
407
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
408
|
+
# @option opts [Array<String>] :entities_body_type2 This parameter is used to exclude stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
409
|
+
# @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).
|
410
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia2 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).
|
411
|
+
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
412
|
+
# @option opts [String] :sentiment_title_polarity2 This parameter is used for excluding stories whose title sentiment is the specified value.
|
413
|
+
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
414
|
+
# @option opts [String] :sentiment_body_polarity2 This parameter is used for excluding stories whose body sentiment is the specified value.
|
415
|
+
# @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.
|
416
|
+
# @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.
|
417
|
+
# @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.
|
418
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
419
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
420
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
421
|
+
# @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.
|
422
|
+
# @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.
|
423
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
424
|
+
# @option opts [Array<String>] :media_images_format2 This parameter is used for excluding stories whose images format are the specified value.
|
425
|
+
# @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.
|
426
|
+
# @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.
|
427
|
+
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
428
|
+
# @option opts [Array<Integer>] :author_id2 This parameter is used for excluding stories whose author id is the specified value.
|
429
|
+
# @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
|
430
|
+
# @option opts [String] :author_name2 This parameter is used for excluding stories whose author full name contains the specified value.
|
431
|
+
# @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
|
432
|
+
# @option opts [Array<Integer>] :source_id2 This parameter is used for excluding stories whose source id is the specified value.
|
433
|
+
# @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
|
434
|
+
# @option opts [Array<String>] :source_name2 This parameter is used for excluding stories whose source name contains the specified value.
|
435
|
+
# @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
|
436
|
+
# @option opts [Array<String>] :source_domain2 This parameter is used for excluding stories whose source domain is the specified value.
|
437
|
+
# @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).
|
438
|
+
# @option opts [Array<String>] :source_locations_country2 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).
|
439
|
+
# @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).
|
440
|
+
# @option opts [Array<String>] :source_locations_state2 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).
|
441
|
+
# @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).
|
442
|
+
# @option opts [Array<String>] :source_locations_city2 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).
|
443
|
+
# @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).
|
444
|
+
# @option opts [Array<String>] :source_scopes_country2 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).
|
445
|
+
# @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).
|
446
|
+
# @option opts [Array<String>] :source_scopes_state2 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).
|
447
|
+
# @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).
|
448
|
+
# @option opts [Array<String>] :source_scopes_city2 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).
|
449
|
+
# @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).
|
450
|
+
# @option opts [Array<String>] :source_scopes_level2 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).
|
451
|
+
# @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).
|
452
|
+
# @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).
|
453
|
+
# @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).
|
454
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
455
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
456
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
457
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
458
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
459
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
460
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
461
|
+
# @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.
|
462
|
+
# @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.
|
463
|
+
# @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.
|
464
|
+
# @option opts [Array<String>] :clusters This parameter is used for finding stories with belonging to one of clusters in a specific set of clusters You can read more about working with clustering [here](https://newsapi.aylien.com/docs/working-with-clustering).
|
435
465
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
436
|
-
# @option opts [String] :sort_by This parameter is used for changing the order column of the results.
|
437
|
-
# @option opts [String] :sort_direction This parameter is used for changing the order direction of the result.
|
438
|
-
# @option opts [String] :cursor This parameter is used for finding a specific page. You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results).
|
439
|
-
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results)
|
466
|
+
# @option opts [String] :sort_by This parameter is used for changing the order column of the results. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results).
|
467
|
+
# @option opts [String] :sort_direction This parameter is used for changing the order direction of the result. You can read about sorting results [here](https://newsapi.aylien.com/docs/sorting-results).
|
468
|
+
# @option opts [String] :cursor This parameter is used for finding a specific page. You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results).
|
469
|
+
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results)
|
440
470
|
# @return [Stories]
|
441
471
|
describe 'list_stories test' do
|
442
|
-
it
|
472
|
+
it 'should work' do
|
443
473
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
444
474
|
end
|
445
475
|
end
|
446
476
|
|
447
477
|
# unit tests for list_time_series
|
448
478
|
# List time series
|
449
|
-
#
|
479
|
+
# The time series endpoint allows you to track information contained in stories over time. This information can be anything from mentions of a topic or entities, sentiment about a topic, or the volume of stories published by a source, to name but a few. The full list of parameters is given below. Using the [Date Math Syntax](https://newsapi.aylien.com/docs/working-with-dates), you can easily set your query to return information from any time period, from the current point in time to when the News API started collecting stories. The returned information can be rounded to a time also specified by you, for example by setting the results into hourly, daily, or weekly data points.
|
450
480
|
# @param [Hash] opts the optional parameters
|
451
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
452
|
-
# @option opts [Array<Integer>] :
|
453
|
-
# @option opts [String] :title This parameter is used for finding stories whose title contains a
|
454
|
-
# @option opts [String] :body This parameter is used for finding stories whose body contains a
|
455
|
-
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a
|
456
|
-
# @option opts [
|
457
|
-
# @option opts [
|
458
|
-
# @option opts [String] :
|
459
|
-
# @option opts [
|
460
|
-
# @option opts [Array<String>] :
|
461
|
-
# @option opts [
|
462
|
-
# @option opts [
|
463
|
-
# @option opts [Array<
|
464
|
-
# @option opts [Array<String>] :
|
465
|
-
# @option opts [Array<
|
466
|
-
# @option opts [Array<
|
467
|
-
# @option opts [Array<String>] :
|
468
|
-
# @option opts [Array<String>] :
|
469
|
-
# @option opts [Array<String>] :
|
470
|
-
# @option opts [Array<String>] :
|
471
|
-
# @option opts [Array<String>] :
|
472
|
-
# @option opts [Array<String>] :
|
473
|
-
# @option opts [Array<String>] :
|
474
|
-
# @option opts [Array<String>] :
|
475
|
-
# @option opts [Array<String>] :
|
476
|
-
# @option opts [String] :
|
477
|
-
# @option opts [String] :
|
478
|
-
# @option opts [String] :
|
479
|
-
# @option opts [String] :
|
480
|
-
# @option opts [
|
481
|
-
# @option opts [
|
482
|
-
# @option opts [
|
483
|
-
# @option opts [Integer] :
|
484
|
-
# @option opts [Integer] :
|
485
|
-
# @option opts [Integer] :
|
486
|
-
# @option opts [Integer] :
|
487
|
-
# @option opts [Integer] :
|
488
|
-
# @option opts [
|
489
|
-
# @option opts [
|
490
|
-
# @option opts [Integer] :
|
491
|
-
# @option opts [
|
492
|
-
# @option opts [Array<
|
493
|
-
# @option opts [
|
494
|
-
# @option opts [
|
495
|
-
# @option opts [
|
496
|
-
# @option opts [Array<Integer>] :
|
497
|
-
# @option opts [
|
498
|
-
# @option opts [
|
499
|
-
# @option opts [Array<
|
500
|
-
# @option opts [Array<
|
501
|
-
# @option opts [Array<String>] :
|
502
|
-
# @option opts [Array<String>] :
|
503
|
-
# @option opts [Array<String>] :
|
504
|
-
# @option opts [Array<String>] :
|
505
|
-
# @option opts [Array<String>] :
|
506
|
-
# @option opts [Array<String>] :
|
507
|
-
# @option opts [Array<String>] :
|
508
|
-
# @option opts [Array<String>] :
|
509
|
-
# @option opts [Array<String>] :
|
510
|
-
# @option opts [Array<String>] :
|
511
|
-
# @option opts [Array<String>] :
|
512
|
-
# @option opts [Array<String>] :
|
513
|
-
# @option opts [Array<String>] :
|
514
|
-
# @option opts [Array<String>] :
|
515
|
-
# @option opts [Array<String>] :
|
516
|
-
# @option opts [
|
517
|
-
# @option opts [
|
518
|
-
# @option opts [
|
519
|
-
# @option opts [Integer] :
|
520
|
-
# @option opts [
|
521
|
-
# @option opts [Integer] :
|
522
|
-
# @option opts [Integer] :
|
523
|
-
# @option opts [
|
524
|
-
# @option opts [Integer] :
|
525
|
-
# @option opts [Integer] :
|
526
|
-
# @option opts [Integer] :
|
527
|
-
# @option opts [Integer] :
|
528
|
-
# @option opts [Integer] :
|
529
|
-
# @option opts [
|
530
|
-
# @option opts [
|
531
|
-
# @option opts [
|
481
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
482
|
+
# @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
|
483
|
+
# @option opts [String] :title This parameter is used for finding stories whose title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
484
|
+
# @option opts [String] :body This parameter is used for finding stories whose body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
485
|
+
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
486
|
+
# @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
487
|
+
# @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
488
|
+
# @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
489
|
+
# @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.
|
490
|
+
# @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
491
|
+
# @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).
|
492
|
+
# @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
493
|
+
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
494
|
+
# @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
495
|
+
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
496
|
+
# @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
497
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
498
|
+
# @option opts [Array<String>] :entities_title_text2 This parameter is used to exclude stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
499
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
500
|
+
# @option opts [Array<String>] :entities_title_type2 This parameter is used to exclude stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
501
|
+
# @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).
|
502
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia2 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).
|
503
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
504
|
+
# @option opts [Array<String>] :entities_body_text2 This parameter is used to exclude stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
505
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
506
|
+
# @option opts [Array<String>] :entities_body_type2 This parameter is used to exclude stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
507
|
+
# @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).
|
508
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia2 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).
|
509
|
+
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
510
|
+
# @option opts [String] :sentiment_title_polarity2 This parameter is used for excluding stories whose title sentiment is the specified value.
|
511
|
+
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
512
|
+
# @option opts [String] :sentiment_body_polarity2 This parameter is used for excluding stories whose body sentiment is the specified value.
|
513
|
+
# @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.
|
514
|
+
# @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.
|
515
|
+
# @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.
|
516
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
517
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
518
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
519
|
+
# @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.
|
520
|
+
# @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.
|
521
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
522
|
+
# @option opts [Array<String>] :media_images_format2 This parameter is used for excluding stories whose images format are the specified value.
|
523
|
+
# @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.
|
524
|
+
# @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.
|
525
|
+
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
526
|
+
# @option opts [Array<Integer>] :author_id2 This parameter is used for excluding stories whose author id is the specified value.
|
527
|
+
# @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
|
528
|
+
# @option opts [String] :author_name2 This parameter is used for excluding stories whose author full name contains the specified value.
|
529
|
+
# @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
|
530
|
+
# @option opts [Array<Integer>] :source_id2 This parameter is used for excluding stories whose source id is the specified value.
|
531
|
+
# @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
|
532
|
+
# @option opts [Array<String>] :source_name2 This parameter is used for excluding stories whose source name contains the specified value.
|
533
|
+
# @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
|
534
|
+
# @option opts [Array<String>] :source_domain2 This parameter is used for excluding stories whose source domain is the specified value.
|
535
|
+
# @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).
|
536
|
+
# @option opts [Array<String>] :source_locations_country2 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).
|
537
|
+
# @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).
|
538
|
+
# @option opts [Array<String>] :source_locations_state2 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).
|
539
|
+
# @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).
|
540
|
+
# @option opts [Array<String>] :source_locations_city2 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).
|
541
|
+
# @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).
|
542
|
+
# @option opts [Array<String>] :source_scopes_country2 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).
|
543
|
+
# @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).
|
544
|
+
# @option opts [Array<String>] :source_scopes_state2 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).
|
545
|
+
# @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).
|
546
|
+
# @option opts [Array<String>] :source_scopes_city2 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).
|
547
|
+
# @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).
|
548
|
+
# @option opts [Array<String>] :source_scopes_level2 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).
|
549
|
+
# @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).
|
550
|
+
# @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).
|
551
|
+
# @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).
|
552
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
553
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
554
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
555
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
556
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
557
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
558
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
559
|
+
# @option opts [Integer] :social_shares_count_linkedin_max This parameter is used for finding stories whose LinkedIn social shares count is less than or equal to the specified value.
|
560
|
+
# @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
|
561
|
+
# @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.
|
562
|
+
# @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
|
563
|
+
# @option opts [String] :published_at_end This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates).
|
564
|
+
# @option opts [String] :period The size of each date range is expressed as an interval to be added to the lower bound. It supports Date Math Syntax. Valid options are `+` following an integer number greater than 0 and one of the Date Math keywords. e.g. `+1DAY`, `+2MINUTES` and `+1MONTH`. Here are [Supported keywords](https://newsapi.aylien.com/docs/working-with-dates#date-math).
|
532
565
|
# @return [TimeSeriesList]
|
533
566
|
describe 'list_time_series test' do
|
534
|
-
it
|
567
|
+
it 'should work' do
|
535
568
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
536
569
|
end
|
537
570
|
end
|
538
571
|
|
539
572
|
# unit tests for list_trends
|
540
573
|
# List trends
|
541
|
-
#
|
542
|
-
# @param field This parameter is used to specify the trend field.
|
574
|
+
# The trends endpoint allows you to identify the most-mentioned entities, concepts and keywords relevant to your query. For example, this endpoint allows you to set parameters like a time period, a subject category, or an entity, and your request will return the most mentioned entities or keywords that are mentioned in relation to your query.
|
575
|
+
# @param field This parameter is used to specify the trend field.
|
543
576
|
# @param [Hash] opts the optional parameters
|
544
|
-
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
545
|
-
# @option opts [Array<Integer>] :
|
546
|
-
# @option opts [String] :title This parameter is used for finding stories whose title contains a
|
547
|
-
# @option opts [String] :body This parameter is used for finding stories whose body contains a
|
548
|
-
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a
|
549
|
-
# @option opts [
|
550
|
-
# @option opts [
|
551
|
-
# @option opts [String] :
|
552
|
-
# @option opts [String] :
|
553
|
-
# @option opts [String] :
|
554
|
-
# @option opts [
|
555
|
-
# @option opts [
|
556
|
-
# @option opts [
|
557
|
-
# @option opts [
|
558
|
-
# @option opts [Array<
|
559
|
-
# @option opts [Array<String>] :
|
560
|
-
# @option opts [Array<
|
561
|
-
# @option opts [Array<
|
562
|
-
# @option opts [Array<String>] :
|
563
|
-
# @option opts [Array<String>] :
|
564
|
-
# @option opts [Array<String>] :
|
565
|
-
# @option opts [Array<String>] :
|
566
|
-
# @option opts [Array<String>] :
|
567
|
-
# @option opts [Array<String>] :
|
568
|
-
# @option opts [Array<String>] :
|
569
|
-
# @option opts [Array<String>] :
|
570
|
-
# @option opts [Array<String>] :
|
571
|
-
# @option opts [String] :
|
572
|
-
# @option opts [String] :
|
573
|
-
# @option opts [String] :
|
574
|
-
# @option opts [String] :
|
575
|
-
# @option opts [
|
576
|
-
# @option opts [
|
577
|
-
# @option opts [
|
578
|
-
# @option opts [Integer] :
|
579
|
-
# @option opts [Integer] :
|
580
|
-
# @option opts [Integer] :
|
581
|
-
# @option opts [Integer] :
|
582
|
-
# @option opts [Integer] :
|
583
|
-
# @option opts [
|
584
|
-
# @option opts [
|
585
|
-
# @option opts [Integer] :
|
586
|
-
# @option opts [
|
587
|
-
# @option opts [Array<
|
588
|
-
# @option opts [
|
589
|
-
# @option opts [
|
590
|
-
# @option opts [
|
591
|
-
# @option opts [Array<Integer>] :
|
592
|
-
# @option opts [
|
593
|
-
# @option opts [
|
594
|
-
# @option opts [Array<
|
595
|
-
# @option opts [Array<
|
596
|
-
# @option opts [Array<String>] :
|
597
|
-
# @option opts [Array<String>] :
|
598
|
-
# @option opts [Array<String>] :
|
599
|
-
# @option opts [Array<String>] :
|
600
|
-
# @option opts [Array<String>] :
|
601
|
-
# @option opts [Array<String>] :
|
602
|
-
# @option opts [Array<String>] :
|
603
|
-
# @option opts [Array<String>] :
|
604
|
-
# @option opts [Array<String>] :
|
605
|
-
# @option opts [Array<String>] :
|
606
|
-
# @option opts [Array<String>] :
|
607
|
-
# @option opts [Array<String>] :
|
608
|
-
# @option opts [Array<String>] :
|
609
|
-
# @option opts [Array<String>] :
|
610
|
-
# @option opts [Array<String>] :
|
611
|
-
# @option opts [
|
612
|
-
# @option opts [
|
613
|
-
# @option opts [
|
614
|
-
# @option opts [Integer] :
|
615
|
-
# @option opts [
|
616
|
-
# @option opts [Integer] :
|
617
|
-
# @option opts [Integer] :
|
618
|
-
# @option opts [
|
619
|
-
# @option opts [Integer] :
|
620
|
-
# @option opts [Integer] :
|
621
|
-
# @option opts [Integer] :
|
622
|
-
# @option opts [Integer] :
|
623
|
-
# @option opts [Integer] :
|
577
|
+
# @option opts [Array<Integer>] :id This parameter is used for finding stories by story id.
|
578
|
+
# @option opts [Array<Integer>] :id2 This parameter is used for excluding stories by story id.
|
579
|
+
# @option opts [String] :title This parameter is used for finding stories whose title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
580
|
+
# @option opts [String] :body This parameter is used for finding stories whose body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
581
|
+
# @option opts [String] :text This parameter is used for finding stories whose title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
582
|
+
# @option opts [String] :translations_en_title This parameter is used for finding stories whose translation title contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
583
|
+
# @option opts [String] :translations_en_body This parameter is used for finding stories whose translation body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
584
|
+
# @option opts [String] :translations_en_text This parameter is used for finding stories whose translation title or body contains a specific keyword. It supports [boolean operators](https://newsapi.aylien.com/docs/boolean-operators).
|
585
|
+
# @option opts [Array<String>] :language This parameter is used for finding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
586
|
+
# @option opts [Array<String>] :language2 This parameter is used for excluding stories whose language is the specified value. It supports [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes.
|
587
|
+
# @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).
|
588
|
+
# @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).
|
589
|
+
# @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).
|
590
|
+
# @option opts [Boolean] :categories_confident This parameter is used for finding stories whose categories are confident. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
591
|
+
# @option opts [Array<String>] :categories_id This parameter is used for finding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
592
|
+
# @option opts [Array<String>] :categories_id2 This parameter is used for excluding stories by categories id. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
593
|
+
# @option opts [Array<Integer>] :categories_level This parameter is used for finding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
594
|
+
# @option opts [Array<Integer>] :categories_level2 This parameter is used for excluding stories by categories level. You can read more about working with categories [here](https://newsapi.aylien.com/docs/working-with-categories).
|
595
|
+
# @option opts [Array<String>] :entities_title_text This parameter is used to find stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
596
|
+
# @option opts [Array<String>] :entities_title_text2 This parameter is used to exclude stories based on the specified entities `text` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
597
|
+
# @option opts [Array<String>] :entities_title_type This parameter is used to find stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
598
|
+
# @option opts [Array<String>] :entities_title_type2 This parameter is used to exclude stories based on the specified entities `type` in story titles. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
599
|
+
# @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).
|
600
|
+
# @option opts [Array<String>] :entities_title_links_dbpedia2 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).
|
601
|
+
# @option opts [Array<String>] :entities_body_text This parameter is used to find stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
602
|
+
# @option opts [Array<String>] :entities_body_text2 This parameter is used to exclude stories based on the specified entities `text` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
603
|
+
# @option opts [Array<String>] :entities_body_type This parameter is used to find stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
604
|
+
# @option opts [Array<String>] :entities_body_type2 This parameter is used to exclude stories based on the specified entities `type` in the body of stories. You can read more about working with entities [here](https://newsapi.aylien.com/docs/working-with-entities).
|
605
|
+
# @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).
|
606
|
+
# @option opts [Array<String>] :entities_body_links_dbpedia2 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).
|
607
|
+
# @option opts [String] :sentiment_title_polarity This parameter is used for finding stories whose title sentiment is the specified value.
|
608
|
+
# @option opts [String] :sentiment_title_polarity2 This parameter is used for excluding stories whose title sentiment is the specified value.
|
609
|
+
# @option opts [String] :sentiment_body_polarity This parameter is used for finding stories whose body sentiment is the specified value.
|
610
|
+
# @option opts [String] :sentiment_body_polarity2 This parameter is used for excluding stories whose body sentiment is the specified value.
|
611
|
+
# @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.
|
612
|
+
# @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.
|
613
|
+
# @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.
|
614
|
+
# @option opts [Integer] :media_images_width_max This parameter is used for finding stories whose width of images are less than or equal to the specified value.
|
615
|
+
# @option opts [Integer] :media_images_height_min This parameter is used for finding stories whose height of images are greater than or equal to the specified value.
|
616
|
+
# @option opts [Integer] :media_images_height_max This parameter is used for finding stories whose height of images are less than or equal to the specified value.
|
617
|
+
# @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.
|
618
|
+
# @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.
|
619
|
+
# @option opts [Array<String>] :media_images_format This parameter is used for finding stories whose images format are the specified value.
|
620
|
+
# @option opts [Array<String>] :media_images_format2 This parameter is used for excluding stories whose images format are the specified value.
|
621
|
+
# @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.
|
622
|
+
# @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.
|
623
|
+
# @option opts [Array<Integer>] :author_id This parameter is used for finding stories whose author id is the specified value.
|
624
|
+
# @option opts [Array<Integer>] :author_id2 This parameter is used for excluding stories whose author id is the specified value.
|
625
|
+
# @option opts [String] :author_name This parameter is used for finding stories whose author full name contains the specified value.
|
626
|
+
# @option opts [String] :author_name2 This parameter is used for excluding stories whose author full name contains the specified value.
|
627
|
+
# @option opts [Array<Integer>] :source_id This parameter is used for finding stories whose source id is the specified value.
|
628
|
+
# @option opts [Array<Integer>] :source_id2 This parameter is used for excluding stories whose source id is the specified value.
|
629
|
+
# @option opts [Array<String>] :source_name This parameter is used for finding stories whose source name contains the specified value.
|
630
|
+
# @option opts [Array<String>] :source_name2 This parameter is used for excluding stories whose source name contains the specified value.
|
631
|
+
# @option opts [Array<String>] :source_domain This parameter is used for finding stories whose source domain is the specified value.
|
632
|
+
# @option opts [Array<String>] :source_domain2 This parameter is used for excluding stories whose source domain is the specified value.
|
633
|
+
# @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).
|
634
|
+
# @option opts [Array<String>] :source_locations_country2 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).
|
635
|
+
# @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).
|
636
|
+
# @option opts [Array<String>] :source_locations_state2 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).
|
637
|
+
# @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).
|
638
|
+
# @option opts [Array<String>] :source_locations_city2 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).
|
639
|
+
# @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).
|
640
|
+
# @option opts [Array<String>] :source_scopes_country2 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).
|
641
|
+
# @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).
|
642
|
+
# @option opts [Array<String>] :source_scopes_state2 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).
|
643
|
+
# @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).
|
644
|
+
# @option opts [Array<String>] :source_scopes_city2 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).
|
645
|
+
# @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).
|
646
|
+
# @option opts [Array<String>] :source_scopes_level2 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).
|
647
|
+
# @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).
|
648
|
+
# @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).
|
649
|
+
# @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).
|
650
|
+
# @option opts [Integer] :source_rankings_alexa_rank_max This parameter is used for finding stories from sources whose Alexa rank is less than or equal to the specified value. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
651
|
+
# @option opts [Array<String>] :source_rankings_alexa_country This parameter is used for finding stories from sources whose Alexa rank is in the specified country value. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. You can read more about working with Alexa ranks [here](https://newsapi.aylien.com/docs/working-with-alexa-ranks).
|
652
|
+
# @option opts [Integer] :social_shares_count_facebook_min This parameter is used for finding stories whose Facebook social shares count is greater than or equal to the specified value.
|
653
|
+
# @option opts [Integer] :social_shares_count_facebook_max This parameter is used for finding stories whose Facebook social shares count is less than or equal to the specified value.
|
654
|
+
# @option opts [Integer] :social_shares_count_google_plus_min This parameter is used for finding stories whose Google+ social shares count is greater than or equal to the specified value.
|
655
|
+
# @option opts [Integer] :social_shares_count_google_plus_max This parameter is used for finding stories whose Google+ social shares count is less than or equal to the specified value.
|
656
|
+
# @option opts [Integer] :social_shares_count_linkedin_min This parameter is used for finding stories whose LinkedIn social shares count is greater than or equal to the specified value.
|
657
|
+
# @option opts [Integer] :social_shares_count_linkedin_max This parameter is used for finding stories whose LinkedIn social shares count is less than or equal to the specified value.
|
658
|
+
# @option opts [Integer] :social_shares_count_reddit_min This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
|
659
|
+
# @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.
|
624
660
|
# @return [Trends]
|
625
661
|
describe 'list_trends test' do
|
626
|
-
it
|
662
|
+
it 'should work' do
|
627
663
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
628
664
|
end
|
629
665
|
end
|