NAME

Google::Voice

ABSTRACT

google.com/voice services

USAGE

my $g = Google::Voice->new->login('username', 'password');

# Send sms
$g->send_sms(5555555555 => 'Hello friend!');

# Error code from google on fail
print $@ if ! $g->send_sms('invalid phone' => 'text message');

# Print all sms conversations
foreach my $sms ( $g->sms ) {
    print $sms->name;
    print $_->time , ':', $_->text, "\n" foreach $sms->messages;
}

# connect call & cancel it
my $call = $g->call( '+15555555555' => '+14444444444' );
$call->cancel;

METHODS

new

Create object

login

Login. Returns object on success, false on failure.

call

Connect two phone numbers

send_sms

Send SMS message. Returns true/false.

sms

List of SMS messages

voicemail

List of voicemail messages

recorded

List of recorded calls

placed

List of placed calls

received

List of placed calls

missed

List of missed calls

starred

List of starred items (call, sms, or voicemail)

spam

List of items marked as spam (call, sms, or voicemail)

all

List of all items (call, sms, or voicemail)

SEE ALSO

Mojo::Client, Mojo::DOM

VERSION

0.01

AUTHOR

Glen Hinkle tempire@cpan.org