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.
- checksums.yaml +5 -5
- data/Gemfile +7 -1
- data/README.md +36 -47
- data/Rakefile +10 -0
- data/aylien_news_api.gemspec +25 -32
- 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 -576
- 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 +9 -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 +21 -0
- data/docs/Rankings.md +17 -0
- data/docs/RelatedStories.md +14 -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 -3
- data/docs/Stories.md +15 -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/git_push.sh +58 -0
- data/lib/aylien_news_api.rb +23 -14
- data/lib/aylien_news_api/api/default_api.rb +2755 -892
- data/lib/aylien_news_api/api_client.rb +141 -102
- data/lib/aylien_news_api/api_error.rb +37 -18
- data/lib/aylien_news_api/configuration.rb +94 -43
- 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 +100 -81
- 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 +54 -38
- 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 +227 -0
- data/lib/aylien_news_api/models/rankings.rb +208 -0
- data/lib/aylien_news_api/models/related_stories.rb +72 -68
- 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 +70 -84
- 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 +129 -64
- data/lib/aylien_news_api/models/stories.rb +79 -55
- 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/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 +16 -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 +53 -0
- data/spec/models/rankings_spec.rb +41 -0
- data/spec/models/related_stories_spec.rb +21 -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 +26 -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/spec_helper.rb +11 -13
- metadata +95 -193
- data/Gemfile.lock +0 -65
- data/LICENSE +0 -13
data/docs/Entities.md
CHANGED
@@ -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
|
|
data/docs/Entity.md
CHANGED
@@ -1,12 +1,25 @@
|
|
1
1
|
# AylienNewsApi::Entity
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
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
|
-
|
10
|
-
|
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
|
|
data/docs/EntityLinks.md
CHANGED
@@ -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
|
|
data/docs/Error.md
CHANGED
@@ -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
|
-
|
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
|
|
data/docs/ErrorLinks.md
CHANGED
@@ -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
|
|
data/docs/Errors.md
CHANGED
@@ -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
|
|
data/docs/HistogramInterval.md
CHANGED
@@ -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
|
|
data/docs/Histograms.md
CHANGED
@@ -1,12 +1,29 @@
|
|
1
1
|
# AylienNewsApi::Histograms
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
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
|
-
**
|
11
|
+
**intervals** | [**Array<HistogramInterval>**](HistogramInterval.md) | The intervals of the histograms | [optional]
|
12
|
+
**published_at_end** | **DateTime** | The end of a period in which searched stories were published | [optional]
|
13
|
+
**published_at_start** | **DateTime** | The start of a period in which searched stories were published | [optional]
|
14
|
+
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'AylienNewsApi'
|
19
|
+
|
20
|
+
instance = AylienNewsApi::Histograms.new(field: null,
|
21
|
+
interval_end: null,
|
22
|
+
interval_start: null,
|
23
|
+
interval_width: null,
|
24
|
+
intervals: null,
|
25
|
+
published_at_end: null,
|
26
|
+
published_at_start: null)
|
27
|
+
```
|
11
28
|
|
12
29
|
|
data/docs/Location.md
CHANGED
@@ -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
|
|
data/docs/Media.md
CHANGED
@@ -1,9 +1,27 @@
|
|
1
1
|
# AylienNewsApi::Media
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
+
**content_length** | **Integer** | The content length of media | [optional]
|
8
|
+
**format** | [**MediaFormat**](MediaFormat.md) | | [optional]
|
9
|
+
**height** | **Integer** | The height of media | [optional]
|
10
|
+
**type** | [**MediaType**](MediaType.md) | | [optional]
|
7
11
|
**url** | **String** | A URL which points to the media file | [optional]
|
12
|
+
**width** | **Integer** | The width 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
|
+
```
|
8
26
|
|
9
27
|
|
data/docs/MediaFormat.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# AylienNewsApi::MediaFormat
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'AylienNewsApi'
|
12
|
+
|
13
|
+
instance = AylienNewsApi::MediaFormat.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
data/docs/MediaType.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# AylienNewsApi::MediaType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'AylienNewsApi'
|
12
|
+
|
13
|
+
instance = AylienNewsApi::MediaType.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
data/docs/Rank.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# AylienNewsApi::Rank
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**country** | **String** | The country code which the rank is in it | [optional]
|
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
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/Rankings.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# AylienNewsApi::Rankings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**alexa** | [**Array<Rank>**](Rank.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'AylienNewsApi'
|
13
|
+
|
14
|
+
instance = AylienNewsApi::Rankings.new(alexa: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/RelatedStories.md
CHANGED
@@ -1,12 +1,23 @@
|
|
1
1
|
# AylienNewsApi::RelatedStories
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
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
|
-
**
|
10
|
-
|
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
|
+
|
data/docs/Scope.md
CHANGED
@@ -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]
|
9
|
-
**
|
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
|
+
**level** | [**ScopeLevel**](ScopeLevel.md) | | [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
|
|
data/docs/ScopeLevel.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# AylienNewsApi::ScopeLevel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'AylienNewsApi'
|
12
|
+
|
13
|
+
instance = AylienNewsApi::ScopeLevel.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
data/docs/Sentiment.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# AylienNewsApi::Sentiment
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**polarity** | **
|
7
|
+
**polarity** | [**SentimentPolarity**](SentimentPolarity.md) | | [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
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# AylienNewsApi::SentimentPolarity
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'AylienNewsApi'
|
12
|
+
|
13
|
+
instance = AylienNewsApi::SentimentPolarity.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|