This is a Python-based interface for accessing Google Voice services. It is compatible with both Python 2 and 3, and allows users to easily manage voice messages, make calls, and send text messages using Google Voice.
Credit is given to Chad Smith, for sharing his knowledge of the API, and some of the code was adapted from his Firefox Add-on. You can download the code directly from Google Code and install the module. The process is easy. First, you clone the code using $hg clone pygooglevoice. Next, move into the installation directory by entering $cd pygooglevoice. Finally, type $sudo python setup.py install.
To make an outgoing call with the Python API, use the following code:
>>> from googlevoice import Voice
>>> voice = Voice()
>>> voice.login('[email protected]')
Password:
>>> voice.call('18004664411', '14075551234')
The first phone number represents the outgoing number, while the second represents the phone number you want Google Voice to ring.
The project comes with a script called gvoice. The script makes it easy to use all the features of the module interactively. To use the script, enter $gvoice -e [email protected]. Next, type in your password when prompted. Finally, enter gvoice> call. Follow the prompt to make an outgoing call with Google Voice.
In conclusion, the Python-googlevoice project is a handy application that enables users to use the Google Voice API with Python. It's easy to install and makes it easy to place calls, send text messages, download voicemail messages and record messages, and search various folders of your Google Voice Accounts. It works with both Python 2 and Python 3, making it a great tool for both developers and users.
Version 0.3: N/A