Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alansz opened this issue Mar 12, 2015 · 3 comments
Open

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

alansz opened this issue Mar 12, 2015 · 3 comments

Comments

@alansz
Copy link

alansz commented Mar 12, 2015

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
Copy link
Owner

tempire commented Mar 12, 2015

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

@brandonwbrown
Copy link

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
Copy link
Owner

tempire commented May 31, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants