aaronpk / Google-Voice-PHP-API

Unmaintaned: Please do not contact me with support requests. If this no longer works, it's because Google Voice changed their systems. I will accept pull requests that fix things. Check out http://twilio.com for a much better API for sending and receiving SMSs.
Other
228 stars 108 forks source link

Login doesn't work any longer #2

Closed recordsage closed 11 years ago

recordsage commented 13 years ago

When trying to use the API - I get the following error: Fatal error: Uncaught exception 'Exception' with message 'Could not log in to Google Voice with username: takeoutonline@gmail.com' in /homepages/44/d157697781/htdocs/GoogleVoice.php:66 Stack trace: #0 /homepages/44/d157697781/htdocs/GoogleVoice.php(105): GoogleVoice->_logIn() #1 /homepages/44/d157697781/htdocs/TEST-autotexting.php(18): GoogleVoice->sendSMS('2062289034', 'Testing Texting...') #2 {main} thrown in /homepages/44/d157697781/htdocs/GoogleVoice.php on line 66

vector-sec commented 13 years ago

It's a cookie issue, when you print out $html you see a page saying:

"Your browser's cookie functionality is turned off. Please turn it on."

jquick commented 13 years ago

I had an issue logging in and i had to change the URL's to

https://accounts.google.com/ServiceLogin?passive=true&service=grandcentral (line 41) https://accounts.google.com/ServiceLoginAuth?service=grandcentral (line 49)

worked fine after that

vector-sec commented 13 years ago

jquick's fix worked for me as well

:)

digitalextremist commented 13 years ago

Same here... thanks @jquick //

mudzakkir commented 9 years ago

won't work :(