aylien_news_api 1.0.0 → 3.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 (135) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +6 -0
  3. data/README.md +117 -4
  4. data/Rakefile +2 -0
  5. data/aylien_news_api.gemspec +16 -27
  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 +17 -3
  10. data/docs/CategoryLinks.md +11 -1
  11. data/docs/Cluster.md +29 -0
  12. data/docs/Clusters.md +21 -0
  13. data/docs/Coverages.md +16 -4
  14. data/docs/DefaultApi.md +1250 -1117
  15. data/docs/Entities.md +11 -1
  16. data/docs/Entity.md +16 -3
  17. data/docs/EntityLinks.md +9 -0
  18. data/docs/Error.md +16 -2
  19. data/docs/ErrorLinks.md +9 -0
  20. data/docs/Errors.md +9 -0
  21. data/docs/HistogramInterval.md +10 -0
  22. data/docs/Histograms.md +16 -3
  23. data/docs/Location.md +13 -2
  24. data/docs/Media.md +17 -3
  25. data/docs/Rank.md +12 -1
  26. data/docs/Rankings.md +9 -0
  27. data/docs/RelatedStories.md +14 -3
  28. data/docs/RepresentativeStory.md +23 -0
  29. data/docs/Scope.md +14 -2
  30. data/docs/Sentiment.md +10 -0
  31. data/docs/Sentiments.md +12 -2
  32. data/docs/ShareCount.md +10 -0
  33. data/docs/ShareCounts.md +12 -0
  34. data/docs/Source.md +27 -8
  35. data/docs/Stories.md +11 -2
  36. data/docs/Story.md +48 -16
  37. data/docs/StoryCluster.md +14 -1
  38. data/docs/StoryLinks.md +14 -2
  39. data/docs/StoryTranslations.md +17 -0
  40. data/docs/StoryTranslationsEn.md +21 -0
  41. data/docs/Summary.md +9 -0
  42. data/docs/TimeSeries.md +11 -1
  43. data/docs/TimeSeriesList.md +15 -3
  44. data/docs/Trend.md +11 -1
  45. data/docs/Trends.md +11 -1
  46. data/git_push.sh +58 -0
  47. data/lib/aylien_news_api.rb +11 -10
  48. data/lib/aylien_news_api/api/default_api.rb +2065 -1801
  49. data/lib/aylien_news_api/api_client.rb +129 -108
  50. data/lib/aylien_news_api/api_error.rb +25 -10
  51. data/lib/aylien_news_api/configuration.rb +69 -33
  52. data/lib/aylien_news_api/models/author.rb +50 -46
  53. data/lib/aylien_news_api/models/autocomplete.rb +36 -32
  54. data/lib/aylien_news_api/models/autocompletes.rb +35 -31
  55. data/lib/aylien_news_api/models/category.rb +63 -59
  56. data/lib/aylien_news_api/models/category_links.rb +47 -43
  57. data/lib/aylien_news_api/models/cluster.rb +255 -0
  58. data/lib/aylien_news_api/models/clusters.rb +219 -0
  59. data/lib/aylien_news_api/models/coverages.rb +60 -68
  60. data/lib/aylien_news_api/models/entities.rb +48 -44
  61. data/lib/aylien_news_api/models/entity.rb +71 -69
  62. data/lib/aylien_news_api/models/entity_links.rb +35 -31
  63. data/lib/aylien_news_api/models/error.rb +60 -56
  64. data/lib/aylien_news_api/models/error_links.rb +35 -31
  65. data/lib/aylien_news_api/models/errors.rb +35 -31
  66. data/lib/aylien_news_api/models/histogram_interval.rb +36 -32
  67. data/lib/aylien_news_api/models/histograms.rb +62 -58
  68. data/lib/aylien_news_api/models/location.rb +51 -47
  69. data/lib/aylien_news_api/models/media.rb +81 -76
  70. data/lib/aylien_news_api/models/rank.rb +48 -44
  71. data/lib/aylien_news_api/models/rankings.rb +35 -31
  72. data/lib/aylien_news_api/models/related_stories.rb +53 -61
  73. data/lib/aylien_news_api/models/representative_story.rb +227 -0
  74. data/lib/aylien_news_api/models/scope.rb +59 -54
  75. data/lib/aylien_news_api/models/sentiment.rb +41 -37
  76. data/lib/aylien_news_api/models/sentiments.rb +46 -44
  77. data/lib/aylien_news_api/models/share_count.rb +36 -32
  78. data/lib/aylien_news_api/models/share_counts.rb +38 -34
  79. data/lib/aylien_news_api/models/source.rb +95 -92
  80. data/lib/aylien_news_api/models/stories.rb +47 -55
  81. data/lib/aylien_news_api/models/story.rb +172 -154
  82. data/lib/aylien_news_api/models/story_cluster.rb +52 -48
  83. data/lib/aylien_news_api/models/story_links.rb +58 -54
  84. data/lib/aylien_news_api/models/story_translations.rb +197 -0
  85. data/lib/aylien_news_api/models/story_translations_en.rb +217 -0
  86. data/lib/aylien_news_api/models/summary.rb +35 -31
  87. data/lib/aylien_news_api/models/time_series.rb +47 -43
  88. data/lib/aylien_news_api/models/time_series_list.rb +56 -52
  89. data/lib/aylien_news_api/models/trend.rb +47 -43
  90. data/lib/aylien_news_api/models/trends.rb +48 -44
  91. data/lib/aylien_news_api/version.rb +7 -11
  92. data/spec/api/default_api_spec.rb +569 -533
  93. data/spec/api_client_spec.rb +34 -76
  94. data/spec/configuration_spec.rb +14 -18
  95. data/spec/models/author_spec.rb +15 -18
  96. data/spec/models/autocomplete_spec.rb +11 -14
  97. data/spec/models/autocompletes_spec.rb +10 -13
  98. data/spec/models/category_links_spec.rb +13 -16
  99. data/spec/models/category_spec.rb +24 -27
  100. data/spec/models/cluster_spec.rb +77 -0
  101. data/spec/models/clusters_spec.rb +53 -0
  102. data/spec/models/coverages_spec.rb +17 -26
  103. data/spec/models/entities_spec.rb +13 -16
  104. data/spec/models/entity_links_spec.rb +10 -13
  105. data/spec/models/entity_spec.rb +19 -22
  106. data/spec/models/error_links_spec.rb +10 -13
  107. data/spec/models/error_spec.rb +21 -24
  108. data/spec/models/errors_spec.rb +10 -13
  109. data/spec/models/histogram_interval_spec.rb +11 -14
  110. data/spec/models/histograms_spec.rb +18 -21
  111. data/spec/models/location_spec.rb +15 -18
  112. data/spec/models/media_spec.rb +29 -32
  113. data/spec/models/rank_spec.rb +15 -18
  114. data/spec/models/rankings_spec.rb +10 -13
  115. data/spec/models/related_stories_spec.rb +15 -24
  116. data/spec/models/representative_story_spec.rb +59 -0
  117. data/spec/models/scope_spec.rb +21 -24
  118. data/spec/models/sentiment_spec.rb +15 -18
  119. data/spec/models/sentiments_spec.rb +13 -16
  120. data/spec/models/share_count_spec.rb +11 -14
  121. data/spec/models/share_counts_spec.rb +13 -16
  122. data/spec/models/source_spec.rb +29 -32
  123. data/spec/models/stories_spec.rb +13 -22
  124. data/spec/models/story_cluster_spec.rb +17 -20
  125. data/spec/models/story_links_spec.rb +17 -20
  126. data/spec/models/story_spec.rb +59 -50
  127. data/spec/models/story_translations_en_spec.rb +53 -0
  128. data/spec/models/story_translations_spec.rb +41 -0
  129. data/spec/models/summary_spec.rb +10 -13
  130. data/spec/models/time_series_list_spec.rb +16 -19
  131. data/spec/models/time_series_spec.rb +13 -16
  132. data/spec/models/trend_spec.rb +13 -16
  133. data/spec/models/trends_spec.rb +13 -16
  134. data/spec/spec_helper.rb +6 -10
  135. metadata +68 -194
@@ -1,9 +1,19 @@
1
1
  # AylienNewsApi::Entities
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **title** | [**Array<Entity>**](Entity.md) | An array of extracted entities from the story title | [optional]
7
7
  **body** | [**Array<Entity>**](Entity.md) | An array of extracted entities from the story body | [optional]
8
+ **title** | [**Array<Entity>**](Entity.md) | An array of extracted entities from the story title | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::Entities.new(body: null,
16
+ title: null)
17
+ ```
8
18
 
9
19
 
@@ -1,12 +1,25 @@
1
1
  # AylienNewsApi::Entity
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **text** | **String** | The entity text | [optional]
7
+ **indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
8
+ **links** | [**EntityLinks**](EntityLinks.md) | | [optional]
7
9
  **score** | **Float** | The entity score | [optional]
10
+ **text** | **String** | The entity text | [optional]
8
11
  **types** | **Array<String>** | An array of the dbpedia types | [optional]
9
- **links** | [**EntityLinks**](EntityLinks.md) | Related links to the entity | [optional]
10
- **indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'AylienNewsApi'
17
+
18
+ instance = AylienNewsApi::Entity.new(indices: null,
19
+ links: null,
20
+ score: null,
21
+ text: null,
22
+ types: null)
23
+ ```
11
24
 
12
25
 
@@ -1,8 +1,17 @@
1
1
  # AylienNewsApi::EntityLinks
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **dbpedia** | **String** | A dbpedia resource URL | [optional]
7
8
 
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'AylienNewsApi'
13
+
14
+ instance = AylienNewsApi::EntityLinks.new(dbpedia: null)
15
+ ```
16
+
8
17
 
@@ -1,13 +1,27 @@
1
1
  # AylienNewsApi::Error
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
7
+ **code** | **String** | | [optional]
8
+ **detail** | **String** | | [optional]
6
9
  **id** | **String** | | [optional]
7
10
  **links** | [**ErrorLinks**](ErrorLinks.md) | | [optional]
8
11
  **status** | **String** | | [optional]
9
- **code** | **String** | | [optional]
10
12
  **title** | **String** | | [optional]
11
- **detail** | **String** | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'AylienNewsApi'
18
+
19
+ instance = AylienNewsApi::Error.new(code: null,
20
+ detail: null,
21
+ id: null,
22
+ links: null,
23
+ status: null,
24
+ title: null)
25
+ ```
12
26
 
13
27
 
@@ -1,8 +1,17 @@
1
1
  # AylienNewsApi::ErrorLinks
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **about** | **String** | | [optional]
7
8
 
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'AylienNewsApi'
13
+
14
+ instance = AylienNewsApi::ErrorLinks.new(about: null)
15
+ ```
16
+
8
17
 
@@ -1,8 +1,17 @@
1
1
  # AylienNewsApi::Errors
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **errors** | [**Array<Error>**](Error.md) | | [optional]
7
8
 
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'AylienNewsApi'
13
+
14
+ instance = AylienNewsApi::Errors.new(errors: null)
15
+ ```
16
+
8
17
 
@@ -1,9 +1,19 @@
1
1
  # AylienNewsApi::HistogramInterval
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **bin** | **Integer** | Histogram bin | [optional]
7
8
  **count** | **Integer** | Histogram bin size | [optional]
8
9
 
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::HistogramInterval.new(bin: null,
16
+ count: null)
17
+ ```
18
+
9
19
 
@@ -1,12 +1,25 @@
1
1
  # AylienNewsApi::Histograms
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **intervals** | [**Array<HistogramInterval>**](HistogramInterval.md) | The intervals of the histograms | [optional]
7
- **interval_start** | **Integer** | The start interval of the histogram | [optional]
7
+ **field** | **String** | | [optional]
8
8
  **interval_end** | **Integer** | The end interval of the histogram | [optional]
9
+ **interval_start** | **Integer** | The start interval of the histogram | [optional]
9
10
  **interval_width** | **Integer** | The width of the histogram | [optional]
10
- **field** | **String** | | [optional]
11
+ **intervals** | [**Array<HistogramInterval>**](HistogramInterval.md) | The intervals of the histograms | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'AylienNewsApi'
17
+
18
+ instance = AylienNewsApi::Histograms.new(field: null,
19
+ interval_end: null,
20
+ interval_start: null,
21
+ interval_width: null,
22
+ intervals: null)
23
+ ```
11
24
 
12
25
 
@@ -1,10 +1,21 @@
1
1
  # AylienNewsApi::Location
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **country** | **String** | The country code of the location. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. | [optional]
7
- **state** | **String** | The state of the location | [optional]
8
7
  **city** | **String** | The city of the location | [optional]
8
+ **country** | **String** | The country code of the location. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. | [optional]
9
+ **state** | **String** | The state of the location | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'AylienNewsApi'
15
+
16
+ instance = AylienNewsApi::Location.new(city: null,
17
+ country: null,
18
+ state: null)
19
+ ```
9
20
 
10
21
 
@@ -1,13 +1,27 @@
1
1
  # AylienNewsApi::Media
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
7
+ **content_length** | **Integer** | The content length of media | [optional]
8
+ **format** | **String** | The format of media | [optional]
9
+ **height** | **Integer** | The height of media | [optional]
6
10
  **type** | **String** | The type of media | [optional]
7
11
  **url** | **String** | A URL which points to the media file | [optional]
8
- **format** | **String** | The format of media | [optional]
9
- **content_length** | **Integer** | The content length of media | [optional]
10
12
  **width** | **Integer** | The width of media | [optional]
11
- **height** | **Integer** | The height of media | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'AylienNewsApi'
18
+
19
+ instance = AylienNewsApi::Media.new(content_length: null,
20
+ format: null,
21
+ height: null,
22
+ type: null,
23
+ url: null,
24
+ width: null)
25
+ ```
12
26
 
13
27
 
@@ -1,10 +1,21 @@
1
1
  # AylienNewsApi::Rank
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **rank** | **Integer** | The rank | [optional]
7
7
  **country** | **String** | The country code which the rank is in it | [optional]
8
8
  **fetched_at** | **DateTime** | The fetched date of the rank | [optional]
9
+ **rank** | **Integer** | The rank | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'AylienNewsApi'
15
+
16
+ instance = AylienNewsApi::Rank.new(country: null,
17
+ fetched_at: null,
18
+ rank: null)
19
+ ```
9
20
 
10
21
 
@@ -1,8 +1,17 @@
1
1
  # AylienNewsApi::Rankings
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **alexa** | [**Array<Rank>**](Rank.md) | | [optional]
7
8
 
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'AylienNewsApi'
13
+
14
+ instance = AylienNewsApi::Rankings.new(alexa: null)
15
+ ```
16
+
8
17
 
@@ -1,12 +1,23 @@
1
1
  # AylienNewsApi::RelatedStories
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **story_title** | **String** | The input story title | [optional]
7
+ **related_stories** | [**Array<Story>**](Story.md) | An array of related stories for the input story | [optional]
7
8
  **story_body** | **String** | The input story body | [optional]
8
9
  **story_language** | **String** | The input story language | [optional]
9
- **related_stories** | [**Array<Story>**](Story.md) | An array of related stories for the input story | [optional]
10
- **clusters** | [**Array<StoryCluster>**](StoryCluster.md) | An array of clusters | [optional]
10
+ **story_title** | **String** | The input story title | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'AylienNewsApi'
16
+
17
+ instance = AylienNewsApi::RelatedStories.new(related_stories: null,
18
+ story_body: null,
19
+ story_language: null,
20
+ story_title: null)
21
+ ```
11
22
 
12
23
 
@@ -0,0 +1,23 @@
1
+ # AylienNewsApi::RepresentativeStory
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **Integer** | ID of the story which is a unique identification | [optional]
8
+ **permalink** | **String** | The story permalink URL | [optional]
9
+ **published_at** | **DateTime** | Published date of the story | [optional]
10
+ **title** | **String** | Title of the story | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'AylienNewsApi'
16
+
17
+ instance = AylienNewsApi::RepresentativeStory.new(id: null,
18
+ permalink: null,
19
+ published_at: null,
20
+ title: null)
21
+ ```
22
+
23
+
@@ -1,11 +1,23 @@
1
1
  # AylienNewsApi::Scope
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **country** | **String** | The source scope by country code. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. | [optional]
7
- **state** | **String** | The scope by state | [optional]
8
7
  **city** | **String** | The scope by city | [optional]
8
+ **country** | **String** | The source scope by country code. It supports [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. | [optional]
9
9
  **level** | **String** | The scope by level | [optional]
10
+ **state** | **String** | The scope by state | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'AylienNewsApi'
16
+
17
+ instance = AylienNewsApi::Scope.new(city: null,
18
+ country: null,
19
+ level: null,
20
+ state: null)
21
+ ```
10
22
 
11
23
 
@@ -1,9 +1,19 @@
1
1
  # AylienNewsApi::Sentiment
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **polarity** | **String** | Polarity of the sentiment | [optional]
7
8
  **score** | **Float** | Polarity score of the sentiment | [optional]
8
9
 
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::Sentiment.new(polarity: null,
16
+ score: null)
17
+ ```
18
+
9
19
 
@@ -1,9 +1,19 @@
1
1
  # AylienNewsApi::Sentiments
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
- **title** | [**Sentiment**](Sentiment.md) | The sentiment for the story title | [optional]
7
- **body** | [**Sentiment**](Sentiment.md) | The sentiment for the story body | [optional]
7
+ **body** | [**Sentiment**](Sentiment.md) | | [optional]
8
+ **title** | [**Sentiment**](Sentiment.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::Sentiments.new(body: null,
16
+ title: null)
17
+ ```
8
18
 
9
19
 
@@ -1,9 +1,19 @@
1
1
  # AylienNewsApi::ShareCount
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **count** | **Integer** | The number of shares | [optional]
7
8
  **fetched_at** | **DateTime** | The fetched date of the shares | [optional]
8
9
 
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'AylienNewsApi'
14
+
15
+ instance = AylienNewsApi::ShareCount.new(count: null,
16
+ fetched_at: null)
17
+ ```
18
+
9
19
 
@@ -1,6 +1,7 @@
1
1
  # AylienNewsApi::ShareCounts
2
2
 
3
3
  ## Properties
4
+
4
5
  Name | Type | Description | Notes
5
6
  ------------ | ------------- | ------------- | -------------
6
7
  **facebook** | [**Array<ShareCount>**](ShareCount.md) | Facebook shares count | [optional]
@@ -8,4 +9,15 @@ Name | Type | Description | Notes
8
9
  **linkedin** | [**Array<ShareCount>**](ShareCount.md) | LinkedIn shares count | [optional]
9
10
  **reddit** | [**Array<ShareCount>**](ShareCount.md) | Reddit shares count | [optional]
10
11
 
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'AylienNewsApi'
16
+
17
+ instance = AylienNewsApi::ShareCounts.new(facebook: null,
18
+ google_plus: null,
19
+ linkedin: null,
20
+ reddit: null)
21
+ ```
22
+
11
23