Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
Python Google Voice
===================

Joe McCall & Justin Quick

Exposing the Google Voice "API" to the Python language
-------------------------------------------------------

Google Voice for Python Allows you to place calls, send sms, download voicemail, and check the various folders of your Google Voice Accounts.
You can use the Python API or command line script to schedule calls, check for new recieved calls/sms, or even sync your recorded voicemails/calls.  
Works for Python 2 and Python 3

API Documentation is available at http://sphinxdoc.github.com/pygooglevoice/

INSTALLATION
============

1. Login to your Linux machine as yourself, a regular user (not root)
2. Extract the tar file gvmirror.tar.gz in your home directory
3. If you do not already have .gvoice file in your home directory, create one as follows:

   cd ~/gvmirror
   [ -f ~/.gvoice ] || cp dot.gvoice ~/.gvoice

4. Edit ~/.gvoice by typing: vi ~/.gvoice
NOTE: In this file, please put your correct google account name, password and corresponding google voice phone number for fields email, password and forwardingNumber respectively
5. Just run the script as follows:
~/gvmirror/mirror-murty.py
6. Feel free to browse the downloaded files in the directory: ~/gvoice/
7. You may run the script again or nightly through cron if you want!
8. Each time you run the script, it will only download the new messages, not all your messages.

-----------

pygooglevoice package is the fork of original pygooglevoice package maintained by Arno Hautala at https://bitbucket.org/fracai/pygooglevoice

-----------

User agent for Android:
Mozilla/5.0 (Linux; U; Android 2.2.1; fr-ch; A43 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

-------------------------

URLs located at this page:
http://www.googlevoice.org/pages.php?title=sniffing


https://www.google.com/voice/inbox/message/?messageId=3fe3c0f7d61173c67da60d3691e70b9a14f09bf8&v=634

https://www.google.com/voice/inbox/message/?messageId=3fe3c0f7d61173c67da60d3691e70b9a14f09bf8


------

name=_rnr_se value=FjhSozhzWprabboFUQ0bVo5jWmo=

User agent: default

https://www.google.com/voice/m?uipref=1

https://www.google.com/voice/m?uipref=1#~voice:s=conversation&i=5f6f1046d79bdc528368f07a5ca647c8efebcf91


After setting User agent to iPhone 3.0:
https://www.google.com/voice/m#~voice:s=inbox&l=sms
https://www.google.com/voice/m#~voice:s=conversation&i=47e9c4c4a3ad8f7751b0d1c13e4a1b9cbe8afa4d

---

TO get just times:
User agent: default
https://www.google.com/voice#message/5f6f1046d79bdc528368f07a5ca647c8efebcf91
https://www.google.com/voice/#message/5f6f1046d79bdc528368f07a5ca647c8efebcf91
https://www.google.com/voice/inbox/#message/47e9c4c4a3ad8f7751b0d1c13e4a1b9cbe8afa4d

All Parent SMS:
https://www.google.com/voice/m/i/sms
https://www.google.com/voice/m/i/sms?p=2
etc

All voicemail:
https://www.google.com/voice/m/i/voicemail
https://www.google.com/voice/m/i/voicemail/?p=2

---

Google Voice CPAN
http://search.cpan.org/~tempire/Google-Voice-0.03/lib/Google/Voice.pm

https://www.gvmax.com/

https://code.google.com/p/gtalksms/

---

testing sms id:
aa7d04fc9b7145e43db1f5afa9c007ca3e179eca

Get Parent SMS messages in XML:
https://www.google.com/voice/inbox/recent/sms/
https://www.google.com/voice/inbox/recent/sms/?page=p2
... etc

https://www.google.com/voice/inbox/recent/unread/
https://www.google.com/voice/m/i/unread

Get Complete SMS chain for a given parent message in XML:
https://www.google.com/voice/inbox/message/?messageId=ID
https://www.google.com/voice/inbox/message/?messageId=ID&page=p2
... etc

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.