The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Nexmo::SMS::Response::Message - Module that represents a single message in the response from Nexmo SMS API!

VERSION

version 0.10

SYNOPSIS

This module represents a single message in a response from Nexmo.

my $nexmo = Nexmo::SMS::Response::Message->new(
json => '{
"status":"4",
"message-id":"message001",
"client-ref":"Test001 - Reference",
"remaining-balance":"20.0",
"message-price":"0.05",
"error-text":""
}',
);
print $nexmo->message_price;

METHODS

new

create a new object

my $foo = Nexmo::SMS::Response::Message->new(
json => '
{
"status":"4",
"message-id":"message001",
"client-ref":"Test001 - Reference",
"remaining-balance":"20.0",
"message-price":"0.05",
"error-text":""
}',
);

ATTRIBUTES

These attributes are available for Nexmo::SMS::TextMessage objects:

$nexmo->client_ref( 'client_ref' );
my $client_ref = $nexmo->client_ref;
  • client_ref

  • error_text

  • message_price

  • remaining_balance

  • status_desc

  • status message_id

  • status_text

AUTHOR

Renee Baecker <reneeb@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by Renee Baecker.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)