Skip to content

Latest commit

 

History

History
65 lines (58 loc) · 3.43 KB

Story.md

File metadata and controls

65 lines (58 loc) · 3.43 KB

AylienNewsApi::Story

Properties

Name Type Description Notes
author Author [optional]
body String Body of the story [optional]
categories Array<Category> Suggested categories for the story [optional]
characters_count Integer Character count of the story body [optional]
clusters Array<Integer> An array of clusters the story is associated with [optional]
entities Array<Entity> An array of entities [optional]
hashtags Array<String> An array of suggested Story hashtags [optional]
id Integer ID of the story which is a unique identification [optional]
keywords Array<String> Extracted keywords mentioned in the story title or body [optional]
language String Language of the story [optional]
links StoryLinks [optional]
media Array<Media> An array of extracted media such as images and videos [optional]
paragraphs_count Integer Paragraph count of the story body [optional]
published_datetime DateTime Publication time of the story, if available, otherwise time of acquisition [optional]
published_at DateTime Acquisition time of the story [optional]
sentences_count Integer Sentence count of the story body [optional]
sentiment Sentiments [optional]
social_shares_count ShareCounts [optional]
source Source [optional]
summary Summary [optional]
title String Title of the story [optional]
translations StoryTranslations [optional]
words_count Integer Word count of the story body [optional]
license_type Integer License type of the story [optional]
industries Array<Category> An array of industries categories [optional]

Code Sample

require 'AylienNewsApi'

instance = AylienNewsApi::Story.new(author: null,
                                 body: null,
                                 categories: null,
                                 characters_count: null,
                                 clusters: null,
                                 entities: null,
                                 hashtags: null,
                                 id: null,
                                 keywords: null,
                                 language: null,
                                 links: null,
                                 media: null,
                                 paragraphs_count: null,
                                 published_datetime: null,
                                 published_at: null,
                                 sentences_count: null,
                                 sentiment: null,
                                 social_shares_count: null,
                                 source: null,
                                 summary: null,
                                 title: null,
                                 translations: null,
                                 words_count: null,
                                 license_type: null,
                                 industries: null)