get_news_story: get_news_story

Description Usage Arguments Examples

Description

Return a single news story corresponding to the identifier provided in story_id

Usage

1
get_news_story(story_id, raw_output = FALSE, debug = FALSE)

Arguments

story_id:

The story id. The story id is a field you will find in every headline retrieved with the function get_news_headlines

raw_output:

boolean. Set this parameter to True to get the data in json format The default value is False

debug:

bool. When set to True, the json request and response are printed.

Examples

1
2
3
4
5
6
7
> import eikon as ek
> set_app_id('set your app id here')
> headlines = get_news_headlines('IBM')
> for (story_id in headlines$storyId)
  { story = get_news_story(story_id)
    print (story)
  }

ahmedmohamedali/eikonapir documentation built on May 10, 2019, 7:35 a.m.