aylien_news_api 4.3.0 → 4.5.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 +4 -4
- data/README.md +100 -31
- data/docs/DefaultApi.md +357 -189
- data/docs/DeprecatedEntities.md +19 -0
- data/docs/DeprecatedEntity.md +33 -0
- data/docs/DeprecatedEntitySurfaceForm.md +21 -0
- data/docs/DeprecatedRelatedStories.md +27 -0
- data/docs/DeprecatedStories.md +25 -0
- data/docs/DeprecatedStory.md +61 -0
- data/docs/Entity.md +12 -10
- data/docs/EntityInText.md +19 -0
- data/docs/EntityMention.md +19 -0
- data/docs/EntityMentionIndex.md +19 -0
- data/docs/EntitySurfaceForm.md +4 -2
- data/docs/Story.md +1 -1
- data/lib/aylien_news_api/api/default_api.rb +452 -200
- data/lib/aylien_news_api/models/deprecated_entities.rb +221 -0
- data/lib/aylien_news_api/models/deprecated_entity.rb +314 -0
- data/lib/aylien_news_api/models/deprecated_entity_surface_form.rb +244 -0
- data/lib/aylien_news_api/models/deprecated_related_stories.rb +260 -0
- data/lib/aylien_news_api/models/deprecated_stories.rb +252 -0
- data/lib/aylien_news_api/models/deprecated_story.rb +429 -0
- data/lib/aylien_news_api/models/entity.rb +90 -44
- data/lib/aylien_news_api/models/entity_in_text.rb +217 -0
- data/lib/aylien_news_api/models/entity_mention.rb +215 -0
- data/lib/aylien_news_api/models/entity_mention_index.rb +265 -0
- data/lib/aylien_news_api/models/entity_surface_form.rb +34 -9
- data/lib/aylien_news_api/models/related_stories.rb +1 -0
- data/lib/aylien_news_api/models/stories.rb +1 -0
- data/lib/aylien_news_api/models/story.rb +5 -2
- data/lib/aylien_news_api/version.rb +1 -1
- data/lib/aylien_news_api.rb +9 -1
- data/spec/api/default_api_spec.rb +208 -4
- data/spec/models/deprecated_entities_spec.rb +47 -0
- data/spec/models/deprecated_entity_spec.rb +89 -0
- data/spec/models/deprecated_entity_surface_form_spec.rb +53 -0
- data/spec/models/deprecated_related_stories_spec.rb +71 -0
- data/spec/models/deprecated_stories_spec.rb +65 -0
- data/spec/models/deprecated_story_spec.rb +173 -0
- data/spec/models/entity_in_text_spec.rb +47 -0
- data/spec/models/entity_links_spec.rb +6 -0
- data/spec/models/entity_mention_index_spec.rb +47 -0
- data/spec/models/entity_mention_spec.rb +47 -0
- data/spec/models/entity_spec.rb +23 -5
- data/spec/models/entity_surface_form_spec.rb +7 -1
- data/spec/models/nested_entity_spec.rb +19 -1
- data/spec/models/story_spec.rb +6 -0
- data/spec/models/time_series_spec.rb +6 -0
- data/spec/models/trend_spec.rb +6 -0
- metadata +38 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# AylienNewsApi::DeprecatedEntities
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**body** | [**Array<DeprecatedEntity>**](DeprecatedEntity.md) | An array of extracted entities from the story body | [optional]
|
|
8
|
+
**title** | [**Array<DeprecatedEntity>**](DeprecatedEntity.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::DeprecatedEntities.new(body: null,
|
|
16
|
+
title: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# AylienNewsApi::DeprecatedEntity
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | The unique ID of the entity | [optional]
|
|
8
|
+
**indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
|
|
9
|
+
**links** | [**EntityLinks**](EntityLinks.md) | | [optional]
|
|
10
|
+
**text** | **String** | The entity text | [optional]
|
|
11
|
+
**stock_ticker** | **String** | The stock_ticker of the entity (might be null) | [optional]
|
|
12
|
+
**types** | **Array<String>** | An array of the entity types | [optional]
|
|
13
|
+
**sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
|
|
14
|
+
**surface_forms** | [**Array<DeprecatedEntitySurfaceForm>**](DeprecatedEntitySurfaceForm.md) | | [optional]
|
|
15
|
+
**prominence_score** | **Float** | Describes how relevant an entity is to the article | [optional]
|
|
16
|
+
|
|
17
|
+
## Code Sample
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'AylienNewsApi'
|
|
21
|
+
|
|
22
|
+
instance = AylienNewsApi::DeprecatedEntity.new(id: null,
|
|
23
|
+
indices: null,
|
|
24
|
+
links: null,
|
|
25
|
+
text: null,
|
|
26
|
+
stock_ticker: null,
|
|
27
|
+
types: null,
|
|
28
|
+
sentiment: null,
|
|
29
|
+
surface_forms: null,
|
|
30
|
+
prominence_score: null)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# AylienNewsApi::DeprecatedEntitySurfaceForm
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**text** | **String** | The entity text | [optional]
|
|
8
|
+
**indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
|
|
9
|
+
**frequency** | **Integer** | Amount of entity surface form mentions in the article | [optional]
|
|
10
|
+
|
|
11
|
+
## Code Sample
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'AylienNewsApi'
|
|
15
|
+
|
|
16
|
+
instance = AylienNewsApi::DeprecatedEntitySurfaceForm.new(text: null,
|
|
17
|
+
indices: null,
|
|
18
|
+
frequency: null)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# AylienNewsApi::DeprecatedRelatedStories
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**related_stories** | [**Array<DeprecatedStory>**](DeprecatedStory.md) | An array of related stories for the input story | [optional]
|
|
8
|
+
**story_body** | **String** | The input story body | [optional]
|
|
9
|
+
**story_language** | **String** | The input story language | [optional]
|
|
10
|
+
**story_title** | **String** | The input story title | [optional]
|
|
11
|
+
**published_at_end** | **DateTime** | The end of a period in which searched stories were published | [optional]
|
|
12
|
+
**published_at_start** | **DateTime** | The start of a period in which searched stories were published | [optional]
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'AylienNewsApi'
|
|
18
|
+
|
|
19
|
+
instance = AylienNewsApi::DeprecatedRelatedStories.new(related_stories: null,
|
|
20
|
+
story_body: null,
|
|
21
|
+
story_language: null,
|
|
22
|
+
story_title: null,
|
|
23
|
+
published_at_end: null,
|
|
24
|
+
published_at_start: null)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AylienNewsApi::DeprecatedStories
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**next_page_cursor** | **String** | The next page cursor | [optional]
|
|
8
|
+
**stories** | [**Array<DeprecatedStory>**](DeprecatedStory.md) | An array of stories | [optional]
|
|
9
|
+
**published_at_end** | **DateTime** | The end of a period in which searched stories were published | [optional]
|
|
10
|
+
**published_at_start** | **DateTime** | The start of a period in which searched stories were published | [optional]
|
|
11
|
+
**warnings** | [**Array<Warning>**](Warning.md) | Notifies about possible issues that occurred when searching for stories | [optional]
|
|
12
|
+
|
|
13
|
+
## Code Sample
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'AylienNewsApi'
|
|
17
|
+
|
|
18
|
+
instance = AylienNewsApi::DeprecatedStories.new(next_page_cursor: null,
|
|
19
|
+
stories: null,
|
|
20
|
+
published_at_end: null,
|
|
21
|
+
published_at_start: null,
|
|
22
|
+
warnings: null)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# AylienNewsApi::DeprecatedStory
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**author** | [**Author**](Author.md) | | [optional]
|
|
8
|
+
**body** | **String** | Body of the story | [optional]
|
|
9
|
+
**categories** | [**Array<Category>**](Category.md) | Suggested categories for the story | [optional]
|
|
10
|
+
**characters_count** | **Integer** | Character count of the story body | [optional]
|
|
11
|
+
**clusters** | **Array<Integer>** | An array of clusters the story is associated with | [optional]
|
|
12
|
+
**entities** | [**DeprecatedEntities**](DeprecatedEntities.md) | | [optional]
|
|
13
|
+
**hashtags** | **Array<String>** | An array of suggested Story hashtags | [optional]
|
|
14
|
+
**id** | **Integer** | ID of the story which is a unique identification | [optional]
|
|
15
|
+
**keywords** | **Array<String>** | Extracted keywords mentioned in the story title or body | [optional]
|
|
16
|
+
**language** | **String** | Language of the story | [optional]
|
|
17
|
+
**links** | [**StoryLinks**](StoryLinks.md) | | [optional]
|
|
18
|
+
**media** | [**Array<Media>**](Media.md) | An array of extracted media such as images and videos | [optional]
|
|
19
|
+
**paragraphs_count** | **Integer** | Paragraph count of the story body | [optional]
|
|
20
|
+
**published_at** | **DateTime** | Published date of the story | [optional]
|
|
21
|
+
**sentences_count** | **Integer** | Sentence count of the story body | [optional]
|
|
22
|
+
**sentiment** | [**Sentiments**](Sentiments.md) | | [optional]
|
|
23
|
+
**social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional]
|
|
24
|
+
**source** | [**Source**](Source.md) | | [optional]
|
|
25
|
+
**summary** | [**Summary**](Summary.md) | | [optional]
|
|
26
|
+
**title** | **String** | Title of the story | [optional]
|
|
27
|
+
**translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional]
|
|
28
|
+
**words_count** | **Integer** | Word count of the story body | [optional]
|
|
29
|
+
**license_type** | **Integer** | License type of the story | [optional]
|
|
30
|
+
|
|
31
|
+
## Code Sample
|
|
32
|
+
|
|
33
|
+
```ruby
|
|
34
|
+
require 'AylienNewsApi'
|
|
35
|
+
|
|
36
|
+
instance = AylienNewsApi::DeprecatedStory.new(author: null,
|
|
37
|
+
body: null,
|
|
38
|
+
categories: null,
|
|
39
|
+
characters_count: null,
|
|
40
|
+
clusters: null,
|
|
41
|
+
entities: null,
|
|
42
|
+
hashtags: null,
|
|
43
|
+
id: null,
|
|
44
|
+
keywords: null,
|
|
45
|
+
language: null,
|
|
46
|
+
links: null,
|
|
47
|
+
media: null,
|
|
48
|
+
paragraphs_count: null,
|
|
49
|
+
published_at: null,
|
|
50
|
+
sentences_count: null,
|
|
51
|
+
sentiment: null,
|
|
52
|
+
social_shares_count: null,
|
|
53
|
+
source: null,
|
|
54
|
+
summary: null,
|
|
55
|
+
title: null,
|
|
56
|
+
translations: null,
|
|
57
|
+
words_count: null,
|
|
58
|
+
license_type: null)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
|
data/docs/Entity.md
CHANGED
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**id** | **String** | The unique ID of the entity | [optional]
|
|
8
|
-
**indices** | **Array<Array<Integer>>** | The indices of the entity text | [optional]
|
|
9
8
|
**links** | [**EntityLinks**](EntityLinks.md) | | [optional]
|
|
10
|
-
**
|
|
11
|
-
**stock_ticker** | **String** | The stock_ticker of the entity (might be null) | [optional]
|
|
9
|
+
**stock_tickers** | **Array<String>** | The stock tickers of the entity (might be empty) | [optional]
|
|
12
10
|
**types** | **Array<String>** | An array of the entity types | [optional]
|
|
13
|
-
**
|
|
14
|
-
**
|
|
11
|
+
**overall_sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
|
|
12
|
+
**overall_prominence** | **Float** | Describes how relevant an entity is to the article | [optional]
|
|
13
|
+
**overall_frequency** | **Integer** | Amount of entity surface form mentions in the article | [optional]
|
|
14
|
+
**body** | [**EntityInText**](EntityInText.md) | | [optional]
|
|
15
|
+
**title** | [**EntityInText**](EntityInText.md) | | [optional]
|
|
15
16
|
|
|
16
17
|
## Code Sample
|
|
17
18
|
|
|
@@ -19,13 +20,14 @@ Name | Type | Description | Notes
|
|
|
19
20
|
require 'AylienNewsApi'
|
|
20
21
|
|
|
21
22
|
instance = AylienNewsApi::Entity.new(id: null,
|
|
22
|
-
indices: null,
|
|
23
23
|
links: null,
|
|
24
|
-
|
|
25
|
-
stock_ticker: null,
|
|
24
|
+
stock_tickers: null,
|
|
26
25
|
types: null,
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
overall_sentiment: null,
|
|
27
|
+
overall_prominence: null,
|
|
28
|
+
overall_frequency: null,
|
|
29
|
+
body: null,
|
|
30
|
+
title: null)
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# AylienNewsApi::EntityInText
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
|
|
8
|
+
**surface_forms** | [**Array<EntitySurfaceForm>**](EntitySurfaceForm.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'AylienNewsApi'
|
|
14
|
+
|
|
15
|
+
instance = AylienNewsApi::EntityInText.new(sentiment: null,
|
|
16
|
+
surface_forms: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# AylienNewsApi::EntityMention
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**index** | [**EntityMentionIndex**](EntityMentionIndex.md) | | [optional]
|
|
8
|
+
**sentiment** | [**EntitySentiment**](EntitySentiment.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'AylienNewsApi'
|
|
14
|
+
|
|
15
|
+
instance = AylienNewsApi::EntityMention.new(index: null,
|
|
16
|
+
sentiment: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# AylienNewsApi::EntityMentionIndex
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**start** | **Integer** | Start index of a single entity mention in the text (counting from 0) |
|
|
8
|
+
**_end** | **Integer** | End index of a single entity mention in the text (counting from 0) |
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'AylienNewsApi'
|
|
14
|
+
|
|
15
|
+
instance = AylienNewsApi::EntityMentionIndex.new(start: null,
|
|
16
|
+
_end: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
data/docs/EntitySurfaceForm.md
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**text** | **String** | The entity text | [optional]
|
|
8
|
-
**
|
|
8
|
+
**frequency** | **Integer** | Amount of entity surface form mentions in the article | [optional]
|
|
9
|
+
**mentions** | [**Array<EntityMention>**](EntityMention.md) | Mentions of the entity text | [optional]
|
|
9
10
|
|
|
10
11
|
## Code Sample
|
|
11
12
|
|
|
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
|
|
|
13
14
|
require 'AylienNewsApi'
|
|
14
15
|
|
|
15
16
|
instance = AylienNewsApi::EntitySurfaceForm.new(text: null,
|
|
16
|
-
|
|
17
|
+
frequency: null,
|
|
18
|
+
mentions: null)
|
|
17
19
|
```
|
|
18
20
|
|
|
19
21
|
|
data/docs/Story.md
CHANGED
|
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**categories** | [**Array<Category>**](Category.md) | Suggested categories for the story | [optional]
|
|
10
10
|
**characters_count** | **Integer** | Character count of the story body | [optional]
|
|
11
11
|
**clusters** | **Array<Integer>** | An array of clusters the story is associated with | [optional]
|
|
12
|
-
**entities** | [**
|
|
12
|
+
**entities** | [**Array<Entity>**](Entity.md) | An array of entities | [optional]
|
|
13
13
|
**hashtags** | **Array<String>** | An array of suggested Story hashtags | [optional]
|
|
14
14
|
**id** | **Integer** | ID of the story which is a unique identification | [optional]
|
|
15
15
|
**keywords** | **Array<String>** | Extracted keywords mentioned in the story title or body | [optional]
|