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.
Files changed (159) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +7 -1
  3. data/README.md +117 -4
  4. data/Rakefile +10 -0
  5. data/aylien_news_api.gemspec +24 -31
  6. data/docs/Author.md +12 -1
  7. data/docs/Autocomplete.md +10 -0
  8. data/docs/Autocompletes.md +9 -0
  9. data/docs/Category.md +19 -3
  10. data/docs/CategoryLinks.md +11 -1
  11. data/docs/CategoryTaxonomy.md +16 -0
  12. data/docs/Cluster.md +29 -0
  13. data/docs/Clusters.md +21 -0
  14. data/docs/Coverages.md +16 -4
  15. data/docs/DefaultApi.md +1310 -636
  16. data/docs/Entities.md +11 -1
  17. data/docs/Entity.md +16 -3
  18. data/docs/EntityLinks.md +9 -0
  19. data/docs/Error.md +16 -2
  20. data/docs/ErrorLinks.md +11 -0
  21. data/docs/Errors.md +9 -0
  22. data/docs/HistogramInterval.md +10 -0
  23. data/docs/Histograms.md +20 -3
  24. data/docs/Location.md +13 -2
  25. data/docs/Media.md +19 -1
  26. data/docs/MediaFormat.md +16 -0
  27. data/docs/MediaType.md +16 -0
  28. data/docs/Rank.md +12 -1
  29. data/docs/Rankings.md +9 -0
  30. data/docs/RelatedStories.md +18 -3
  31. data/docs/RepresentativeStory.md +23 -0
  32. data/docs/Scope.md +15 -3
  33. data/docs/ScopeLevel.md +16 -0
  34. data/docs/Sentiment.md +11 -1
  35. data/docs/SentimentPolarity.md +16 -0
  36. data/docs/Sentiments.md +12 -2
  37. data/docs/ShareCount.md +10 -0
  38. data/docs/ShareCounts.md +12 -0
  39. data/docs/Source.md +27 -8
  40. data/docs/Stories.md +17 -2
  41. data/docs/Story.md +48 -16
  42. data/docs/StoryCluster.md +14 -1
  43. data/docs/StoryLinks.md +14 -1
  44. data/docs/StoryTranslation.md +19 -0
  45. data/docs/StoryTranslations.md +17 -0
  46. data/docs/StoryTranslationsEn.md +21 -0
  47. data/docs/Summary.md +9 -0
  48. data/docs/TimeSeries.md +11 -1
  49. data/docs/TimeSeriesList.md +15 -3
  50. data/docs/Trend.md +11 -1
  51. data/docs/Trends.md +15 -1
  52. data/docs/Warning.md +21 -0
  53. data/git_push.sh +58 -0
  54. data/lib/aylien_news_api.rb +22 -14
  55. data/lib/aylien_news_api/api/default_api.rb +2631 -1120
  56. data/lib/aylien_news_api/api_client.rb +139 -105
  57. data/lib/aylien_news_api/api_error.rb +37 -18
  58. data/lib/aylien_news_api/configuration.rb +80 -42
  59. data/lib/aylien_news_api/models/author.rb +69 -53
  60. data/lib/aylien_news_api/models/autocomplete.rb +55 -39
  61. data/lib/aylien_news_api/models/autocompletes.rb +54 -38
  62. data/lib/aylien_news_api/models/category.rb +88 -97
  63. data/lib/aylien_news_api/models/category_links.rb +66 -50
  64. data/lib/aylien_news_api/models/category_taxonomy.rb +36 -0
  65. data/lib/aylien_news_api/models/cluster.rb +265 -0
  66. data/lib/aylien_news_api/models/clusters.rb +229 -0
  67. data/lib/aylien_news_api/models/coverages.rb +79 -75
  68. data/lib/aylien_news_api/models/entities.rb +67 -51
  69. data/lib/aylien_news_api/models/entity.rb +96 -83
  70. data/lib/aylien_news_api/models/entity_links.rb +54 -38
  71. data/lib/aylien_news_api/models/error.rb +79 -63
  72. data/lib/aylien_news_api/models/error_links.rb +65 -40
  73. data/lib/aylien_news_api/models/errors.rb +54 -38
  74. data/lib/aylien_news_api/models/histogram_interval.rb +55 -39
  75. data/lib/aylien_news_api/models/histograms.rb +99 -63
  76. data/lib/aylien_news_api/models/location.rb +70 -54
  77. data/lib/aylien_news_api/models/media.rb +97 -76
  78. data/lib/aylien_news_api/models/media_format.rb +44 -0
  79. data/lib/aylien_news_api/models/media_type.rb +36 -0
  80. data/lib/aylien_news_api/models/rank.rb +67 -51
  81. data/lib/aylien_news_api/models/rankings.rb +54 -38
  82. data/lib/aylien_news_api/models/related_stories.rb +87 -63
  83. data/lib/aylien_news_api/models/representative_story.rb +237 -0
  84. data/lib/aylien_news_api/models/scope.rb +76 -94
  85. data/lib/aylien_news_api/models/scope_level.rb +37 -0
  86. data/lib/aylien_news_api/models/sentiment.rb +66 -86
  87. data/lib/aylien_news_api/models/sentiment_polarity.rb +37 -0
  88. data/lib/aylien_news_api/models/sentiments.rb +65 -51
  89. data/lib/aylien_news_api/models/share_count.rb +55 -39
  90. data/lib/aylien_news_api/models/share_counts.rb +57 -41
  91. data/lib/aylien_news_api/models/source.rb +114 -99
  92. data/lib/aylien_news_api/models/stories.rb +89 -53
  93. data/lib/aylien_news_api/models/story.rb +191 -161
  94. data/lib/aylien_news_api/models/story_cluster.rb +71 -55
  95. data/lib/aylien_news_api/models/story_links.rb +73 -47
  96. data/lib/aylien_news_api/models/story_translation.rb +217 -0
  97. data/lib/aylien_news_api/models/story_translations.rb +207 -0
  98. data/lib/aylien_news_api/models/story_translations_en.rb +227 -0
  99. data/lib/aylien_news_api/models/summary.rb +54 -38
  100. data/lib/aylien_news_api/models/time_series.rb +66 -50
  101. data/lib/aylien_news_api/models/time_series_list.rb +75 -59
  102. data/lib/aylien_news_api/models/trend.rb +66 -50
  103. data/lib/aylien_news_api/models/trends.rb +80 -44
  104. data/lib/aylien_news_api/models/warning.rb +226 -0
  105. data/lib/aylien_news_api/version.rb +12 -14
  106. data/spec/api/default_api_spec.rb +620 -284
  107. data/spec/api_client_spec.rb +43 -161
  108. data/spec/configuration_spec.rb +22 -19
  109. data/spec/models/author_spec.rb +21 -34
  110. data/spec/models/autocomplete_spec.rb +17 -26
  111. data/spec/models/autocompletes_spec.rb +16 -21
  112. data/spec/models/category_links_spec.rb +19 -28
  113. data/spec/models/category_spec.rb +31 -50
  114. data/spec/models/category_taxonomy_spec.rb +35 -0
  115. data/spec/models/cluster_spec.rb +77 -0
  116. data/spec/models/clusters_spec.rb +53 -0
  117. data/spec/models/coverages_spec.rb +24 -45
  118. data/spec/models/entities_spec.rb +19 -28
  119. data/spec/models/entity_links_spec.rb +16 -21
  120. data/spec/models/entity_spec.rb +25 -46
  121. data/spec/models/error_links_spec.rb +22 -21
  122. data/spec/models/error_spec.rb +27 -52
  123. data/spec/models/errors_spec.rb +16 -21
  124. data/spec/models/histogram_interval_spec.rb +17 -26
  125. data/spec/models/histograms_spec.rb +36 -45
  126. data/spec/models/location_spec.rb +21 -34
  127. data/spec/models/media_format_spec.rb +35 -0
  128. data/spec/models/media_spec.rb +41 -26
  129. data/spec/models/media_type_spec.rb +35 -0
  130. data/spec/models/rank_spec.rb +20 -21
  131. data/spec/models/rankings_spec.rb +15 -16
  132. data/spec/models/related_stories_spec.rb +33 -38
  133. data/spec/models/representative_story_spec.rb +59 -0
  134. data/spec/models/scope_level_spec.rb +35 -0
  135. data/spec/models/scope_spec.rb +23 -40
  136. data/spec/models/sentiment_polarity_spec.rb +35 -0
  137. data/spec/models/sentiment_spec.rb +17 -26
  138. data/spec/models/sentiments_spec.rb +19 -28
  139. data/spec/models/share_count_spec.rb +17 -26
  140. data/spec/models/share_counts_spec.rb +19 -36
  141. data/spec/models/source_spec.rb +54 -49
  142. data/spec/models/stories_spec.rb +32 -33
  143. data/spec/models/story_cluster_spec.rb +23 -44
  144. data/spec/models/story_links_spec.rb +25 -32
  145. data/spec/models/story_spec.rb +65 -134
  146. data/spec/models/story_translation_spec.rb +47 -0
  147. data/spec/models/story_translations_en_spec.rb +53 -0
  148. data/spec/models/story_translations_spec.rb +41 -0
  149. data/spec/models/summary_spec.rb +16 -21
  150. data/spec/models/time_series_list_spec.rb +22 -39
  151. data/spec/models/time_series_spec.rb +19 -28
  152. data/spec/models/trend_spec.rb +19 -28
  153. data/spec/models/trends_spec.rb +30 -27
  154. data/spec/models/warning_spec.rb +53 -0
  155. data/spec/spec_helper.rb +11 -13
  156. metadata +92 -195
  157. data/Gemfile.lock +0 -65
  158. data/LICENSE +0 -13
  159. data/aylien_news_api-0.2.0.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aa2c2f32d6124f25f96c8fa0b56767670006ce1e
4
- data.tar.gz: 531931f7a468cde8ebc03c7d4a8744dbb20e0e94
2
+ SHA256:
3
+ metadata.gz: 103a59a0b85dedac191c3759850adf87723bcd7f4e98ccc5b86a07b9c5897c7d
4
+ data.tar.gz: adc3d91e41664186fa776a30bf6ad37ff85534e8cd8d79af8ba153da178eb789
5
5
  SHA512:
6
- metadata.gz: 074d9de795c0103ef021c38fbcdc354033b955d7d81a6699f70200c0d0c041b29c63998b3bc688f8c57ab225dc1a517f71435aad09ad40fdbfdcaba6556cb56b
7
- data.tar.gz: 189ddf25ba97325a1b72307cb8b8e1018deb8b4df20ce9746477a1363c0c923e525493425309ee4a42e598ae1908c67e28d937199f26d9acef95fe8ee190353c
6
+ metadata.gz: 9520368541991c79a467bf62d04796567963befd52bcc02b691136481573fa1bbf618afcbbfc62d393e4b830c579567b1a54169d4ec82e67e80ffa86e43a509b
7
+ data.tar.gz: 0c64e2a57e8ee735f715f8d4c8bd063d461641743f80590548950e07c0f0bc15e269b317be76329fdf92481cbfac3211fdcb2efd877af71d0f1a37021a1ebe13
data/Gemfile CHANGED
@@ -1,3 +1,9 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
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
- ## Bug Reports
10
- If you've got a bug report, please contact us at support@aylien.com.
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)
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -1,17 +1,16 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # Copyright 2016 Aylien, Inc. All Rights Reserved.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
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 Inc.", "Hamed R. Nik"]
24
- s.email = ["support@aylien.com", "hamed.r.nik@gmail.com"]
22
+ s.authors = ["AYLIEN"]
23
+ s.email = ["info@aylien.com"]
25
24
  s.homepage = "https://newsapi.aylien.com/"
26
- s.summary = "AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content"
27
- s.description = "AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content."
28
- s.license = "Apache-2.0"
29
-
30
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'
32
-
33
- s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
34
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
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"]
@@ -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
- **avatar_url** | **String** | A URL which points to the author avatar | [optional]
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
 
@@ -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
 
@@ -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
 
@@ -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
- **taxonomy** | **String** | The taxonomy of the category | [optional]
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
- **confident** | **BOOLEAN** | It defines whether the extracted category is confident or not | [optional]
11
- **links** | [**CategoryLinks**](CategoryLinks.md) | Related links for the category | [optional]
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
 
@@ -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
+
@@ -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
+
@@ -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
+
@@ -1,13 +1,25 @@
1
1
  # AylienNewsApi::Coverages
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **story_title** | **String** | The input story title | [optional]
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
- **coverages** | [**Array<Story>**](Story.md) | An array of coverages for the input story | [optional]
11
- **clusters** | [**Array<StoryCluster>**](StoryCluster.md) | An array of clusters | [optional]
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