NAME
Finance::Robinhood::Notification - Represents a Single Notification Card
SYNOPSIS
use Text::Wrap qw[wrap];
use Finance::Robinhood;
my $rh = Finance::Robinhood->new;
CORE::say wrap( '', ' ', $_->title . "\n" . $_->message ) for $rh->notifications->take(10);
METHODS
call_to_action( )
Text provided to direct attention to the action. See More
, View Article
, etc.
fixed( )
If true, this notification is locked into place.
font_size( )
For display, this sets a uniform type size.
icon( )
Returns which icon should be used. These are built into the apps, btw.
message( )
The actual text shown in the notification card.
show_if_unsupported( )
side_image( )
Returns a hash with asset information for the official clients.
type( )
Returns the type of notification.
title( )
Returns the article's title.
type( )
What sort of notification is is. news
, top_sp500_gainers
, etc.
action( )
Returns the (usually app internal) action that should take place when the notification is activated.
time( )
$notification->time->to_string;
Returns the time the notification was published as a Time::Moment object.
Note that some notifications do not have a timestamp.
dismiss( )
$notification->dismiss();
Marks the notification as read and hides it from the stack.
id( )
Returns a UUID.
LEGAL
This is a simple wrapper around the API used in the official apps. The author provides no investment, legal, or tax advice and is not responsible for any damages incurred while using this software. This software is not affiliated with Robinhood Financial LLC in any way.
For Robinhood's terms and disclosures, please see their website at https://robinhood.com/legal/
LICENSE
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module. Please refer to the LEGAL section.
AUTHOR
Sanko Robinson <sanko@cpan.org>