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/Sentiments.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# AylienNewsApi::Sentiments
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**
|
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
|
|
data/docs/ShareCount.md
CHANGED
@@ -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
|
|
data/docs/ShareCounts.md
CHANGED
@@ -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
|
|
data/docs/Source.md
CHANGED
@@ -1,13 +1,37 @@
|
|
1
1
|
# AylienNewsApi::Source
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**description** | **String** | A general explanation about the source | [optional]
|
8
|
+
**domain** | **String** | The domain name of the source which is extracted from the source URL | [optional]
|
9
|
+
**home_page_url** | **String** | The home page URL of the source | [optional]
|
6
10
|
**id** | **Integer** | The source id which is a unique value | [optional]
|
7
|
-
**
|
8
|
-
**
|
11
|
+
**links_in_count** | **Integer** | The number of websites that link to the source | [optional]
|
12
|
+
**locations** | [**Array<Location>**](Location.md) | The source locations which are tend to be the physical locations of the source, e.g. BBC headquarter is located in London. | [optional]
|
9
13
|
**logo_url** | **String** | A URL which points to the source logo | [optional]
|
10
|
-
**
|
14
|
+
**name** | **String** | The source name | [optional]
|
15
|
+
**rankings** | [**Rankings**](Rankings.md) | | [optional]
|
11
16
|
**scopes** | [**Array<Scope>**](Scope.md) | The source scopes which is tend to be scope locations of the source, e.g. BBC scopes is international. | [optional]
|
17
|
+
**title** | **String** | The title of the home page URL | [optional]
|
18
|
+
|
19
|
+
## Code Sample
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'AylienNewsApi'
|
23
|
+
|
24
|
+
instance = AylienNewsApi::Source.new(description: null,
|
25
|
+
domain: null,
|
26
|
+
home_page_url: null,
|
27
|
+
id: null,
|
28
|
+
links_in_count: null,
|
29
|
+
locations: null,
|
30
|
+
logo_url: null,
|
31
|
+
name: null,
|
32
|
+
rankings: null,
|
33
|
+
scopes: null,
|
34
|
+
title: null)
|
35
|
+
```
|
12
36
|
|
13
37
|
|
data/docs/Stories.md
CHANGED
@@ -1,10 +1,23 @@
|
|
1
1
|
# AylienNewsApi::Stories
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**stories** | [**Array<Story>**](Story.md) | An array of stories | [optional]
|
7
|
-
**clusters** | [**Array<StoryCluster>**](StoryCluster.md) | An array of clusters | [optional]
|
8
7
|
**next_page_cursor** | **String** | The next page cursor | [optional]
|
8
|
+
**stories** | [**Array<Story>**](Story.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
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'AylienNewsApi'
|
16
|
+
|
17
|
+
instance = AylienNewsApi::Stories.new(next_page_cursor: null,
|
18
|
+
stories: null,
|
19
|
+
published_at_end: null,
|
20
|
+
published_at_start: null)
|
21
|
+
```
|
9
22
|
|
10
23
|
|
data/docs/Story.md
CHANGED
@@ -1,27 +1,59 @@
|
|
1
1
|
# AylienNewsApi::Story
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**title** | **String** | Title of the story | [optional]
|
7
|
+
**author** | [**Author**](Author.md) | | [optional]
|
8
8
|
**body** | **String** | Body of the story | [optional]
|
9
|
-
**summary** | [**Summary**](Summary.md) | The suggested story summary | [optional]
|
10
|
-
**source** | [**Source**](Source.md) | The story source | [optional]
|
11
|
-
**author** | [**Author**](Author.md) | The story author | [optional]
|
12
|
-
**entities** | [**Entities**](Entities.md) | Extracted entities from the story title or body | [optional]
|
13
|
-
**keywords** | **Array<String>** | Extracted keywords mentioned in the story title or body | [optional]
|
14
|
-
**hashtags** | **Array<String>** | An array of suggested Story hashtags | [optional]
|
15
|
-
**characters_count** | **Integer** | Character count of the story body | [optional]
|
16
|
-
**words_count** | **Integer** | Word count of the story body | [optional]
|
17
|
-
**sentences_count** | **Integer** | Sentence count of the story body | [optional]
|
18
|
-
**paragraphs_count** | **Integer** | Paragraph count of the story body | [optional]
|
19
9
|
**categories** | [**Array<Category>**](Category.md) | Suggested categories for the story | [optional]
|
20
|
-
**
|
21
|
-
**
|
22
|
-
**
|
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** | [**Entities**](Entities.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]
|
23
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]
|
24
20
|
**published_at** | **DateTime** | Published date of the story | [optional]
|
25
|
-
**
|
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
|
+
|
30
|
+
## Code Sample
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'AylienNewsApi'
|
34
|
+
|
35
|
+
instance = AylienNewsApi::Story.new(author: null,
|
36
|
+
body: null,
|
37
|
+
categories: null,
|
38
|
+
characters_count: null,
|
39
|
+
clusters: null,
|
40
|
+
entities: null,
|
41
|
+
hashtags: null,
|
42
|
+
id: null,
|
43
|
+
keywords: null,
|
44
|
+
language: null,
|
45
|
+
links: null,
|
46
|
+
media: null,
|
47
|
+
paragraphs_count: null,
|
48
|
+
published_at: null,
|
49
|
+
sentences_count: null,
|
50
|
+
sentiment: null,
|
51
|
+
social_shares_count: null,
|
52
|
+
source: null,
|
53
|
+
summary: null,
|
54
|
+
title: null,
|
55
|
+
translations: null,
|
56
|
+
words_count: null)
|
57
|
+
```
|
26
58
|
|
27
59
|
|
data/docs/StoryCluster.md
CHANGED
@@ -1,12 +1,25 @@
|
|
1
1
|
# AylienNewsApi::StoryCluster
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**id** | **Integer** | A unique identification for the cluster | [optional]
|
7
8
|
**phrases** | **Array<String>** | Suggested labels for the cluster | [optional]
|
9
|
+
**score** | **Float** | The cluster score | [optional]
|
8
10
|
**size** | **Integer** | Size of the cluster | [optional]
|
9
11
|
**stories** | **Array<Integer>** | Story ids which are in the cluster | [optional]
|
10
|
-
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'AylienNewsApi'
|
17
|
+
|
18
|
+
instance = AylienNewsApi::StoryCluster.new(id: null,
|
19
|
+
phrases: null,
|
20
|
+
score: null,
|
21
|
+
size: null,
|
22
|
+
stories: null)
|
23
|
+
```
|
11
24
|
|
12
25
|
|
data/docs/StoryLinks.md
CHANGED
@@ -1,10 +1,23 @@
|
|
1
1
|
# AylienNewsApi::StoryLinks
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**canonical** | **String** | The story canonical URL | [optional]
|
6
8
|
**permalink** | **String** | The story permalink URL | [optional]
|
7
9
|
**related_stories** | **String** | The related stories URL | [optional]
|
8
|
-
**
|
10
|
+
**clusters** | **String** | The clusters endpoint URL for this story | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'AylienNewsApi'
|
16
|
+
|
17
|
+
instance = AylienNewsApi::StoryLinks.new(canonical: null,
|
18
|
+
permalink: null,
|
19
|
+
related_stories: null,
|
20
|
+
clusters: null)
|
21
|
+
```
|
9
22
|
|
10
23
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# AylienNewsApi::StoryTranslation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**body** | **String** | Translation of body | [optional]
|
8
|
+
**title** | **String** | Translation of title | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'AylienNewsApi'
|
14
|
+
|
15
|
+
instance = AylienNewsApi::StoryTranslation.new(body: null,
|
16
|
+
title: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# AylienNewsApi::StoryTranslations
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**en** | [**StoryTranslation**](StoryTranslation.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'AylienNewsApi'
|
13
|
+
|
14
|
+
instance = AylienNewsApi::StoryTranslations.new(en: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# AylienNewsApi::StoryTranslationsEn
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**body** | **String** | Translation of body | [optional]
|
8
|
+
**text** | **String** | Translation of a concatenation of title and body | [optional]
|
9
|
+
**title** | **String** | Translation of title | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'AylienNewsApi'
|
15
|
+
|
16
|
+
instance = AylienNewsApi::StoryTranslationsEn.new(body: null,
|
17
|
+
text: null,
|
18
|
+
title: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/Summary.md
CHANGED
@@ -1,8 +1,17 @@
|
|
1
1
|
# AylienNewsApi::Summary
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
7
|
**sentences** | **Array<String>** | An array of the suggested summary sentences | [optional]
|
7
8
|
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'AylienNewsApi'
|
13
|
+
|
14
|
+
instance = AylienNewsApi::Summary.new(sentences: null)
|
15
|
+
```
|
16
|
+
|
8
17
|
|
data/docs/TimeSeries.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# AylienNewsApi::TimeSeries
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**published_at** | **DateTime** | The published date of the time series bin | [optional]
|
7
7
|
**count** | **Integer** | The count of time series bin | [optional]
|
8
|
+
**published_at** | **DateTime** | The published date of the time series bin | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'AylienNewsApi'
|
14
|
+
|
15
|
+
instance = AylienNewsApi::TimeSeries.new(count: null,
|
16
|
+
published_at: null)
|
17
|
+
```
|
8
18
|
|
9
19
|
|
data/docs/TimeSeriesList.md
CHANGED
@@ -1,11 +1,23 @@
|
|
1
1
|
# AylienNewsApi::TimeSeriesList
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**period** | **String** | The size of each date range expressed as an interval to be added to the lower bound. | [optional]
|
8
|
-
**published_at_start** | **DateTime** | The start published date of the time series | [optional]
|
7
|
+
**period** | **String** | The size of each date range expressed as an interval to be added to the lower bound. | [optional]
|
9
8
|
**published_at_end** | **DateTime** | The end published date of the time series | [optional]
|
9
|
+
**published_at_start** | **DateTime** | The start published date of the time series | [optional]
|
10
|
+
**time_series** | [**Array<TimeSeries>**](TimeSeries.md) | An array of time series | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'AylienNewsApi'
|
16
|
+
|
17
|
+
instance = AylienNewsApi::TimeSeriesList.new(period: null,
|
18
|
+
published_at_end: null,
|
19
|
+
published_at_start: null,
|
20
|
+
time_series: null)
|
21
|
+
```
|
10
22
|
|
11
23
|
|
data/docs/Trend.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# AylienNewsApi::Trend
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**value** | **String** | The value of the trend | [optional]
|
7
7
|
**count** | **Integer** | The count of the trend | [optional]
|
8
|
+
**value** | **String** | The value of the trend | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'AylienNewsApi'
|
14
|
+
|
15
|
+
instance = AylienNewsApi::Trend.new(count: null,
|
16
|
+
value: null)
|
17
|
+
```
|
8
18
|
|
9
19
|
|
data/docs/Trends.md
CHANGED
@@ -1,9 +1,23 @@
|
|
1
1
|
# AylienNewsApi::Trends
|
2
2
|
|
3
3
|
## Properties
|
4
|
+
|
4
5
|
Name | Type | Description | Notes
|
5
6
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**trends** | [**Array<Trend>**](Trend.md) | An array of trends | [optional]
|
7
7
|
**field** | **String** | The field of trends | [optional]
|
8
|
+
**trends** | [**Array<Trend>**](Trend.md) | An array of trends | [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
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'AylienNewsApi'
|
16
|
+
|
17
|
+
instance = AylienNewsApi::Trends.new(field: null,
|
18
|
+
trends: null,
|
19
|
+
published_at_end: null,
|
20
|
+
published_at_start: null)
|
21
|
+
```
|
8
22
|
|
9
23
|
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|