aylien_news_api 4.6.0 → 4.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +100 -34
- data/aylien_news_api.gemspec +1 -1
- data/docs/Category.md +3 -3
- data/docs/CategoryLinks.md +2 -0
- data/docs/DeprecatedStory.md +6 -2
- data/docs/DunsNumber.md +17 -0
- data/docs/Error.md +1 -1
- data/docs/ExternalIds.md +17 -0
- data/docs/Story.md +6 -2
- data/lib/aylien_news_api/api/default_api.rb +7 -7
- data/lib/aylien_news_api/api_client.rb +1 -1
- data/lib/aylien_news_api/api_error.rb +1 -1
- data/lib/aylien_news_api/configuration.rb +1 -1
- data/lib/aylien_news_api/models/aggregated_sentiment.rb +1 -1
- data/lib/aylien_news_api/models/author.rb +1 -1
- data/lib/aylien_news_api/models/autocomplete.rb +1 -1
- data/lib/aylien_news_api/models/autocompletes.rb +1 -1
- data/lib/aylien_news_api/models/category.rb +40 -14
- data/lib/aylien_news_api/models/category_links.rb +16 -2
- data/lib/aylien_news_api/models/category_taxonomy.rb +2 -1
- data/lib/aylien_news_api/models/cluster.rb +1 -1
- data/lib/aylien_news_api/models/clusters.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_entities.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_entity.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_entity_surface_form.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_related_stories.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_stories.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_story.rb +28 -6
- data/lib/aylien_news_api/models/duns_number.rb +206 -0
- data/lib/aylien_news_api/models/entity.rb +1 -1
- data/lib/aylien_news_api/models/entity_in_text.rb +1 -1
- data/lib/aylien_news_api/models/entity_links.rb +1 -1
- data/lib/aylien_news_api/models/entity_mention.rb +1 -1
- data/lib/aylien_news_api/models/entity_mention_index.rb +1 -1
- data/lib/aylien_news_api/models/entity_sentiment.rb +1 -1
- data/lib/aylien_news_api/models/entity_surface_form.rb +1 -1
- data/lib/aylien_news_api/models/error.rb +2 -2
- data/lib/aylien_news_api/models/error_links.rb +1 -1
- data/lib/aylien_news_api/models/errors.rb +1 -1
- data/lib/aylien_news_api/models/external_ids.rb +210 -0
- data/lib/aylien_news_api/models/histogram_interval.rb +1 -1
- data/lib/aylien_news_api/models/histograms.rb +1 -1
- data/lib/aylien_news_api/models/location.rb +1 -1
- data/lib/aylien_news_api/models/logicals.rb +1 -1
- data/lib/aylien_news_api/models/media.rb +1 -1
- data/lib/aylien_news_api/models/media_format.rb +1 -1
- data/lib/aylien_news_api/models/media_type.rb +1 -1
- data/lib/aylien_news_api/models/nested_entity.rb +1 -1
- data/lib/aylien_news_api/models/parameter.rb +1 -1
- data/lib/aylien_news_api/models/query.rb +1 -1
- data/lib/aylien_news_api/models/rank.rb +1 -1
- data/lib/aylien_news_api/models/rankings.rb +1 -1
- data/lib/aylien_news_api/models/related_stories.rb +1 -1
- data/lib/aylien_news_api/models/representative_story.rb +1 -1
- data/lib/aylien_news_api/models/scope.rb +1 -1
- data/lib/aylien_news_api/models/scope_level.rb +1 -1
- data/lib/aylien_news_api/models/sentiment.rb +1 -1
- data/lib/aylien_news_api/models/sentiment_polarity.rb +1 -1
- data/lib/aylien_news_api/models/sentiments.rb +1 -1
- data/lib/aylien_news_api/models/share_count.rb +1 -1
- data/lib/aylien_news_api/models/share_counts.rb +1 -1
- data/lib/aylien_news_api/models/source.rb +1 -1
- data/lib/aylien_news_api/models/stories.rb +1 -1
- data/lib/aylien_news_api/models/story.rb +28 -6
- data/lib/aylien_news_api/models/story_cluster.rb +1 -1
- data/lib/aylien_news_api/models/story_links.rb +1 -1
- data/lib/aylien_news_api/models/story_translation.rb +1 -1
- data/lib/aylien_news_api/models/story_translations.rb +1 -1
- data/lib/aylien_news_api/models/summary.rb +1 -1
- data/lib/aylien_news_api/models/time_series.rb +1 -1
- data/lib/aylien_news_api/models/time_series_list.rb +1 -1
- data/lib/aylien_news_api/models/trend.rb +1 -1
- data/lib/aylien_news_api/models/trends.rb +1 -1
- data/lib/aylien_news_api/models/warning.rb +1 -1
- data/lib/aylien_news_api/version.rb +2 -2
- data/lib/aylien_news_api.rb +1 -1
- data/spec/api/default_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/aggregated_sentiment_spec.rb +1 -1
- data/spec/models/author_spec.rb +1 -1
- data/spec/models/autocomplete_spec.rb +1 -1
- data/spec/models/autocompletes_spec.rb +1 -1
- data/spec/models/category_links_spec.rb +7 -1
- data/spec/models/category_spec.rb +4 -4
- data/spec/models/category_taxonomy_spec.rb +1 -1
- data/spec/models/cluster_spec.rb +1 -1
- data/spec/models/clusters_spec.rb +1 -1
- data/spec/models/deprecated_entities_spec.rb +1 -1
- data/spec/models/deprecated_entity_spec.rb +1 -1
- data/spec/models/deprecated_entity_surface_form_spec.rb +1 -1
- data/spec/models/deprecated_related_stories_spec.rb +1 -1
- data/spec/models/deprecated_stories_spec.rb +1 -1
- data/spec/models/deprecated_story_spec.rb +13 -1
- data/spec/models/duns_number_spec.rb +41 -0
- data/spec/models/entity_in_text_spec.rb +1 -1
- data/spec/models/entity_links_spec.rb +1 -1
- data/spec/models/entity_mention_index_spec.rb +1 -1
- data/spec/models/entity_mention_spec.rb +1 -1
- data/spec/models/entity_sentiment_spec.rb +1 -1
- data/spec/models/entity_spec.rb +1 -1
- data/spec/models/entity_surface_form_spec.rb +1 -1
- data/spec/models/error_links_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/errors_spec.rb +1 -1
- data/spec/models/external_ids_spec.rb +41 -0
- data/spec/models/histogram_interval_spec.rb +1 -1
- data/spec/models/histograms_spec.rb +1 -1
- data/spec/models/location_spec.rb +1 -1
- data/spec/models/logicals_spec.rb +1 -1
- data/spec/models/media_format_spec.rb +1 -1
- data/spec/models/media_spec.rb +1 -1
- data/spec/models/media_type_spec.rb +1 -1
- data/spec/models/nested_entity_spec.rb +1 -1
- data/spec/models/parameter_spec.rb +1 -1
- data/spec/models/query_spec.rb +1 -1
- data/spec/models/rank_spec.rb +1 -1
- data/spec/models/rankings_spec.rb +1 -1
- data/spec/models/related_stories_spec.rb +1 -1
- data/spec/models/representative_story_spec.rb +1 -1
- data/spec/models/scope_level_spec.rb +1 -1
- data/spec/models/scope_spec.rb +1 -1
- data/spec/models/sentiment_polarity_spec.rb +1 -1
- data/spec/models/sentiment_spec.rb +1 -1
- data/spec/models/sentiments_spec.rb +1 -1
- data/spec/models/share_count_spec.rb +1 -1
- data/spec/models/share_counts_spec.rb +1 -1
- data/spec/models/source_spec.rb +1 -1
- data/spec/models/stories_spec.rb +1 -1
- data/spec/models/story_cluster_spec.rb +1 -1
- data/spec/models/story_links_spec.rb +1 -1
- data/spec/models/story_spec.rb +13 -1
- data/spec/models/story_translation_spec.rb +1 -1
- data/spec/models/story_translations_spec.rb +1 -1
- data/spec/models/summary_spec.rb +1 -1
- data/spec/models/time_series_list_spec.rb +1 -1
- data/spec/models/time_series_spec.rb +1 -1
- data/spec/models/trend_spec.rb +1 -1
- data/spec/models/trends_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a6ecea5dd7dabb878d272622553d60bdadb008e915fabbc00b81175ba96721d
|
4
|
+
data.tar.gz: 60b0ae38e3396a1af2c0da577c8350e8199ae12036a2af66c82f06fb024eaae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99ddca6ae7aedb8852a382555e04772cab71df3ba58aa22b9c8f7fd4c5f0a48f1e8cb4db03579408b8085e06fde6a664dc29a3f4e37d1ca3c847e34be20b3e34
|
7
|
+
data.tar.gz: f9d1896054628711387166955045ab21237524fdee1d135902971fe25894072c35075ffb008160f7785fdf0d97cb191fb8aa445d0ff96b2551d1d6f8e8ff0c35
|
data/README.md
CHANGED
@@ -1,22 +1,46 @@
|
|
1
|
-
#
|
1
|
+
# aylien_news_api
|
2
2
|
|
3
|
-
|
3
|
+
AylienNewsApi - the Ruby gem for the AYLIEN News API
|
4
4
|
|
5
|
-
|
5
|
+
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.
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
9
|
+
|
10
|
+
- API version: 4.7.4
|
11
|
+
- Package version: 4.7.4
|
12
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
|
+
For more information, please visit [https://newsapi.aylien.com/](https://newsapi.aylien.com/)
|
8
14
|
|
9
15
|
## Installation
|
10
16
|
|
11
|
-
|
17
|
+
### Build a gem
|
18
|
+
|
19
|
+
To build the Ruby code into a gem:
|
20
|
+
|
21
|
+
```shell
|
22
|
+
gem build aylien_news_api.gemspec
|
23
|
+
```
|
24
|
+
|
25
|
+
Then either install the gem locally:
|
12
26
|
|
13
|
-
|
27
|
+
```shell
|
28
|
+
gem install ./aylien_news_api-4.7.4.gem
|
29
|
+
```
|
30
|
+
|
31
|
+
(for development, run `gem install --dev ./aylien_news_api-4.7.4.gem` to install the development dependencies)
|
32
|
+
|
33
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
|
+
|
35
|
+
Finally add this to the Gemfile:
|
36
|
+
|
37
|
+
gem 'aylien_news_api', '~> 4.7.4'
|
14
38
|
|
15
39
|
### Install from Git
|
16
40
|
|
17
|
-
If the Ruby gem is hosted at a git repository: https://github.com/
|
41
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
18
42
|
|
19
|
-
gem 'aylien_news_api', :git => 'https://github.com/
|
43
|
+
gem 'aylien_news_api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
20
44
|
|
21
45
|
### Include the Ruby code directly
|
22
46
|
|
@@ -29,39 +53,44 @@ ruby -Ilib script.rb
|
|
29
53
|
## Getting Started
|
30
54
|
|
31
55
|
Please follow the [installation](#installation) procedure and then run the following code:
|
56
|
+
|
32
57
|
```ruby
|
33
58
|
# Load the gem
|
34
59
|
require 'aylien_news_api'
|
35
60
|
|
36
61
|
# Setup authorization
|
37
62
|
AylienNewsApi.configure do |config|
|
38
|
-
|
39
|
-
config.api_key['X-AYLIEN-NewsAPI-Application-
|
63
|
+
# Configure API key authorization: app_id
|
64
|
+
config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR API KEY'
|
65
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
66
|
+
#config.api_key_prefix['X-AYLIEN-NewsAPI-Application-ID'] = 'Bearer'
|
67
|
+
|
68
|
+
# Configure API key authorization: app_key
|
69
|
+
config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR API KEY'
|
70
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
71
|
+
#config.api_key_prefix['X-AYLIEN-NewsAPI-Application-Key'] = 'Bearer'
|
40
72
|
end
|
41
73
|
|
42
74
|
api_instance = AylienNewsApi::DefaultApi.new
|
43
|
-
|
75
|
+
unknown_base_type = {"$and":[{"$or":[{"body":{"$text":"Tim Cook"}},{"social.shares.count.reddit.max":{"$gte":5000,"$boost":5}}]},{"entity":{"$and":[{"name":{"$text":"Apple","$boost":2}},{"$not":[{"type":{"$eq":"Fruit"}}]}]}}]} # UNKNOWN_BASE_TYPE | /stories body schema to perform an advanced search with logical operators and nested objects.
|
44
76
|
opts = {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
]
|
51
|
-
|
52
|
-
sort_by: 'social_shares_count.facebook'
|
77
|
+
published_at_start: 'published_at_start_example', # 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).
|
78
|
+
published_at_end: 'published_at_end_example', # 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).
|
79
|
+
_return: ['_return_example'], # Array<String> | This parameter is used for specifying return fields.
|
80
|
+
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).
|
81
|
+
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).
|
82
|
+
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).
|
83
|
+
per_page: 10 # Integer | 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)
|
53
84
|
}
|
54
85
|
|
55
|
-
|
56
86
|
begin
|
57
|
-
|
58
|
-
result.
|
59
|
-
|
60
|
-
end
|
87
|
+
#List Stories
|
88
|
+
result = api_instance.advanced_list_stories(unknown_base_type, opts)
|
89
|
+
p result
|
61
90
|
rescue AylienNewsApi::ApiError => e
|
62
|
-
puts "Exception when calling DefaultApi->
|
63
|
-
puts e.response_body
|
91
|
+
puts "Exception when calling DefaultApi->advanced_list_stories: #{e}"
|
64
92
|
end
|
93
|
+
|
65
94
|
```
|
66
95
|
|
67
96
|
## Documentation for API Endpoints
|
@@ -70,11 +99,12 @@ All URIs are relative to *https://api.aylien.com/news*
|
|
70
99
|
|
71
100
|
Class | Method | HTTP request | Description
|
72
101
|
------------ | ------------- | ------------- | -------------
|
102
|
+
*AylienNewsApi::DefaultApi* | [**advanced_list_stories**](docs/DefaultApi.md#advanced_list_stories) | **POST** /stories | List Stories
|
73
103
|
*AylienNewsApi::DefaultApi* | [**list_autocompletes**](docs/DefaultApi.md#list_autocompletes) | **GET** /autocompletes | List autocompletes
|
74
104
|
*AylienNewsApi::DefaultApi* | [**list_clusters**](docs/DefaultApi.md#list_clusters) | **GET** /clusters | List Clusters
|
75
|
-
*AylienNewsApi::DefaultApi* | [**list_coverages**](docs/DefaultApi.md#list_coverages) | **GET** /coverages | List coverages
|
76
105
|
*AylienNewsApi::DefaultApi* | [**list_histograms**](docs/DefaultApi.md#list_histograms) | **GET** /histograms | List histograms
|
77
|
-
*AylienNewsApi::DefaultApi* | [**
|
106
|
+
*AylienNewsApi::DefaultApi* | [**list_related_stories_get**](docs/DefaultApi.md#list_related_stories_get) | **GET** /related_stories |
|
107
|
+
*AylienNewsApi::DefaultApi* | [**list_related_stories_post**](docs/DefaultApi.md#list_related_stories_post) | **POST** /related_stories |
|
78
108
|
*AylienNewsApi::DefaultApi* | [**list_stories**](docs/DefaultApi.md#list_stories) | **GET** /stories | List Stories
|
79
109
|
*AylienNewsApi::DefaultApi* | [**list_time_series**](docs/DefaultApi.md#list_time_series) | **GET** /time_series | List time series
|
80
110
|
*AylienNewsApi::DefaultApi* | [**list_trends**](docs/DefaultApi.md#list_trends) | **GET** /trends | List trends
|
@@ -82,42 +112,78 @@ Class | Method | HTTP request | Description
|
|
82
112
|
|
83
113
|
## Documentation for Models
|
84
114
|
|
115
|
+
- [AylienNewsApi::AggregatedSentiment](docs/AggregatedSentiment.md)
|
85
116
|
- [AylienNewsApi::Author](docs/Author.md)
|
86
117
|
- [AylienNewsApi::Autocomplete](docs/Autocomplete.md)
|
87
118
|
- [AylienNewsApi::Autocompletes](docs/Autocompletes.md)
|
88
119
|
- [AylienNewsApi::Category](docs/Category.md)
|
89
120
|
- [AylienNewsApi::CategoryLinks](docs/CategoryLinks.md)
|
121
|
+
- [AylienNewsApi::CategoryTaxonomy](docs/CategoryTaxonomy.md)
|
90
122
|
- [AylienNewsApi::Cluster](docs/Cluster.md)
|
91
123
|
- [AylienNewsApi::Clusters](docs/Clusters.md)
|
92
|
-
- [AylienNewsApi::
|
93
|
-
- [AylienNewsApi::
|
124
|
+
- [AylienNewsApi::DeprecatedEntities](docs/DeprecatedEntities.md)
|
125
|
+
- [AylienNewsApi::DeprecatedEntity](docs/DeprecatedEntity.md)
|
126
|
+
- [AylienNewsApi::DeprecatedEntitySurfaceForm](docs/DeprecatedEntitySurfaceForm.md)
|
127
|
+
- [AylienNewsApi::DeprecatedRelatedStories](docs/DeprecatedRelatedStories.md)
|
128
|
+
- [AylienNewsApi::DeprecatedStories](docs/DeprecatedStories.md)
|
129
|
+
- [AylienNewsApi::DeprecatedStory](docs/DeprecatedStory.md)
|
94
130
|
- [AylienNewsApi::Entity](docs/Entity.md)
|
131
|
+
- [AylienNewsApi::EntityInText](docs/EntityInText.md)
|
95
132
|
- [AylienNewsApi::EntityLinks](docs/EntityLinks.md)
|
133
|
+
- [AylienNewsApi::EntityMention](docs/EntityMention.md)
|
134
|
+
- [AylienNewsApi::EntityMentionIndex](docs/EntityMentionIndex.md)
|
135
|
+
- [AylienNewsApi::EntitySentiment](docs/EntitySentiment.md)
|
136
|
+
- [AylienNewsApi::EntitySurfaceForm](docs/EntitySurfaceForm.md)
|
96
137
|
- [AylienNewsApi::Error](docs/Error.md)
|
97
138
|
- [AylienNewsApi::ErrorLinks](docs/ErrorLinks.md)
|
98
139
|
- [AylienNewsApi::Errors](docs/Errors.md)
|
99
140
|
- [AylienNewsApi::HistogramInterval](docs/HistogramInterval.md)
|
100
141
|
- [AylienNewsApi::Histograms](docs/Histograms.md)
|
101
142
|
- [AylienNewsApi::Location](docs/Location.md)
|
143
|
+
- [AylienNewsApi::Logicals](docs/Logicals.md)
|
102
144
|
- [AylienNewsApi::Media](docs/Media.md)
|
145
|
+
- [AylienNewsApi::MediaFormat](docs/MediaFormat.md)
|
146
|
+
- [AylienNewsApi::MediaType](docs/MediaType.md)
|
147
|
+
- [AylienNewsApi::NestedEntity](docs/NestedEntity.md)
|
148
|
+
- [AylienNewsApi::Parameter](docs/Parameter.md)
|
149
|
+
- [AylienNewsApi::Query](docs/Query.md)
|
103
150
|
- [AylienNewsApi::Rank](docs/Rank.md)
|
104
151
|
- [AylienNewsApi::Rankings](docs/Rankings.md)
|
105
|
-
- [AylienNewsApi::RelatedStories](docs/RelatedStories.md)
|
106
152
|
- [AylienNewsApi::RepresentativeStory](docs/RepresentativeStory.md)
|
107
153
|
- [AylienNewsApi::Scope](docs/Scope.md)
|
154
|
+
- [AylienNewsApi::ScopeLevel](docs/ScopeLevel.md)
|
108
155
|
- [AylienNewsApi::Sentiment](docs/Sentiment.md)
|
156
|
+
- [AylienNewsApi::SentimentPolarity](docs/SentimentPolarity.md)
|
109
157
|
- [AylienNewsApi::Sentiments](docs/Sentiments.md)
|
110
158
|
- [AylienNewsApi::ShareCount](docs/ShareCount.md)
|
111
159
|
- [AylienNewsApi::ShareCounts](docs/ShareCounts.md)
|
112
160
|
- [AylienNewsApi::Source](docs/Source.md)
|
113
|
-
- [AylienNewsApi::Stories](docs/Stories.md)
|
114
|
-
- [AylienNewsApi::Story](docs/Story.md)
|
115
161
|
- [AylienNewsApi::StoryCluster](docs/StoryCluster.md)
|
116
162
|
- [AylienNewsApi::StoryLinks](docs/StoryLinks.md)
|
163
|
+
- [AylienNewsApi::StoryTranslation](docs/StoryTranslation.md)
|
117
164
|
- [AylienNewsApi::StoryTranslations](docs/StoryTranslations.md)
|
118
|
-
- [AylienNewsApi::StoryTranslationsEn](docs/StoryTranslationsEn.md)
|
119
165
|
- [AylienNewsApi::Summary](docs/Summary.md)
|
120
166
|
- [AylienNewsApi::TimeSeries](docs/TimeSeries.md)
|
121
167
|
- [AylienNewsApi::TimeSeriesList](docs/TimeSeriesList.md)
|
122
168
|
- [AylienNewsApi::Trend](docs/Trend.md)
|
123
169
|
- [AylienNewsApi::Trends](docs/Trends.md)
|
170
|
+
- [AylienNewsApi::Warning](docs/Warning.md)
|
171
|
+
|
172
|
+
|
173
|
+
## Documentation for Authorization
|
174
|
+
|
175
|
+
|
176
|
+
### app_id
|
177
|
+
|
178
|
+
|
179
|
+
- **Type**: API key
|
180
|
+
- **API key parameter name**: X-AYLIEN-NewsAPI-Application-ID
|
181
|
+
- **Location**: HTTP header
|
182
|
+
|
183
|
+
### app_key
|
184
|
+
|
185
|
+
|
186
|
+
- **Type**: API key
|
187
|
+
- **API key parameter name**: X-AYLIEN-NewsAPI-Application-Key
|
188
|
+
- **Location**: HTTP header
|
189
|
+
|
data/aylien_news_api.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#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
7
|
|
8
|
-
The version of the OpenAPI document: 4.
|
8
|
+
The version of the OpenAPI document: 4.7.4
|
9
9
|
Contact: support@aylien.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
data/docs/Category.md
CHANGED
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
|
|
8
8
|
**id** | **String** | The ID of the category | [optional]
|
9
9
|
**label** | **String** | The label of the category | [optional]
|
10
10
|
**level** | **Integer** | The level of the category | [optional]
|
11
|
-
**links** | [**CategoryLinks**](CategoryLinks.md) | | [optional]
|
12
11
|
**score** | **Float** | The score of the category | [optional]
|
13
12
|
**taxonomy** | [**CategoryTaxonomy**](CategoryTaxonomy.md) | | [optional]
|
13
|
+
**links** | [**CategoryLinks**](CategoryLinks.md) | | [optional]
|
14
14
|
|
15
15
|
## Code Sample
|
16
16
|
|
@@ -21,9 +21,9 @@ instance = AylienNewsApi::Category.new(confident: null,
|
|
21
21
|
id: null,
|
22
22
|
label: null,
|
23
23
|
level: null,
|
24
|
-
links: null,
|
25
24
|
score: null,
|
26
|
-
taxonomy: null
|
25
|
+
taxonomy: null,
|
26
|
+
links: null)
|
27
27
|
```
|
28
28
|
|
29
29
|
|
data/docs/CategoryLinks.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**parent** | **String** | A URL pointing to the parent category | [optional]
|
8
|
+
**parents** | **Array<String>** | A collection of URLs pointing to the category parents | [optional]
|
8
9
|
**_self** | **String** | A URL pointing to the category | [optional]
|
9
10
|
|
10
11
|
## Code Sample
|
@@ -13,6 +14,7 @@ Name | Type | Description | Notes
|
|
13
14
|
require 'AylienNewsApi'
|
14
15
|
|
15
16
|
instance = AylienNewsApi::CategoryLinks.new(parent: null,
|
17
|
+
parents: null,
|
16
18
|
_self: null)
|
17
19
|
```
|
18
20
|
|
data/docs/DeprecatedStory.md
CHANGED
@@ -17,7 +17,8 @@ Name | Type | Description | Notes
|
|
17
17
|
**links** | [**StoryLinks**](StoryLinks.md) | | [optional]
|
18
18
|
**media** | [**Array<Media>**](Media.md) | An array of extracted media such as images and videos | [optional]
|
19
19
|
**paragraphs_count** | **Integer** | Paragraph count of the story body | [optional]
|
20
|
-
**
|
20
|
+
**published_datetime** | **DateTime** | Publication time of the story, if available, otherwise time of acquisition | [optional]
|
21
|
+
**published_at** | **DateTime** | Acquisition time of the story | [optional]
|
21
22
|
**sentences_count** | **Integer** | Sentence count of the story body | [optional]
|
22
23
|
**sentiment** | [**Sentiments**](Sentiments.md) | | [optional]
|
23
24
|
**social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional]
|
@@ -27,6 +28,7 @@ Name | Type | Description | Notes
|
|
27
28
|
**translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional]
|
28
29
|
**words_count** | **Integer** | Word count of the story body | [optional]
|
29
30
|
**license_type** | **Integer** | License type of the story | [optional]
|
31
|
+
**industries** | [**Array<Category>**](Category.md) | An array of industries categories | [optional]
|
30
32
|
|
31
33
|
## Code Sample
|
32
34
|
|
@@ -46,6 +48,7 @@ instance = AylienNewsApi::DeprecatedStory.new(author: null,
|
|
46
48
|
links: null,
|
47
49
|
media: null,
|
48
50
|
paragraphs_count: null,
|
51
|
+
published_datetime: null,
|
49
52
|
published_at: null,
|
50
53
|
sentences_count: null,
|
51
54
|
sentiment: null,
|
@@ -55,7 +58,8 @@ instance = AylienNewsApi::DeprecatedStory.new(author: null,
|
|
55
58
|
title: null,
|
56
59
|
translations: null,
|
57
60
|
words_count: null,
|
58
|
-
license_type: null
|
61
|
+
license_type: null,
|
62
|
+
industries: null)
|
59
63
|
```
|
60
64
|
|
61
65
|
|
data/docs/DunsNumber.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# AylienNewsApi::DunsNumber
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'AylienNewsApi'
|
13
|
+
|
14
|
+
instance = AylienNewsApi::DunsNumber.new(id: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/Error.md
CHANGED
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**detail** | **String** | | [optional]
|
9
9
|
**id** | **String** | | [optional]
|
10
10
|
**links** | [**ErrorLinks**](ErrorLinks.md) | | [optional]
|
11
|
-
**status** | **
|
11
|
+
**status** | **Float** | | [optional]
|
12
12
|
**title** | **String** | | [optional]
|
13
13
|
|
14
14
|
## Code Sample
|
data/docs/ExternalIds.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# AylienNewsApi::ExternalIds
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**duns** | [**Array<DunsNumber>**](DunsNumber.md) | DUNS number(s) of the entity | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'AylienNewsApi'
|
13
|
+
|
14
|
+
instance = AylienNewsApi::ExternalIds.new(duns: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/Story.md
CHANGED
@@ -17,7 +17,8 @@ Name | Type | Description | Notes
|
|
17
17
|
**links** | [**StoryLinks**](StoryLinks.md) | | [optional]
|
18
18
|
**media** | [**Array<Media>**](Media.md) | An array of extracted media such as images and videos | [optional]
|
19
19
|
**paragraphs_count** | **Integer** | Paragraph count of the story body | [optional]
|
20
|
-
**
|
20
|
+
**published_datetime** | **DateTime** | Publication time of the story, if available, otherwise time of acquisition | [optional]
|
21
|
+
**published_at** | **DateTime** | Acquisition time of the story | [optional]
|
21
22
|
**sentences_count** | **Integer** | Sentence count of the story body | [optional]
|
22
23
|
**sentiment** | [**Sentiments**](Sentiments.md) | | [optional]
|
23
24
|
**social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional]
|
@@ -27,6 +28,7 @@ Name | Type | Description | Notes
|
|
27
28
|
**translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional]
|
28
29
|
**words_count** | **Integer** | Word count of the story body | [optional]
|
29
30
|
**license_type** | **Integer** | License type of the story | [optional]
|
31
|
+
**industries** | [**Array<Category>**](Category.md) | An array of industries categories | [optional]
|
30
32
|
|
31
33
|
## Code Sample
|
32
34
|
|
@@ -46,6 +48,7 @@ instance = AylienNewsApi::Story.new(author: null,
|
|
46
48
|
links: null,
|
47
49
|
media: null,
|
48
50
|
paragraphs_count: null,
|
51
|
+
published_datetime: null,
|
49
52
|
published_at: null,
|
50
53
|
sentences_count: null,
|
51
54
|
sentiment: null,
|
@@ -55,7 +58,8 @@ instance = AylienNewsApi::Story.new(author: null,
|
|
55
58
|
title: null,
|
56
59
|
translations: null,
|
57
60
|
words_count: null,
|
58
|
-
license_type: null
|
61
|
+
license_type: null,
|
62
|
+
industries: null)
|
59
63
|
```
|
60
64
|
|
61
65
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -611,7 +611,7 @@ module AylienNewsApi
|
|
611
611
|
if @api_client.config.client_side_validation && opts[:'not_language'] && !opts[:'not_language'].all? { |item| allowable_values.include?(item) }
|
612
612
|
fail ArgumentError, "invalid value for \"not_language\", must include one of #{allowable_values}"
|
613
613
|
end
|
614
|
-
allowable_values = ["iab-qag", "iptc-subjectcode"]
|
614
|
+
allowable_values = ["iab-qag", "iptc-subjectcode", "aylien"]
|
615
615
|
if @api_client.config.client_side_validation && opts[:'categories_taxonomy'] && !allowable_values.include?(opts[:'categories_taxonomy'])
|
616
616
|
fail ArgumentError, "invalid value for \"categories_taxonomy\", must be one of #{allowable_values}"
|
617
617
|
end
|
@@ -1152,7 +1152,7 @@ module AylienNewsApi
|
|
1152
1152
|
if @api_client.config.client_side_validation && opts[:'not_language'] && !opts[:'not_language'].all? { |item| allowable_values.include?(item) }
|
1153
1153
|
fail ArgumentError, "invalid value for \"not_language\", must include one of #{allowable_values}"
|
1154
1154
|
end
|
1155
|
-
allowable_values = ["iab-qag", "iptc-subjectcode"]
|
1155
|
+
allowable_values = ["iab-qag", "iptc-subjectcode", "aylien"]
|
1156
1156
|
if @api_client.config.client_side_validation && opts[:'categories_taxonomy'] && !allowable_values.include?(opts[:'categories_taxonomy'])
|
1157
1157
|
fail ArgumentError, "invalid value for \"categories_taxonomy\", must be one of #{allowable_values}"
|
1158
1158
|
end
|
@@ -1713,7 +1713,7 @@ module AylienNewsApi
|
|
1713
1713
|
if @api_client.config.client_side_validation && opts[:'not_language'] && !opts[:'not_language'].all? { |item| allowable_values.include?(item) }
|
1714
1714
|
fail ArgumentError, "invalid value for \"not_language\", must include one of #{allowable_values}"
|
1715
1715
|
end
|
1716
|
-
allowable_values = ["iab-qag", "iptc-subjectcode"]
|
1716
|
+
allowable_values = ["iab-qag", "iptc-subjectcode", "aylien"]
|
1717
1717
|
if @api_client.config.client_side_validation && opts[:'categories_taxonomy'] && !allowable_values.include?(opts[:'categories_taxonomy'])
|
1718
1718
|
fail ArgumentError, "invalid value for \"categories_taxonomy\", must be one of #{allowable_values}"
|
1719
1719
|
end
|
@@ -2272,7 +2272,7 @@ module AylienNewsApi
|
|
2272
2272
|
if @api_client.config.client_side_validation && opts[:'not_language'] && !opts[:'not_language'].all? { |item| allowable_values.include?(item) }
|
2273
2273
|
fail ArgumentError, "invalid value for \"not_language\", must include one of #{allowable_values}"
|
2274
2274
|
end
|
2275
|
-
allowable_values = ["iab-qag", "iptc-subjectcode"]
|
2275
|
+
allowable_values = ["iab-qag", "iptc-subjectcode", "aylien"]
|
2276
2276
|
if @api_client.config.client_side_validation && opts[:'categories_taxonomy'] && !allowable_values.include?(opts[:'categories_taxonomy'])
|
2277
2277
|
fail ArgumentError, "invalid value for \"categories_taxonomy\", must be one of #{allowable_values}"
|
2278
2278
|
end
|
@@ -2816,7 +2816,7 @@ module AylienNewsApi
|
|
2816
2816
|
if @api_client.config.client_side_validation && opts[:'not_language'] && !opts[:'not_language'].all? { |item| allowable_values.include?(item) }
|
2817
2817
|
fail ArgumentError, "invalid value for \"not_language\", must include one of #{allowable_values}"
|
2818
2818
|
end
|
2819
|
-
allowable_values = ["iab-qag", "iptc-subjectcode"]
|
2819
|
+
allowable_values = ["iab-qag", "iptc-subjectcode", "aylien"]
|
2820
2820
|
if @api_client.config.client_side_validation && opts[:'categories_taxonomy'] && !allowable_values.include?(opts[:'categories_taxonomy'])
|
2821
2821
|
fail ArgumentError, "invalid value for \"categories_taxonomy\", must be one of #{allowable_values}"
|
2822
2822
|
end
|
@@ -3347,7 +3347,7 @@ module AylienNewsApi
|
|
3347
3347
|
if @api_client.config.client_side_validation && opts[:'not_language'] && !opts[:'not_language'].all? { |item| allowable_values.include?(item) }
|
3348
3348
|
fail ArgumentError, "invalid value for \"not_language\", must include one of #{allowable_values}"
|
3349
3349
|
end
|
3350
|
-
allowable_values = ["iab-qag", "iptc-subjectcode"]
|
3350
|
+
allowable_values = ["iab-qag", "iptc-subjectcode", "aylien"]
|
3351
3351
|
if @api_client.config.client_side_validation && opts[:'categories_taxonomy'] && !allowable_values.include?(opts[:'categories_taxonomy'])
|
3352
3352
|
fail ArgumentError, "invalid value for \"categories_taxonomy\", must be one of #{allowable_values}"
|
3353
3353
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 4.
|
6
|
+
The version of the OpenAPI document: 4.7.4
|
7
7
|
Contact: support@aylien.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|