GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NEXMO::SMS::GETBALANCE (3)

.ds Aq ’

NAME

Nexmo::SMS::GetBalance - Module to ask for the balance for the Nexmo SMS API!

CONTENTS

VERSION

version 0.06

SYNOPSIS

This module simplifies sending SMS through the Nexmo API.



    use Nexmo::SMS::GetBalance;

    my $nexmo = Nexmo::SMS::GetBalance->new(
        server   => http://rest.nexmo.com/sms/json,
        username => testuser1,
        password => testpasswd2,
    );
       
    my $balance = $sms->get_balance;



VERSION

Version 0.02

METHODS

    new

create a new object



    my $object = Nexmo::SMS::GetBalance->new(
        server   => http://rest.nexmo.com/sms/json,
        username => testuser1,
        password => testpasswd2,
    );



This method recognises these parameters:



    server            => required,
    username          => required,
    password          => required,



    user_agent

Getter/setter for the user_agent attribute of the object. By default a new object of LWP::UserAgent is used, but you can use your own class as long as it is compatible to LWP::UserAgent.



  $sms->user_agent( MyUserAgent->new );
  my $ua = $sms->user_agent;



    get_balance

This actually calls the Nexmo SMS API. It returns the balance of the account.



   my $balance = $object->get_balance;



Attributes

These attributes are available for Nexmo::SMS::GetBalance objects. For each attribute there is a getter/setter:



  $nexmo->server( servername );
  my $server = $nexmo->server;



o password
o server
o username

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2011 Renee Baecker.

This program is released under the following license: artistic_2

AUTHOR

Renee Baecker <module@renee-baecker.de>

COPYRIGHT AND LICENSE

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

This is free software, licensed under:



  The Artistic License 2.0 (GPL Compatible)



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NEXMO::SMS::GETBALANCE (3) 2011-12-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.