NAME
WebService::ReutersConnect::Item - A ReutersConnect SNI (Simple News Item).
PROPERTIES
channel
Origin WebService::ReutersConnect::Channel of this Item.
id
Absolute ID of this item and version.
guid
ID of this item regardless of its version.
date_created
A DateTime
slug
headline
media_type
preview_url
In case of an image.
priority
duration
In case of a Video. Duration in seconds.
fetch_richer_me
Convenience method that uses WebService::ReutersConnect::fetch_package tp fetch a richer version of this object. Dies if $this is not composite.
Usage:
if( $this->is_composite() ){
$this->fetch_richer_me();
## This now contains richer content (according to ReutersConnect's package method.
}
is_composite
Returns true if this item is composite. A composite item is typically a NEP (News Event Package), or a SNEP (Super News Event Package pointing to other NEPs).
usage:
if( $this->is_composite() ){
my ( $rich_version ) = $reuters->fetch_package( $this->channel() , [ $this ] );
}
from_node
Build a new instance from a XML::LibXML::Node. Internal Use.