|
NAMENexmo::SMS::Response::Message - Module that represents a single message in the response from Nexmo SMS API! VERSIONversion 0.06 SYNOPSISThis module represents a single message in a response from Nexmo. use Nexmo::SMS::Response::Message;
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;
VERSIONVersion 0.02 METHODSnewcreate 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":""
}',
);
ATTRIBUTESThese attributes are available for "Nexmo::SMS::TextMessage" objects: $nexmo->client_ref( 'client_ref' ); my $client_ref = $nexmo->client_ref;
ACKNOWLEDGEMENTSCOPYRIGHT & LICENSECopyright 2011 Renee Baecker. This program is released under the following license: artistic_2 AUTHORRenee Baecker <module@renee-baecker.de> COPYRIGHT AND LICENSEThis software is Copyright (c) 2011 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
|