Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sms::send::test(3pm) [debian man page]

SMS::Send::Test(3pm)					User Contributed Perl Documentation				      SMS::Send::Test(3pm)

NAME
SMS::Send::Test - SMS::Send International-Class Testing Driver SYNOPSIS
# Create a testing sender my $send = SMS::Send->new( 'Test' ); # Clear the message trap $send->clear; # Send a message $send->send_sms( text => 'Hi there', to => '+61(4) 1234 5678', ); # Get the message from the trap my @messages = $send->messages; DESCRIPTION
SMS::Send supports two classes of drivers. An international class named in the format "SMS::Send::Foo", which only accept international numbers in "+1 XXX XXXXX" format, and regional-context drivers in the format "SMS::Send::XX::Foo" which will also accept a non-leading-plus number in the format applicable within that region (in the above case, Australia). SMS::Send::Test is the testing driver for the international class of drivers. Except for the name, it is otherwise identical to SMS::Send::AU::Test. Its two roles are firstly to always exist (be installed) and secondly to act as a "trap" for messages. Messages sent via SMS::Send::Test always succeed, and the messages can be recovered for testing after sending. Note that the trap is done on a per-driver-handle basis, and is not shared between multiple driver handles. METHODS
SMS::Send::Test inherits all the methods of the parent SMS::Send::Driver class, and adds the following. messages The "messages" method retrieves as a list all of the messages in the message trap. clear The "clear" method clears the message trap. This should be done before each chunk of test code to ensure you are starting from a known state. Returns true as a convenience. SUPPORT
Bugs should be reported via the CPAN bug tracker at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send> For other issues, contact the author. AUTHOR
Adam Kennedy <adamk@cpan.org> COPYRIGHT
Copyright 2005 - 2011 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2011-11-09 SMS::Send::Test(3pm)

Check Out this Related Man Page

WWW::Facebook::API::SMS(3pm)				User Contributed Perl Documentation			      WWW::Facebook::API::SMS(3pm)

NAME
WWW::Facebook::API::SMS - Facebook SMS SYNOPSIS
use WWW::Facebook::API; DESCRIPTION
Methods for accessing sms with WWW::Facebook::API SUBROUTINES
/METHODS base Returns the WWW::Facebook::API base object. new Constructor. can_send( %params ) The sms.canSend method of the Facebook API. $client->sms->can_send( uid => bigint uid, ); send( %params ) The sms.send method of the Facebook API. $client->sms->send( uid => bigint uid, message => 'message', session_id => i32, req_session => bool, ); DIAGNOSTICS
None. CONFIGURATION AND ENVIRONMENT
WWW::Facebook::API::SMS requires no configuration files or environment variables. DEPENDENCIES
See WWW::Facebook::API INCOMPATIBILITIES
None reported. BUGS AND LIMITATIONS
No bugs have been reported. Please report any bugs or feature requests to "bug-www-facebook-api@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. AUTHORS
Thomas Burke "<tburke@cpan.org>" David Romano "<unobe@cpan.org>" LICENSE AND COPYRIGHT
Copyright (c) 2008-2010, David Romano "<unobe@cpan.org>". All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. perl v5.10.1 2010-03-13 WWW::Facebook::API::SMS(3pm)
Man Page