aylien_news_api 0.3.0 → 4.1.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 +7 -1
- data/README.md +117 -4
- data/Rakefile +10 -0
- data/aylien_news_api.gemspec +24 -31
- data/docs/Author.md +12 -1
- data/docs/Autocomplete.md +10 -0
- data/docs/Autocompletes.md +9 -0
- data/docs/Category.md +19 -3
- data/docs/CategoryLinks.md +11 -1
- data/docs/CategoryTaxonomy.md +16 -0
- data/docs/Cluster.md +29 -0
- data/docs/Clusters.md +21 -0
- data/docs/Coverages.md +16 -4
- data/docs/DefaultApi.md +1310 -636
- 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 +11 -0
- data/docs/Errors.md +9 -0
- data/docs/HistogramInterval.md +10 -0
- data/docs/Histograms.md +20 -3
- data/docs/Location.md +13 -2
- data/docs/Media.md +19 -1
- data/docs/MediaFormat.md +16 -0
- data/docs/MediaType.md +16 -0
- data/docs/Rank.md +12 -1
- data/docs/Rankings.md +9 -0
- data/docs/RelatedStories.md +18 -3
- data/docs/RepresentativeStory.md +23 -0
- data/docs/Scope.md +15 -3
- data/docs/ScopeLevel.md +16 -0
- data/docs/Sentiment.md +11 -1
- data/docs/SentimentPolarity.md +16 -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 +17 -2
- data/docs/Story.md +48 -16
- data/docs/StoryCluster.md +14 -1
- data/docs/StoryLinks.md +14 -1
- data/docs/StoryTranslation.md +19 -0
- 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 +15 -1
- data/docs/Warning.md +21 -0
- data/git_push.sh +58 -0
- data/lib/aylien_news_api.rb +22 -14
- data/lib/aylien_news_api/api/default_api.rb +2631 -1120
- data/lib/aylien_news_api/api_client.rb +139 -105
- data/lib/aylien_news_api/api_error.rb +37 -18
- data/lib/aylien_news_api/configuration.rb +80 -42
- data/lib/aylien_news_api/models/author.rb +69 -53
- data/lib/aylien_news_api/models/autocomplete.rb +55 -39
- data/lib/aylien_news_api/models/autocompletes.rb +54 -38
- data/lib/aylien_news_api/models/category.rb +88 -97
- data/lib/aylien_news_api/models/category_links.rb +66 -50
- data/lib/aylien_news_api/models/category_taxonomy.rb +36 -0
- data/lib/aylien_news_api/models/cluster.rb +265 -0
- data/lib/aylien_news_api/models/clusters.rb +229 -0
- data/lib/aylien_news_api/models/coverages.rb +79 -75
- data/lib/aylien_news_api/models/entities.rb +67 -51
- data/lib/aylien_news_api/models/entity.rb +96 -83
- data/lib/aylien_news_api/models/entity_links.rb +54 -38
- data/lib/aylien_news_api/models/error.rb +79 -63
- data/lib/aylien_news_api/models/error_links.rb +65 -40
- data/lib/aylien_news_api/models/errors.rb +54 -38
- data/lib/aylien_news_api/models/histogram_interval.rb +55 -39
- data/lib/aylien_news_api/models/histograms.rb +99 -63
- data/lib/aylien_news_api/models/location.rb +70 -54
- data/lib/aylien_news_api/models/media.rb +97 -76
- data/lib/aylien_news_api/models/media_format.rb +44 -0
- data/lib/aylien_news_api/models/media_type.rb +36 -0
- data/lib/aylien_news_api/models/rank.rb +67 -51
- data/lib/aylien_news_api/models/rankings.rb +54 -38
- data/lib/aylien_news_api/models/related_stories.rb +87 -63
- data/lib/aylien_news_api/models/representative_story.rb +237 -0
- data/lib/aylien_news_api/models/scope.rb +76 -94
- data/lib/aylien_news_api/models/scope_level.rb +37 -0
- data/lib/aylien_news_api/models/sentiment.rb +66 -86
- data/lib/aylien_news_api/models/sentiment_polarity.rb +37 -0
- data/lib/aylien_news_api/models/sentiments.rb +65 -51
- data/lib/aylien_news_api/models/share_count.rb +55 -39
- data/lib/aylien_news_api/models/share_counts.rb +57 -41
- data/lib/aylien_news_api/models/source.rb +114 -99
- data/lib/aylien_news_api/models/stories.rb +89 -53
- data/lib/aylien_news_api/models/story.rb +191 -161
- data/lib/aylien_news_api/models/story_cluster.rb +71 -55
- data/lib/aylien_news_api/models/story_links.rb +73 -47
- data/lib/aylien_news_api/models/story_translation.rb +217 -0
- data/lib/aylien_news_api/models/story_translations.rb +207 -0
- data/lib/aylien_news_api/models/story_translations_en.rb +227 -0
- data/lib/aylien_news_api/models/summary.rb +54 -38
- data/lib/aylien_news_api/models/time_series.rb +66 -50
- data/lib/aylien_news_api/models/time_series_list.rb +75 -59
- data/lib/aylien_news_api/models/trend.rb +66 -50
- data/lib/aylien_news_api/models/trends.rb +80 -44
- data/lib/aylien_news_api/models/warning.rb +226 -0
- data/lib/aylien_news_api/version.rb +12 -14
- data/spec/api/default_api_spec.rb +620 -284
- data/spec/api_client_spec.rb +43 -161
- data/spec/configuration_spec.rb +22 -19
- data/spec/models/author_spec.rb +21 -34
- data/spec/models/autocomplete_spec.rb +17 -26
- data/spec/models/autocompletes_spec.rb +16 -21
- data/spec/models/category_links_spec.rb +19 -28
- data/spec/models/category_spec.rb +31 -50
- data/spec/models/category_taxonomy_spec.rb +35 -0
- data/spec/models/cluster_spec.rb +77 -0
- data/spec/models/clusters_spec.rb +53 -0
- data/spec/models/coverages_spec.rb +24 -45
- data/spec/models/entities_spec.rb +19 -28
- data/spec/models/entity_links_spec.rb +16 -21
- data/spec/models/entity_spec.rb +25 -46
- data/spec/models/error_links_spec.rb +22 -21
- data/spec/models/error_spec.rb +27 -52
- data/spec/models/errors_spec.rb +16 -21
- data/spec/models/histogram_interval_spec.rb +17 -26
- data/spec/models/histograms_spec.rb +36 -45
- data/spec/models/location_spec.rb +21 -34
- data/spec/models/media_format_spec.rb +35 -0
- data/spec/models/media_spec.rb +41 -26
- data/spec/models/media_type_spec.rb +35 -0
- data/spec/models/rank_spec.rb +20 -21
- data/spec/models/rankings_spec.rb +15 -16
- data/spec/models/related_stories_spec.rb +33 -38
- data/spec/models/representative_story_spec.rb +59 -0
- data/spec/models/scope_level_spec.rb +35 -0
- data/spec/models/scope_spec.rb +23 -40
- data/spec/models/sentiment_polarity_spec.rb +35 -0
- data/spec/models/sentiment_spec.rb +17 -26
- data/spec/models/sentiments_spec.rb +19 -28
- data/spec/models/share_count_spec.rb +17 -26
- data/spec/models/share_counts_spec.rb +19 -36
- data/spec/models/source_spec.rb +54 -49
- data/spec/models/stories_spec.rb +32 -33
- data/spec/models/story_cluster_spec.rb +23 -44
- data/spec/models/story_links_spec.rb +25 -32
- data/spec/models/story_spec.rb +65 -134
- data/spec/models/story_translation_spec.rb +47 -0
- 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 +16 -21
- data/spec/models/time_series_list_spec.rb +22 -39
- data/spec/models/time_series_spec.rb +19 -28
- data/spec/models/trend_spec.rb +19 -28
- data/spec/models/trends_spec.rb +30 -27
- data/spec/models/warning_spec.rb +53 -0
- data/spec/spec_helper.rb +11 -13
- metadata +92 -195
- data/Gemfile.lock +0 -65
- data/LICENSE +0 -13
- data/aylien_news_api-0.2.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 103a59a0b85dedac191c3759850adf87723bcd7f4e98ccc5b86a07b9c5897c7d
|
4
|
+
data.tar.gz: adc3d91e41664186fa776a30bf6ad37ff85534e8cd8d79af8ba153da178eb789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9520368541991c79a467bf62d04796567963befd52bcc02b691136481573fa1bbf618afcbbfc62d393e4b830c579567b1a54169d4ec82e67e80ffa86e43a509b
|
7
|
+
data.tar.gz: 0c64e2a57e8ee735f715f8d4c8bd063d461641743f80590548950e07c0f0bc15e269b317be76329fdf92481cbfac3211fdcb2efd877af71d0f1a37021a1ebe13
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,123 @@
|
|
1
|
-
# AYLIEN News API
|
1
|
+
# AYLIEN News API - Ruby SDK
|
2
2
|
|
3
|
-
AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content.
|
3
|
+
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.
|
4
4
|
|
5
5
|
Sign up at [https://newsapi.aylien.com/](https://newsapi.aylien.com/).
|
6
6
|
|
7
7
|
For more documentation see [https://newsapi.aylien.com/docs/](https://newsapi.aylien.com/docs/).
|
8
8
|
|
9
|
-
##
|
10
|
-
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this to the Gemfile:
|
12
|
+
|
13
|
+
gem 'aylien_news_api', '~> 3.0.0'
|
14
|
+
|
15
|
+
### Install from Git
|
16
|
+
|
17
|
+
If the Ruby gem is hosted at a git repository: https://github.com/aylien/aylien_newsapi_ruby, then add the following in the Gemfile:
|
18
|
+
|
19
|
+
gem 'aylien_news_api', :git => 'https://github.com/aylien/aylien_newsapi_ruby.git'
|
20
|
+
|
21
|
+
### Include the Ruby code directly
|
22
|
+
|
23
|
+
Include the Ruby code directly using `-I` as follows:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
ruby -Ilib script.rb
|
27
|
+
```
|
28
|
+
|
29
|
+
## Getting Started
|
30
|
+
|
31
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
32
|
+
```ruby
|
33
|
+
# Load the gem
|
34
|
+
require 'aylien_news_api'
|
35
|
+
|
36
|
+
# Setup authorization
|
37
|
+
AylienNewsApi.configure do |config|
|
38
|
+
config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = ENV['NEWSAPI_APP_ID']
|
39
|
+
config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = ENV['NEWSAPI_APP_KEY']
|
40
|
+
end
|
41
|
+
|
42
|
+
api_instance = AylienNewsApi::DefaultApi.new
|
43
|
+
|
44
|
+
opts = {
|
45
|
+
title: 'trump',
|
46
|
+
published_at_start: "NOW-7DAYS",
|
47
|
+
published_at_end: "NOW",
|
48
|
+
entities_body_links_dbpedia: [
|
49
|
+
'http://dbpedia.org/resource/Donald_Trump',
|
50
|
+
],
|
51
|
+
not_language: ['en'],
|
52
|
+
sort_by: 'social_shares_count.facebook'
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
begin
|
57
|
+
result = api_instance.list_stories(opts)
|
58
|
+
result.stories.each do |story|
|
59
|
+
puts "#{story.title} / #{story.source.name}"
|
60
|
+
end
|
61
|
+
rescue AylienNewsApi::ApiError => e
|
62
|
+
puts "Exception when calling DefaultApi->list_stories: #{e}"
|
63
|
+
puts e.response_body
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
## Documentation for API Endpoints
|
68
|
+
|
69
|
+
All URIs are relative to *https://api.aylien.com/news*
|
70
|
+
|
71
|
+
Class | Method | HTTP request | Description
|
72
|
+
------------ | ------------- | ------------- | -------------
|
73
|
+
*AylienNewsApi::DefaultApi* | [**list_autocompletes**](docs/DefaultApi.md#list_autocompletes) | **GET** /autocompletes | List autocompletes
|
74
|
+
*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
|
+
*AylienNewsApi::DefaultApi* | [**list_histograms**](docs/DefaultApi.md#list_histograms) | **GET** /histograms | List histograms
|
77
|
+
*AylienNewsApi::DefaultApi* | [**list_related_stories**](docs/DefaultApi.md#list_related_stories) | **GET** /related_stories | List related stories
|
78
|
+
*AylienNewsApi::DefaultApi* | [**list_stories**](docs/DefaultApi.md#list_stories) | **GET** /stories | List Stories
|
79
|
+
*AylienNewsApi::DefaultApi* | [**list_time_series**](docs/DefaultApi.md#list_time_series) | **GET** /time_series | List time series
|
80
|
+
*AylienNewsApi::DefaultApi* | [**list_trends**](docs/DefaultApi.md#list_trends) | **GET** /trends | List trends
|
81
|
+
|
82
|
+
|
83
|
+
## Documentation for Models
|
84
|
+
|
85
|
+
- [AylienNewsApi::Author](docs/Author.md)
|
86
|
+
- [AylienNewsApi::Autocomplete](docs/Autocomplete.md)
|
87
|
+
- [AylienNewsApi::Autocompletes](docs/Autocompletes.md)
|
88
|
+
- [AylienNewsApi::Category](docs/Category.md)
|
89
|
+
- [AylienNewsApi::CategoryLinks](docs/CategoryLinks.md)
|
90
|
+
- [AylienNewsApi::Cluster](docs/Cluster.md)
|
91
|
+
- [AylienNewsApi::Clusters](docs/Clusters.md)
|
92
|
+
- [AylienNewsApi::Coverages](docs/Coverages.md)
|
93
|
+
- [AylienNewsApi::Entities](docs/Entities.md)
|
94
|
+
- [AylienNewsApi::Entity](docs/Entity.md)
|
95
|
+
- [AylienNewsApi::EntityLinks](docs/EntityLinks.md)
|
96
|
+
- [AylienNewsApi::Error](docs/Error.md)
|
97
|
+
- [AylienNewsApi::ErrorLinks](docs/ErrorLinks.md)
|
98
|
+
- [AylienNewsApi::Errors](docs/Errors.md)
|
99
|
+
- [AylienNewsApi::HistogramInterval](docs/HistogramInterval.md)
|
100
|
+
- [AylienNewsApi::Histograms](docs/Histograms.md)
|
101
|
+
- [AylienNewsApi::Location](docs/Location.md)
|
102
|
+
- [AylienNewsApi::Media](docs/Media.md)
|
103
|
+
- [AylienNewsApi::Rank](docs/Rank.md)
|
104
|
+
- [AylienNewsApi::Rankings](docs/Rankings.md)
|
105
|
+
- [AylienNewsApi::RelatedStories](docs/RelatedStories.md)
|
106
|
+
- [AylienNewsApi::RepresentativeStory](docs/RepresentativeStory.md)
|
107
|
+
- [AylienNewsApi::Scope](docs/Scope.md)
|
108
|
+
- [AylienNewsApi::Sentiment](docs/Sentiment.md)
|
109
|
+
- [AylienNewsApi::Sentiments](docs/Sentiments.md)
|
110
|
+
- [AylienNewsApi::ShareCount](docs/ShareCount.md)
|
111
|
+
- [AylienNewsApi::ShareCounts](docs/ShareCounts.md)
|
112
|
+
- [AylienNewsApi::Source](docs/Source.md)
|
113
|
+
- [AylienNewsApi::Stories](docs/Stories.md)
|
114
|
+
- [AylienNewsApi::Story](docs/Story.md)
|
115
|
+
- [AylienNewsApi::StoryCluster](docs/StoryCluster.md)
|
116
|
+
- [AylienNewsApi::StoryLinks](docs/StoryLinks.md)
|
117
|
+
- [AylienNewsApi::StoryTranslations](docs/StoryTranslations.md)
|
118
|
+
- [AylienNewsApi::StoryTranslationsEn](docs/StoryTranslationsEn.md)
|
119
|
+
- [AylienNewsApi::Summary](docs/Summary.md)
|
120
|
+
- [AylienNewsApi::TimeSeries](docs/TimeSeries.md)
|
121
|
+
- [AylienNewsApi::TimeSeriesList](docs/TimeSeriesList.md)
|
122
|
+
- [AylienNewsApi::Trend](docs/Trend.md)
|
123
|
+
- [AylienNewsApi::Trends](docs/Trends.md)
|
data/Rakefile
ADDED
data/aylien_news_api.gemspec
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
#
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
# limitations under the License.
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#AYLIEN News API
|
5
|
+
|
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
|
+
|
8
|
+
The version of the OpenAPI document: 3.0
|
9
|
+
Contact: support@aylien.com
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
12
|
+
|
13
|
+
=end
|
15
14
|
|
16
15
|
$:.push File.expand_path("../lib", __FILE__)
|
17
16
|
require "aylien_news_api/version"
|
@@ -20,25 +19,19 @@ Gem::Specification.new do |s|
|
|
20
19
|
s.name = "aylien_news_api"
|
21
20
|
s.version = AylienNewsApi::VERSION
|
22
21
|
s.platform = Gem::Platform::RUBY
|
23
|
-
s.authors = ["AYLIEN
|
24
|
-
s.email = ["
|
22
|
+
s.authors = ["AYLIEN"]
|
23
|
+
s.email = ["info@aylien.com"]
|
25
24
|
s.homepage = "https://newsapi.aylien.com/"
|
26
|
-
s.summary = "AYLIEN
|
27
|
-
s.description = "AYLIEN
|
28
|
-
s.license =
|
29
|
-
|
30
|
-
|
31
|
-
s.add_runtime_dependency '
|
32
|
-
|
33
|
-
s.add_development_dependency 'rspec', '~> 3.
|
34
|
-
|
35
|
-
s.
|
36
|
-
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
-
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
|
40
|
-
|
41
|
-
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
25
|
+
s.summary = "AYLIEN's officially supported Ruby client library for accessing News API"
|
26
|
+
s.description = "AYLIEN's officially supported Ruby client library for accessing News API"
|
27
|
+
s.license = 'Apache-2.0'
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.14.0'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
35
|
s.test_files = `find spec/*`.split("\n")
|
43
36
|
s.executables = []
|
44
37
|
s.require_paths = ["lib"]
|
data/docs/Author.md
CHANGED
@@ -1,10 +1,21 @@
|
|
1
1
|
# AylienNewsApi::Author
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**avatar_url** | **String** | A URL which points to the author avatar | [optional]
|
6
8
|
**id** | **Integer** | A unique identification for the author | [optional]
|
7
9
|
**name** | **String** | The extracted author full name | [optional]
|
8
|
-
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'AylienNewsApi'
|
15
|
+
|
16
|
+
instance = AylienNewsApi::Author.new(avatar_url: null,
|
17
|
+
id: null,
|
18
|
+
name: null)
|
19
|
+
```
|
9
20
|
|
10
21
|
|
data/docs/Autocomplete.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# AylienNewsApi::Autocomplete
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**id** | **String** | ID of the autocomplete | [optional]
|
7
8
|
**text** | **String** | Text of the autocomplete | [optional]
|
8
9
|
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'AylienNewsApi'
|
14
|
+
|
15
|
+
instance = AylienNewsApi::Autocomplete.new(id: null,
|
16
|
+
text: null)
|
17
|
+
```
|
18
|
+
|
9
19
|
|
data/docs/Autocompletes.md
CHANGED
@@ -1,8 +1,17 @@
|
|
1
1
|
# AylienNewsApi::Autocompletes
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**autocompletes** | [**Array<Autocomplete>**](Autocomplete.md) | An array of autocompletes | [optional]
|
7
8
|
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'AylienNewsApi'
|
13
|
+
|
14
|
+
instance = AylienNewsApi::Autocompletes.new(autocompletes: null)
|
15
|
+
```
|
16
|
+
|
8
17
|
|
data/docs/Category.md
CHANGED
@@ -1,13 +1,29 @@
|
|
1
1
|
# AylienNewsApi::Category
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**confident** | **Boolean** | It defines whether the extracted category is confident or not | [optional]
|
6
8
|
**id** | **String** | The ID of the category | [optional]
|
7
|
-
**
|
9
|
+
**label** | **String** | The label of the category | [optional]
|
8
10
|
**level** | **Integer** | The level of the category | [optional]
|
11
|
+
**links** | [**CategoryLinks**](CategoryLinks.md) | | [optional]
|
9
12
|
**score** | **Float** | The score of the category | [optional]
|
10
|
-
**
|
11
|
-
|
13
|
+
**taxonomy** | [**CategoryTaxonomy**](CategoryTaxonomy.md) | | [optional]
|
14
|
+
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'AylienNewsApi'
|
19
|
+
|
20
|
+
instance = AylienNewsApi::Category.new(confident: null,
|
21
|
+
id: null,
|
22
|
+
label: null,
|
23
|
+
level: null,
|
24
|
+
links: null,
|
25
|
+
score: null,
|
26
|
+
taxonomy: null)
|
27
|
+
```
|
12
28
|
|
13
29
|
|
data/docs/CategoryLinks.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# AylienNewsApi::CategoryLinks
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**_self** | **String** | A URL pointing to the category | [optional]
|
7
7
|
**parent** | **String** | A URL pointing to the parent category | [optional]
|
8
|
+
**_self** | **String** | A URL pointing to the category | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'AylienNewsApi'
|
14
|
+
|
15
|
+
instance = AylienNewsApi::CategoryLinks.new(parent: null,
|
16
|
+
_self: null)
|
17
|
+
```
|
8
18
|
|
9
19
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# AylienNewsApi::CategoryTaxonomy
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'AylienNewsApi'
|
12
|
+
|
13
|
+
instance = AylienNewsApi::CategoryTaxonomy.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
data/docs/Cluster.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# AylienNewsApi::Cluster
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**earliest_story** | **DateTime** | Publication date of the earliest story in cluster | [optional]
|
8
|
+
**id** | **Integer** | ID of the cluster which is a unique identification | [optional]
|
9
|
+
**latest_story** | **DateTime** | Publication date of the latest story in cluster | [optional]
|
10
|
+
**location** | [**Location**](Location.md) | | [optional]
|
11
|
+
**representative_story** | [**RepresentativeStory**](RepresentativeStory.md) | | [optional]
|
12
|
+
**story_count** | **Integer** | Number of stories associated with the cluster | [optional]
|
13
|
+
**time** | **DateTime** | Time of the event | [optional]
|
14
|
+
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'AylienNewsApi'
|
19
|
+
|
20
|
+
instance = AylienNewsApi::Cluster.new(earliest_story: null,
|
21
|
+
id: null,
|
22
|
+
latest_story: null,
|
23
|
+
location: null,
|
24
|
+
representative_story: null,
|
25
|
+
story_count: null,
|
26
|
+
time: null)
|
27
|
+
```
|
28
|
+
|
29
|
+
|
data/docs/Clusters.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# AylienNewsApi::Clusters
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**cluster_count** | **Integer** | The total number of clusters | [optional]
|
8
|
+
**clusters** | [**Array<Cluster>**](Cluster.md) | An array of clusters | [optional]
|
9
|
+
**next_page_cursor** | **String** | The next page cursor | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'AylienNewsApi'
|
15
|
+
|
16
|
+
instance = AylienNewsApi::Clusters.new(cluster_count: null,
|
17
|
+
clusters: null,
|
18
|
+
next_page_cursor: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/Coverages.md
CHANGED
@@ -1,13 +1,25 @@
|
|
1
1
|
# AylienNewsApi::Coverages
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
+
**coverages** | [**Array<Story>**](Story.md) | An array of coverages for the input story | [optional]
|
7
8
|
**story_body** | **String** | The input story body | [optional]
|
8
|
-
**story_published_at** | **DateTime** | The input story published date | [optional]
|
9
9
|
**story_language** | **String** | The input story language | [optional]
|
10
|
-
**
|
11
|
-
**
|
10
|
+
**story_published_at** | **DateTime** | The input story published date | [optional]
|
11
|
+
**story_title** | **String** | The input story title | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'AylienNewsApi'
|
17
|
+
|
18
|
+
instance = AylienNewsApi::Coverages.new(coverages: null,
|
19
|
+
story_body: null,
|
20
|
+
story_language: null,
|
21
|
+
story_published_at: null,
|
22
|
+
story_title: null)
|
23
|
+
```
|
12
24
|
|
13
25
|
|