Pygooglevoice login error

前端 未结 3 2470
甜味超标
甜味超标 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
    

提交回复
热议问题