Pygooglevoice login error

前端 未结 3 2467
甜味超标
甜味超标 2021-01-14 22:45

Someone else asked this question but had no replies so I am asking it again. I\'m trying to use pygooglevoice API but when I run the SMS.py example script it gives me a logi

相关标签:
3条回答
  • 2021-01-14 23:14

    Following works for me. I followed steps given at pygooglevoice project discussion board, comment # 17. Below are steps if one is starting from the scratch.

    #Command line Google Voice:
    #Updated Jan 10, 2013
    
    #required tools:
    sudo apt-get install python python-simplejson python-setuptools
    sudo easy_install simplejson
    
    # if gvoice was installed previously, then uninstall it:
    sudo rm -r /usr/local/lib/python2.7/dist-packages/googlevoice
    sudo rm /usr/local/lib/python2.7/dist-packages/pygooglevoice*
    
    #download pygooglevoice:
    wget http://pygooglevoice.googlecode.com/files/pygooglevoice-0.5.tar.gz
    tar -xf pygooglevoice-0.5.tar.gz
    cd pygooglevoice
    
    # edit settings.py to match correct Google Voice URL on line # 22:
    nano googlevoice/settings.py
    
    #correct URL:
    LOGIN = 'https://accounts.google.com/ServiceLogin?service=grandcentral'
    #you may check if URL is linking to Google Voice login page in browser.
    #save and quit settings.py
    
    #install gvoice:
    sudo python setup.py install
    
    #Login and make call for the first time:
    gvoice # enter login email/pwd
      gvoice> call #follow prompts and make a call
      gvoice>send_sms # or s to send sms
      gvoice>exit #quit gvoice
    
    #After first login, you may like to edit .gvoice for default actions:
    sudo nano ~/.gvoice
    
    #end
    
    0 讨论(0)
  • 2021-01-14 23:14

    I made a clone which currently works (at least for sending SMS messages): http://code.google.com/r/kkleidal-pygooglevoiceupdate/

    The problem was that Google changed the login URL. In addition, I added a few params to the POST request which may have helped solve some issues it was running into with the POST request. Log in should work smoothly now.

    0 讨论(0)
  • 2021-01-14 23:16

    I have the same problem before. My version is 0.5 (installed by pip) and my system is OSX 10.8. After reading issue 60 #17, I have just changed the line LOGIN = 'https://www.google.com/accounts/ServiceLoginAuth?service=grandcentral' to LOGIN = 'https://accounts.google.com/ServiceLogin?service=grandcentral' in the file settings.py and then problem solved.

    0 讨论(0)
提交回复
热议问题