aylien_news_api 4.3.0 → 4.3.1
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 +4 -4
- data/aylien_news_api-4.3.0.gem +0 -0
- data/docs/DefaultApi.md +13 -1
- data/lib/aylien_news_api/api/default_api.rb +18 -0
- data/lib/aylien_news_api/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca92c584c721c883e68363567bb58be8b88508a3dba08524891045ed216a98eb
|
|
4
|
+
data.tar.gz: 6037824cea9a92772db69abcd67ac26dff51a193aceb49ad9897aaae855e3e8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48bcbf0f0244cad7adb639384e8829e40b866a96fad5805b131f1ae9ffc189e9c97f7faa1bfe014fd952108b81dccb93fbd1d6162da2d4bcc1a95333080b9af7
|
|
7
|
+
data.tar.gz: 05a5e14a00783c24907e699d389ea1d781c2a38950789c11aac98bb7fa4bfabb561d54f765f057ab794a29665801a0ac6016597f3564dfcb1726193c97ee7a37
|
|
Binary file
|
data/docs/DefaultApi.md
CHANGED
|
@@ -387,6 +387,7 @@ opts = {
|
|
|
387
387
|
social_shares_count_reddit_min: 56, # Integer | This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
|
|
388
388
|
social_shares_count_reddit_max: 56, # Integer | This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
|
|
389
389
|
clusters: ['clusters_example'], # Array<String> | 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).
|
|
390
|
+
query: 'query_example', # String | This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
390
391
|
interval_start: 56, # Integer | This parameter is used for setting the start data point of histogram intervals.
|
|
391
392
|
interval_end: 56, # Integer | This parameter is used for setting the end data point of histogram intervals.
|
|
392
393
|
interval_width: 56, # Integer | This parameter is used for setting the width of histogram intervals.
|
|
@@ -515,6 +516,7 @@ Name | Type | Description | Notes
|
|
|
515
516
|
**social_shares_count_reddit_min** | **Integer**| This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value. | [optional]
|
|
516
517
|
**social_shares_count_reddit_max** | **Integer**| This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value. | [optional]
|
|
517
518
|
**clusters** | [**Array<String>**](String.md)| 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). | [optional]
|
|
519
|
+
**query** | **String**| This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string. | [optional]
|
|
518
520
|
**interval_start** | **Integer**| This parameter is used for setting the start data point of histogram intervals. | [optional]
|
|
519
521
|
**interval_end** | **Integer**| This parameter is used for setting the end data point of histogram intervals. | [optional]
|
|
520
522
|
**interval_width** | **Integer**| This parameter is used for setting the width of histogram intervals. | [optional]
|
|
@@ -673,6 +675,7 @@ opts = {
|
|
|
673
675
|
story_url: 'story_url_example', # String | An article or webpage
|
|
674
676
|
story_title: 'story_title_example', # String | Title of the article
|
|
675
677
|
story_body: 'story_body_example', # String | Body of the article
|
|
678
|
+
query: 'query_example', # String | This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
676
679
|
boost_by: 'boost_by_example', # String | This parameter is used for boosting the result by the specified value.
|
|
677
680
|
story_language: 'auto', # String | 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.
|
|
678
681
|
per_page: 3 # Integer | This parameter is used for specifying number of items in each page.
|
|
@@ -804,6 +807,7 @@ Name | Type | Description | Notes
|
|
|
804
807
|
**story_url** | **String**| An article or webpage | [optional]
|
|
805
808
|
**story_title** | **String**| Title of the article | [optional]
|
|
806
809
|
**story_body** | **String**| Body of the article | [optional]
|
|
810
|
+
**query** | **String**| This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string. | [optional]
|
|
807
811
|
**boost_by** | **String**| This parameter is used for boosting the result by the specified value. | [optional]
|
|
808
812
|
**story_language** | **String**| 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. | [optional] [default to 'auto']
|
|
809
813
|
**per_page** | **Integer**| This parameter is used for specifying number of items in each page. | [optional] [default to 3]
|
|
@@ -961,6 +965,7 @@ opts = {
|
|
|
961
965
|
story_url: 'story_url_example', # String | An article or webpage
|
|
962
966
|
story_title: 'story_title_example', # String | Title of the article
|
|
963
967
|
story_body: 'story_body_example', # String | Body of the article
|
|
968
|
+
query: 'query_example', # String | This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
964
969
|
boost_by: 'boost_by_example', # String | This parameter is used for boosting the result by the specified value.
|
|
965
970
|
story_language: 'auto', # String | 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.
|
|
966
971
|
per_page: 3 # Integer | This parameter is used for specifying number of items in each page.
|
|
@@ -1092,6 +1097,7 @@ Name | Type | Description | Notes
|
|
|
1092
1097
|
**story_url** | **String**| An article or webpage | [optional]
|
|
1093
1098
|
**story_title** | **String**| Title of the article | [optional]
|
|
1094
1099
|
**story_body** | **String**| Body of the article | [optional]
|
|
1100
|
+
**query** | **String**| This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string. | [optional]
|
|
1095
1101
|
**boost_by** | **String**| This parameter is used for boosting the result by the specified value. | [optional]
|
|
1096
1102
|
**story_language** | **String**| 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. | [optional] [default to 'auto']
|
|
1097
1103
|
**per_page** | **Integer**| This parameter is used for specifying number of items in each page. | [optional] [default to 3]
|
|
@@ -1247,6 +1253,7 @@ opts = {
|
|
|
1247
1253
|
social_shares_count_reddit_max: 56, # Integer | This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
|
|
1248
1254
|
clusters: ['clusters_example'], # Array<String> | 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).
|
|
1249
1255
|
_return: ['_return_example'], # Array<String> | This parameter is used for specifying return fields.
|
|
1256
|
+
query: 'query_example', # String | This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
1250
1257
|
sort_by: 'published_at', # String | 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).
|
|
1251
1258
|
sort_direction: 'desc', # String | 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).
|
|
1252
1259
|
cursor: '*', # String | 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).
|
|
@@ -1376,6 +1383,7 @@ Name | Type | Description | Notes
|
|
|
1376
1383
|
**social_shares_count_reddit_max** | **Integer**| This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value. | [optional]
|
|
1377
1384
|
**clusters** | [**Array<String>**](String.md)| 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). | [optional]
|
|
1378
1385
|
**_return** | [**Array<String>**](String.md)| This parameter is used for specifying return fields. | [optional]
|
|
1386
|
+
**query** | **String**| This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string. | [optional]
|
|
1379
1387
|
**sort_by** | **String**| 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). | [optional] [default to 'published_at']
|
|
1380
1388
|
**sort_direction** | **String**| 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). | [optional] [default to 'desc']
|
|
1381
1389
|
**cursor** | **String**| 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). | [optional] [default to '*']
|
|
@@ -1527,6 +1535,7 @@ opts = {
|
|
|
1527
1535
|
social_shares_count_reddit_min: 56, # Integer | This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
|
|
1528
1536
|
social_shares_count_reddit_max: 56, # Integer | This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
|
|
1529
1537
|
clusters: ['clusters_example'], # Array<String> | 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).
|
|
1538
|
+
query: 'query_example', # String | This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
1530
1539
|
published_at_start: 'NOW-7DAYS/DAY', # String | 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).
|
|
1531
1540
|
published_at_end: 'NOW/DAY', # String | 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).
|
|
1532
1541
|
period: '+1DAY' # String | 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).
|
|
@@ -1650,6 +1659,7 @@ Name | Type | Description | Notes
|
|
|
1650
1659
|
**social_shares_count_reddit_min** | **Integer**| This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value. | [optional]
|
|
1651
1660
|
**social_shares_count_reddit_max** | **Integer**| This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value. | [optional]
|
|
1652
1661
|
**clusters** | [**Array<String>**](String.md)| 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). | [optional]
|
|
1662
|
+
**query** | **String**| This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string. | [optional]
|
|
1653
1663
|
**published_at_start** | **String**| 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). | [optional] [default to 'NOW-7DAYS/DAY']
|
|
1654
1664
|
**published_at_end** | **String**| 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). | [optional] [default to 'NOW/DAY']
|
|
1655
1665
|
**period** | **String**| 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). | [optional] [default to '+1DAY']
|
|
@@ -1804,7 +1814,8 @@ opts = {
|
|
|
1804
1814
|
social_shares_count_linkedin_max: 56, # Integer | This parameter is used for finding stories whose LinkedIn social shares count is less than or equal to the specified value.
|
|
1805
1815
|
social_shares_count_reddit_min: 56, # Integer | This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value.
|
|
1806
1816
|
social_shares_count_reddit_max: 56, # Integer | This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value.
|
|
1807
|
-
clusters: ['clusters_example'] # Array<String> | 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).
|
|
1817
|
+
clusters: ['clusters_example'], # Array<String> | 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).
|
|
1818
|
+
query: 'query_example' # String | This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
1808
1819
|
}
|
|
1809
1820
|
|
|
1810
1821
|
begin
|
|
@@ -1930,6 +1941,7 @@ Name | Type | Description | Notes
|
|
|
1930
1941
|
**social_shares_count_reddit_min** | **Integer**| This parameter is used for finding stories whose Reddit social shares count is greater than or equal to the specified value. | [optional]
|
|
1931
1942
|
**social_shares_count_reddit_max** | **Integer**| This parameter is used for finding stories whose Reddit social shares count is less than or equal to the specified value. | [optional]
|
|
1932
1943
|
**clusters** | [**Array<String>**](String.md)| 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). | [optional]
|
|
1944
|
+
**query** | **String**| This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string. | [optional]
|
|
1933
1945
|
|
|
1934
1946
|
### Return type
|
|
1935
1947
|
|
|
@@ -467,6 +467,7 @@ module AylienNewsApi
|
|
|
467
467
|
# @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.
|
|
468
468
|
# @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.
|
|
469
469
|
# @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).
|
|
470
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
470
471
|
# @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
|
|
471
472
|
# @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
|
|
472
473
|
# @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
|
|
@@ -588,6 +589,7 @@ module AylienNewsApi
|
|
|
588
589
|
# @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.
|
|
589
590
|
# @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.
|
|
590
591
|
# @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).
|
|
592
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
591
593
|
# @option opts [Integer] :interval_start This parameter is used for setting the start data point of histogram intervals.
|
|
592
594
|
# @option opts [Integer] :interval_end This parameter is used for setting the end data point of histogram intervals.
|
|
593
595
|
# @option opts [Integer] :interval_width This parameter is used for setting the width of histogram intervals.
|
|
@@ -846,6 +848,7 @@ module AylienNewsApi
|
|
|
846
848
|
query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
|
847
849
|
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
|
848
850
|
query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
|
|
851
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
849
852
|
query_params[:'interval.start'] = opts[:'interval_start'] if !opts[:'interval_start'].nil?
|
|
850
853
|
query_params[:'interval.end'] = opts[:'interval_end'] if !opts[:'interval_end'].nil?
|
|
851
854
|
query_params[:'interval.width'] = opts[:'interval_width'] if !opts[:'interval_width'].nil?
|
|
@@ -998,6 +1001,7 @@ module AylienNewsApi
|
|
|
998
1001
|
# @option opts [String] :story_url An article or webpage
|
|
999
1002
|
# @option opts [String] :story_title Title of the article
|
|
1000
1003
|
# @option opts [String] :story_body Body of the article
|
|
1004
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
1001
1005
|
# @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
|
|
1002
1006
|
# @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. (default to 'auto')
|
|
1003
1007
|
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page. (default to 3)
|
|
@@ -1121,6 +1125,7 @@ module AylienNewsApi
|
|
|
1121
1125
|
# @option opts [String] :story_url An article or webpage
|
|
1122
1126
|
# @option opts [String] :story_title Title of the article
|
|
1123
1127
|
# @option opts [String] :story_body Body of the article
|
|
1128
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
1124
1129
|
# @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
|
|
1125
1130
|
# @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.
|
|
1126
1131
|
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
|
@@ -1399,6 +1404,7 @@ module AylienNewsApi
|
|
|
1399
1404
|
query_params[:'story_url'] = opts[:'story_url'] if !opts[:'story_url'].nil?
|
|
1400
1405
|
query_params[:'story_title'] = opts[:'story_title'] if !opts[:'story_title'].nil?
|
|
1401
1406
|
query_params[:'story_body'] = opts[:'story_body'] if !opts[:'story_body'].nil?
|
|
1407
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
1402
1408
|
query_params[:'boost_by'] = opts[:'boost_by'] if !opts[:'boost_by'].nil?
|
|
1403
1409
|
query_params[:'story_language'] = opts[:'story_language'] if !opts[:'story_language'].nil?
|
|
1404
1410
|
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
@@ -1550,6 +1556,7 @@ module AylienNewsApi
|
|
|
1550
1556
|
# @option opts [String] :story_url An article or webpage
|
|
1551
1557
|
# @option opts [String] :story_title Title of the article
|
|
1552
1558
|
# @option opts [String] :story_body Body of the article
|
|
1559
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
1553
1560
|
# @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
|
|
1554
1561
|
# @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. (default to 'auto')
|
|
1555
1562
|
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page. (default to 3)
|
|
@@ -1673,6 +1680,7 @@ module AylienNewsApi
|
|
|
1673
1680
|
# @option opts [String] :story_url An article or webpage
|
|
1674
1681
|
# @option opts [String] :story_title Title of the article
|
|
1675
1682
|
# @option opts [String] :story_body Body of the article
|
|
1683
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
1676
1684
|
# @option opts [String] :boost_by This parameter is used for boosting the result by the specified value.
|
|
1677
1685
|
# @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.
|
|
1678
1686
|
# @option opts [Integer] :per_page This parameter is used for specifying number of items in each page.
|
|
@@ -1951,6 +1959,7 @@ module AylienNewsApi
|
|
|
1951
1959
|
query_params[:'story_url'] = opts[:'story_url'] if !opts[:'story_url'].nil?
|
|
1952
1960
|
query_params[:'story_title'] = opts[:'story_title'] if !opts[:'story_title'].nil?
|
|
1953
1961
|
query_params[:'story_body'] = opts[:'story_body'] if !opts[:'story_body'].nil?
|
|
1962
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
1954
1963
|
query_params[:'boost_by'] = opts[:'boost_by'] if !opts[:'boost_by'].nil?
|
|
1955
1964
|
query_params[:'story_language'] = opts[:'story_language'] if !opts[:'story_language'].nil?
|
|
1956
1965
|
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
@@ -2100,6 +2109,7 @@ module AylienNewsApi
|
|
|
2100
2109
|
# @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.
|
|
2101
2110
|
# @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).
|
|
2102
2111
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
|
2112
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
2103
2113
|
# @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). (default to 'published_at')
|
|
2104
2114
|
# @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). (default to 'desc')
|
|
2105
2115
|
# @option opts [String] :cursor This parameter is used for finding a specific page. You can read more about pagination of results [here](https://newsapi.aylien.com/docs/pagination-of-results). (default to '*')
|
|
@@ -2222,6 +2232,7 @@ module AylienNewsApi
|
|
|
2222
2232
|
# @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.
|
|
2223
2233
|
# @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).
|
|
2224
2234
|
# @option opts [Array<String>] :_return This parameter is used for specifying return fields.
|
|
2235
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
2225
2236
|
# @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).
|
|
2226
2237
|
# @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).
|
|
2227
2238
|
# @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).
|
|
@@ -2497,6 +2508,7 @@ module AylienNewsApi
|
|
|
2497
2508
|
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
|
2498
2509
|
query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
|
|
2499
2510
|
query_params[:'return'] = opts[:'_return'] if !opts[:'_return'].nil?
|
|
2511
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
2500
2512
|
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
2501
2513
|
query_params[:'sort_direction'] = opts[:'sort_direction'] if !opts[:'sort_direction'].nil?
|
|
2502
2514
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
@@ -2642,6 +2654,7 @@ module AylienNewsApi
|
|
|
2642
2654
|
# @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.
|
|
2643
2655
|
# @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.
|
|
2644
2656
|
# @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).
|
|
2657
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
2645
2658
|
# @option opts [String] :published_at_start This parameter is used for finding stories whose published at time is less than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (default to 'NOW-7DAYS/DAY')
|
|
2646
2659
|
# @option opts [String] :published_at_end This parameter is used for finding stories whose published at time is greater than the specified value. [Here](https://newsapi.aylien.com/docs/working-with-dates) you can find more information about how [to work with dates](https://newsapi.aylien.com/docs/working-with-dates). (default to 'NOW/DAY')
|
|
2647
2660
|
# @option opts [String] :period The size of each date range is expressed as an interval to be added to the lower bound. It supports Date Math Syntax. Valid options are `+` following an integer number greater than 0 and one of the Date Math keywords. e.g. `+1DAY`, `+2MINUTES` and `+1MONTH`. Here are [Supported keywords](https://newsapi.aylien.com/docs/working-with-dates#date-math). (default to '+1DAY')
|
|
@@ -2758,6 +2771,7 @@ module AylienNewsApi
|
|
|
2758
2771
|
# @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.
|
|
2759
2772
|
# @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.
|
|
2760
2773
|
# @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).
|
|
2774
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
2761
2775
|
# @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).
|
|
2762
2776
|
# @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).
|
|
2763
2777
|
# @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).
|
|
@@ -3007,6 +3021,7 @@ module AylienNewsApi
|
|
|
3007
3021
|
query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
|
3008
3022
|
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
|
3009
3023
|
query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
|
|
3024
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
3010
3025
|
query_params[:'published_at.start'] = opts[:'published_at_start'] if !opts[:'published_at_start'].nil?
|
|
3011
3026
|
query_params[:'published_at.end'] = opts[:'published_at_end'] if !opts[:'published_at_end'].nil?
|
|
3012
3027
|
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
|
@@ -3156,6 +3171,7 @@ module AylienNewsApi
|
|
|
3156
3171
|
# @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.
|
|
3157
3172
|
# @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.
|
|
3158
3173
|
# @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).
|
|
3174
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
3159
3175
|
# @return [Trends]
|
|
3160
3176
|
def list_trends(field, opts = {})
|
|
3161
3177
|
data, _status_code, _headers = list_trends_with_http_info(field, opts)
|
|
@@ -3274,6 +3290,7 @@ module AylienNewsApi
|
|
|
3274
3290
|
# @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.
|
|
3275
3291
|
# @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.
|
|
3276
3292
|
# @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).
|
|
3293
|
+
# @option opts [String] :query This parameter is used to make an advanced query using $and, $or, $not logical operators and $eq for exact match, $text for a text search and $lt, $gt, $lte, $gte for range queries. value must be a json string.
|
|
3277
3294
|
# @return [Array<(Trends, Integer, Hash)>] Trends data, response status code and response headers
|
|
3278
3295
|
def list_trends_with_http_info(field, opts = {})
|
|
3279
3296
|
if @api_client.config.debugging
|
|
@@ -3534,6 +3551,7 @@ module AylienNewsApi
|
|
|
3534
3551
|
query_params[:'social_shares_count.reddit.min'] = opts[:'social_shares_count_reddit_min'] if !opts[:'social_shares_count_reddit_min'].nil?
|
|
3535
3552
|
query_params[:'social_shares_count.reddit.max'] = opts[:'social_shares_count_reddit_max'] if !opts[:'social_shares_count_reddit_max'].nil?
|
|
3536
3553
|
query_params[:'clusters'] = opts[:'clusters'] if !opts[:'clusters'].nil?
|
|
3554
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
3537
3555
|
|
|
3538
3556
|
# header parameters
|
|
3539
3557
|
header_params = opts[:header_params] || {}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aylien_news_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.3.
|
|
4
|
+
version: 4.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AYLIEN
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-11-
|
|
11
|
+
date: 2020-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -55,6 +55,7 @@ files:
|
|
|
55
55
|
- Gemfile
|
|
56
56
|
- README.md
|
|
57
57
|
- Rakefile
|
|
58
|
+
- aylien_news_api-4.3.0.gem
|
|
58
59
|
- aylien_news_api.gemspec
|
|
59
60
|
- docs/AggregatedSentiment.md
|
|
60
61
|
- docs/Author.md
|