
Google::Voice - Easy interface for google voice

Easy interface for google voice

use Google::Voice;
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');
# connect call & cancel it
my $call = $g->call('+15555555555' => '+14444444444');
$call->cancel;
# Print all sms conversations
foreach my $sms ($g->sms) {
print $sms->name;
print $_->time, ':', $_->text, "\n" foreach $sms->messages;
# Delete conversation
$sms->delete;
}
# loop through voicemail messages
foreach my $vm ($g->voicemail) {
# Name, number, and transcribed text
print $vm->name . "\n";
print $vm->meta->{phoneNumber} . "\n";
print $vm->text . "\n";
# Download mp3
$vm->download->move_to($vm->id . '.mp3');
# Delete
$vm->delete;
}

Create object
Login. Returns object on success, false on failure.
Connect two phone numbers
Send SMS message. Returns true/false.
List of SMS messages
List of voicemail messages
List of recorded calls
List of placed calls
List of placed calls
List of missed calls
List of starred items (call, sms, or voicemail)
List of items marked as spam (call, sms, or voicemail)
List of all items (call, sms, or voicemail)


http://github.com/tempire/perl-google-voice

Glen Hinkle tempire@cpan.org

David Jones
Graham Forest