aylien_news_api 0.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +7 -1
  3. data/README.md +36 -47
  4. data/Rakefile +10 -0
  5. data/aylien_news_api.gemspec +25 -32
  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 -576
  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 +9 -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 +21 -0
  29. data/docs/Rankings.md +17 -0
  30. data/docs/RelatedStories.md +14 -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 -3
  40. data/docs/Stories.md +15 -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/git_push.sh +58 -0
  53. data/lib/aylien_news_api.rb +23 -14
  54. data/lib/aylien_news_api/api/default_api.rb +2755 -892
  55. data/lib/aylien_news_api/api_client.rb +141 -102
  56. data/lib/aylien_news_api/api_error.rb +37 -18
  57. data/lib/aylien_news_api/configuration.rb +94 -43
  58. data/lib/aylien_news_api/models/author.rb +69 -53
  59. data/lib/aylien_news_api/models/autocomplete.rb +55 -39
  60. data/lib/aylien_news_api/models/autocompletes.rb +54 -38
  61. data/lib/aylien_news_api/models/category.rb +88 -97
  62. data/lib/aylien_news_api/models/category_links.rb +66 -50
  63. data/lib/aylien_news_api/models/category_taxonomy.rb +36 -0
  64. data/lib/aylien_news_api/models/cluster.rb +265 -0
  65. data/lib/aylien_news_api/models/clusters.rb +229 -0
  66. data/lib/aylien_news_api/models/coverages.rb +79 -75
  67. data/lib/aylien_news_api/models/entities.rb +67 -51
  68. data/lib/aylien_news_api/models/entity.rb +100 -81
  69. data/lib/aylien_news_api/models/entity_links.rb +54 -38
  70. data/lib/aylien_news_api/models/error.rb +79 -63
  71. data/lib/aylien_news_api/models/error_links.rb +54 -38
  72. data/lib/aylien_news_api/models/errors.rb +54 -38
  73. data/lib/aylien_news_api/models/histogram_interval.rb +55 -39
  74. data/lib/aylien_news_api/models/histograms.rb +99 -63
  75. data/lib/aylien_news_api/models/location.rb +70 -54
  76. data/lib/aylien_news_api/models/media.rb +97 -76
  77. data/lib/aylien_news_api/models/media_format.rb +44 -0
  78. data/lib/aylien_news_api/models/media_type.rb +36 -0
  79. data/lib/aylien_news_api/models/rank.rb +227 -0
  80. data/lib/aylien_news_api/models/rankings.rb +208 -0
  81. data/lib/aylien_news_api/models/related_stories.rb +72 -68
  82. data/lib/aylien_news_api/models/representative_story.rb +237 -0
  83. data/lib/aylien_news_api/models/scope.rb +76 -94
  84. data/lib/aylien_news_api/models/scope_level.rb +37 -0
  85. data/lib/aylien_news_api/models/sentiment.rb +70 -84
  86. data/lib/aylien_news_api/models/sentiment_polarity.rb +37 -0
  87. data/lib/aylien_news_api/models/sentiments.rb +65 -51
  88. data/lib/aylien_news_api/models/share_count.rb +55 -39
  89. data/lib/aylien_news_api/models/share_counts.rb +57 -41
  90. data/lib/aylien_news_api/models/source.rb +129 -64
  91. data/lib/aylien_news_api/models/stories.rb +79 -55
  92. data/lib/aylien_news_api/models/story.rb +191 -161
  93. data/lib/aylien_news_api/models/story_cluster.rb +71 -55
  94. data/lib/aylien_news_api/models/story_links.rb +73 -47
  95. data/lib/aylien_news_api/models/story_translation.rb +217 -0
  96. data/lib/aylien_news_api/models/story_translations.rb +207 -0
  97. data/lib/aylien_news_api/models/story_translations_en.rb +227 -0
  98. data/lib/aylien_news_api/models/summary.rb +54 -38
  99. data/lib/aylien_news_api/models/time_series.rb +66 -50
  100. data/lib/aylien_news_api/models/time_series_list.rb +75 -59
  101. data/lib/aylien_news_api/models/trend.rb +66 -50
  102. data/lib/aylien_news_api/models/trends.rb +80 -44
  103. data/lib/aylien_news_api/version.rb +12 -14
  104. data/spec/api/default_api_spec.rb +620 -284
  105. data/spec/api_client_spec.rb +43 -161
  106. data/spec/configuration_spec.rb +22 -19
  107. data/spec/models/author_spec.rb +21 -34
  108. data/spec/models/autocomplete_spec.rb +17 -26
  109. data/spec/models/autocompletes_spec.rb +16 -21
  110. data/spec/models/category_links_spec.rb +19 -28
  111. data/spec/models/category_spec.rb +31 -50
  112. data/spec/models/category_taxonomy_spec.rb +35 -0
  113. data/spec/models/cluster_spec.rb +77 -0
  114. data/spec/models/clusters_spec.rb +53 -0
  115. data/spec/models/coverages_spec.rb +24 -45
  116. data/spec/models/entities_spec.rb +19 -28
  117. data/spec/models/entity_links_spec.rb +16 -21
  118. data/spec/models/entity_spec.rb +25 -46
  119. data/spec/models/error_links_spec.rb +16 -21
  120. data/spec/models/error_spec.rb +27 -52
  121. data/spec/models/errors_spec.rb +16 -21
  122. data/spec/models/histogram_interval_spec.rb +17 -26
  123. data/spec/models/histograms_spec.rb +36 -45
  124. data/spec/models/location_spec.rb +21 -34
  125. data/spec/models/media_format_spec.rb +35 -0
  126. data/spec/models/media_spec.rb +41 -26
  127. data/spec/models/media_type_spec.rb +35 -0
  128. data/spec/models/rank_spec.rb +53 -0
  129. data/spec/models/rankings_spec.rb +41 -0
  130. data/spec/models/related_stories_spec.rb +21 -38
  131. data/spec/models/representative_story_spec.rb +59 -0
  132. data/spec/models/scope_level_spec.rb +35 -0
  133. data/spec/models/scope_spec.rb +23 -40
  134. data/spec/models/sentiment_polarity_spec.rb +35 -0
  135. data/spec/models/sentiment_spec.rb +17 -26
  136. data/spec/models/sentiments_spec.rb +19 -28
  137. data/spec/models/share_count_spec.rb +17 -26
  138. data/spec/models/share_counts_spec.rb +19 -36
  139. data/spec/models/source_spec.rb +54 -49
  140. data/spec/models/stories_spec.rb +26 -33
  141. data/spec/models/story_cluster_spec.rb +23 -44
  142. data/spec/models/story_links_spec.rb +25 -32
  143. data/spec/models/story_spec.rb +65 -134
  144. data/spec/models/story_translation_spec.rb +47 -0
  145. data/spec/models/story_translations_en_spec.rb +53 -0
  146. data/spec/models/story_translations_spec.rb +41 -0
  147. data/spec/models/summary_spec.rb +16 -21
  148. data/spec/models/time_series_list_spec.rb +22 -39
  149. data/spec/models/time_series_spec.rb +19 -28
  150. data/spec/models/trend_spec.rb +19 -28
  151. data/spec/models/trends_spec.rb +30 -27
  152. data/spec/spec_helper.rb +11 -13
  153. metadata +95 -193
  154. data/Gemfile.lock +0 -65
  155. data/LICENSE +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 43cf58c6e6a815ab918358b4e04485e23c7c0108
4
- data.tar.gz: bc3866443b77211eaa72d638d58a28c88e93b5ca
2
+ SHA256:
3
+ metadata.gz: 49747d64a222470fc36e5962a1d62838fbffe4be02d1a434a4347ed962546d03
4
+ data.tar.gz: '02586f0009083761258e5bf44a603ae94f6f6a6303cb85a603f33a927a4818ae'
5
5
  SHA512:
6
- metadata.gz: c6e8415b22f3af42361240206b3fd15e99657b76eb45ca4075b9141656cfc4bfe642ff8793f947d5ab12bb0431035bc247e475c449778432d4aab9996cb1bf96
7
- data.tar.gz: 255e0a58ab1d34bc29fe5ac1ac3f92f2de305a583541f65a09219b62d68a3eee3a8c89bcf4050ed557195a08dec16036e5db4a8858e51288c4537582c2c84099
6
+ metadata.gz: 1e84be4e7946ae32e0a8285a9b5fc4147b95491e875618e819962dbbb56e3a1401cc20f53e995f3251f42e95c56d777c30659d811784f451468588c8f86ba874
7
+ data.tar.gz: '0935c028ce823eea885b9891850f9cb3535ecfc8016ac962a921bc1ba72a961636d19ce63d3145ec2ae2935e5ace78555c1db8a1efe5966e2767ec3009e11dbe'
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,30 +1,30 @@
1
- # AYLIEN News API
2
- [![Gem Version](https://badge.fury.io/rb/aylien_news_api.svg)](https://badge.fury.io/rb/aylien_news_api)
1
+ # AYLIEN News API - Ruby SDK
3
2
 
4
- The Ruby gem for the AYLIEN News API
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.
5
4
 
6
- AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. If you haven't already done so, you will need to [sign up](https://newsapi.aylien.com/signup).
5
+ Sign up at [https://newsapi.aylien.com/](https://newsapi.aylien.com/).
7
6
 
8
- Visit our [interactive documentation](https://newsapi.aylien.com/docs/#swagger-ui-container) to familiarize yourself with the API.
7
+ For more documentation see [https://newsapi.aylien.com/docs/](https://newsapi.aylien.com/docs/).
9
8
 
10
9
  ## Installation
11
10
 
12
- ### RubyGems
13
-
14
11
  Add this to the Gemfile:
15
12
 
16
- gem 'aylien_news_api'
13
+ gem 'aylien_news_api', '~> 3.0.0'
17
14
 
18
- or install it directly:
15
+ ### Install from Git
19
16
 
20
- gem install aylien_news_api
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:
21
18
 
22
- ### Git
19
+ gem 'aylien_news_api', :git => 'https://github.com/aylien/aylien_newsapi_ruby.git'
23
20
 
24
- Add the following in the Gemfile:
21
+ ### Include the Ruby code directly
25
22
 
26
- gem 'aylien_news_api', :git => 'https://github.com/AYLIEN/aylien_newsapi_ruby.git'
23
+ Include the Ruby code directly using `-I` as follows:
27
24
 
25
+ ```shell
26
+ ruby -Ilib script.rb
27
+ ```
28
28
 
29
29
  ## Getting Started
30
30
 
@@ -35,48 +35,46 @@ require 'aylien_news_api'
35
35
 
36
36
  # Setup authorization
37
37
  AylienNewsApi.configure do |config|
38
- # Configure API key authorization: app_id
39
- config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
40
-
41
- # Configure API key authorization: app_key
42
- config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
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']
43
40
  end
44
41
 
45
42
  api_instance = AylienNewsApi::DefaultApi.new
46
43
 
47
44
  opts = {
48
- :title => 'trump',
49
- :published_at_start => "NOW-7DAYS",
50
- :published_at_end => "NOW",
51
- :entities_body_links_dbpedia => [
45
+ title: 'trump',
46
+ published_at_start: "NOW-7DAYS",
47
+ published_at_end: "NOW",
48
+ entities_body_links_dbpedia: [
52
49
  'http://dbpedia.org/resource/Donald_Trump',
53
- 'http://dbpedia.org/resource/Hillary_Rodham_Clinton'
54
50
  ],
55
- :language => ['en'],
56
- :sort_by => 'social_shares_count.facebook'
51
+ not_language: ['en'],
52
+ sort_by: 'social_shares_count.facebook'
57
53
  }
58
54
 
59
55
 
60
56
  begin
61
- #List stories
62
57
  result = api_instance.list_stories(opts)
63
- puts result
58
+ result.stories.each do |story|
59
+ puts "#{story.title} / #{story.source.name}"
60
+ end
64
61
  rescue AylienNewsApi::ApiError => e
65
62
  puts "Exception when calling DefaultApi->list_stories: #{e}"
63
+ puts e.response_body
66
64
  end
67
-
68
65
  ```
69
66
 
70
67
  ## Documentation for API Endpoints
71
68
 
72
- All URIs are relative to *https://api.newsapi.aylien.com/api/v1*
69
+ All URIs are relative to *https://api.aylien.com/news*
73
70
 
74
71
  Class | Method | HTTP request | Description
75
72
  ------------ | ------------- | ------------- | -------------
76
73
  *AylienNewsApi::DefaultApi* | [**list_autocompletes**](docs/DefaultApi.md#list_autocompletes) | **GET** /autocompletes | List autocompletes
77
- *AylienNewsApi::DefaultApi* | [**list_coverages**](docs/DefaultApi.md#list_coverages) | **POST** /coverages | List coverages
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
78
76
  *AylienNewsApi::DefaultApi* | [**list_histograms**](docs/DefaultApi.md#list_histograms) | **GET** /histograms | List histograms
79
- *AylienNewsApi::DefaultApi* | [**list_related_stories**](docs/DefaultApi.md#list_related_stories) | **POST** /related_stories | List related stories
77
+ *AylienNewsApi::DefaultApi* | [**list_related_stories**](docs/DefaultApi.md#list_related_stories) | **GET** /related_stories | List related stories
80
78
  *AylienNewsApi::DefaultApi* | [**list_stories**](docs/DefaultApi.md#list_stories) | **GET** /stories | List Stories
81
79
  *AylienNewsApi::DefaultApi* | [**list_time_series**](docs/DefaultApi.md#list_time_series) | **GET** /time_series | List time series
82
80
  *AylienNewsApi::DefaultApi* | [**list_trends**](docs/DefaultApi.md#list_trends) | **GET** /trends | List trends
@@ -89,6 +87,8 @@ Class | Method | HTTP request | Description
89
87
  - [AylienNewsApi::Autocompletes](docs/Autocompletes.md)
90
88
  - [AylienNewsApi::Category](docs/Category.md)
91
89
  - [AylienNewsApi::CategoryLinks](docs/CategoryLinks.md)
90
+ - [AylienNewsApi::Cluster](docs/Cluster.md)
91
+ - [AylienNewsApi::Clusters](docs/Clusters.md)
92
92
  - [AylienNewsApi::Coverages](docs/Coverages.md)
93
93
  - [AylienNewsApi::Entities](docs/Entities.md)
94
94
  - [AylienNewsApi::Entity](docs/Entity.md)
@@ -100,7 +100,10 @@ Class | Method | HTTP request | Description
100
100
  - [AylienNewsApi::Histograms](docs/Histograms.md)
101
101
  - [AylienNewsApi::Location](docs/Location.md)
102
102
  - [AylienNewsApi::Media](docs/Media.md)
103
+ - [AylienNewsApi::Rank](docs/Rank.md)
104
+ - [AylienNewsApi::Rankings](docs/Rankings.md)
103
105
  - [AylienNewsApi::RelatedStories](docs/RelatedStories.md)
106
+ - [AylienNewsApi::RepresentativeStory](docs/RepresentativeStory.md)
104
107
  - [AylienNewsApi::Scope](docs/Scope.md)
105
108
  - [AylienNewsApi::Sentiment](docs/Sentiment.md)
106
109
  - [AylienNewsApi::Sentiments](docs/Sentiments.md)
@@ -111,24 +114,10 @@ Class | Method | HTTP request | Description
111
114
  - [AylienNewsApi::Story](docs/Story.md)
112
115
  - [AylienNewsApi::StoryCluster](docs/StoryCluster.md)
113
116
  - [AylienNewsApi::StoryLinks](docs/StoryLinks.md)
117
+ - [AylienNewsApi::StoryTranslations](docs/StoryTranslations.md)
118
+ - [AylienNewsApi::StoryTranslationsEn](docs/StoryTranslationsEn.md)
114
119
  - [AylienNewsApi::Summary](docs/Summary.md)
115
120
  - [AylienNewsApi::TimeSeries](docs/TimeSeries.md)
116
121
  - [AylienNewsApi::TimeSeriesList](docs/TimeSeriesList.md)
117
122
  - [AylienNewsApi::Trend](docs/Trend.md)
118
123
  - [AylienNewsApi::Trends](docs/Trends.md)
119
-
120
-
121
- ## Documentation for Authorization
122
-
123
-
124
- ### app_id
125
-
126
- - **Type**: API key
127
- - **API key parameter name**: X-AYLIEN-NewsAPI-Application-ID
128
- - **Location**: HTTP header
129
-
130
- ### app_key
131
-
132
- - **Type**: API key
133
- - **API key parameter name**: X-AYLIEN-NewsAPI-Application-Key
134
- - **Location**: HTTP header
@@ -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 Ramezanian Nik"]
24
- s.email = ["support@aylien.com", "hamed.r.nik@gmail.com"]
25
- s.homepage = "https://github.com/AYLIEN/aylien_newsapi_ruby"
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? }
22
+ s.authors = ["AYLIEN"]
23
+ s.email = ["info@aylien.com"]
24
+ s.homepage = "https://newsapi.aylien.com/"
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
+