tempire / perl-google-voice

Perl module to interact with Google::Voice
37 stars 12 forks source link

Fixes to make G::V's example sms code work: #13

Open alansz opened 9 years ago

alansz commented 9 years ago

In Google/Voice.pm and Google/Voice/Feed.pm, 'attrs' should now be 'attr'

In Google/Voice.pm, Mojo::JSON->new..->decode should now be Mojo::JSON::decode_json

IO::Socket::SSL 1.96 or higher is required (but G::V will install without it, and should instead fail with a dependency)

tempire commented 9 years ago

Indeed. If you make a pull request, and it passes tests, I'll update the module.

brandonwbrown commented 9 years ago

This seems to work, or at least get past the errors, but then I get this:

Can't call method "sms" on an undefined value at ./srd_download_hl7.pl line 131.

Since there is no error logging I guessed that the username might not require \@gmail.com but then this:

Malformed JSON: Expected string, array, object, number, boolean or null at line 0, offset 0 at /Library/Perl/5.18/Google/Voice.pm line 103.

Ideas? It would be great to get this going...

tempire commented 9 years ago

It requires the full username, so @gmail.com is correct. It's likely that the format of html that google voice is returning has changed a bit.

You might want to try running the tests at t/voice.t, inserting your own username, password, and phone number. That will tell you what is working, and give you a start on trying to debug the changes.