LSEG Data Library for TypeScript

getData

The getData function is used to send a request to the Delivery Platform (formerly Refinitiv Data Platform) to retrieve the news story data described in the News.Story.Definition object.

Syntax

definition.getData(session?: Session)

Parameters

Value Description Data type Optional Default value
session Session object. If it's not passed the default session will be used. Session Yes -

Returned value

ContentResponse object.

Usage

The following example demonstrates how to retrieve a particular story by ID:

import { News } from '@lsegroup/data';

const definition = News.Story.Definition('urn:newsml:reuters.com:20220608:nNRAkyxc9l:1');

const response = await definition.getData();

console.log(response.data.story.title);
console.log(response.data.story.content);
> Response

LSEG Newscasts - Watch Monday's full episode of Mad Money with Jim Cramer — September 19, 2022

Source: CNBC

Description: "Mad Money" host and former hedge fund manager, Jim Cramer,
provides stock traders with all manner of investing advice.
Short Link:
https://www.cnbc.com/video/2022/09/19/watch-mondays-full-episode-of-mad-money-with-jim-cramer-september-19-2022.html


None.

103 words (0:33 mins)