googlevoice::voice::Voice Class Reference
List of all members.
Detailed Description
Main voice instance for interacting with the Google Voice service
Handles login/logout and most of the baser HTTP methods
Definition at line 14 of file voice.py.
Member Function Documentation
def googlevoice::voice::Voice::__do_page |
( |
|
self, |
|
|
|
page, |
|
|
|
data = None , |
|
|
|
headers = {} | |
|
) |
| | [private] |
Loads a page out of the settings and pass it on to urllib Request
Definition at line 189 of file voice.py.
def googlevoice::voice::Voice::__do_special_page |
( |
|
self, |
|
|
|
page, |
|
|
|
data = None , |
|
|
|
headers = {} | |
|
) |
| | [private] |
Add self.special to request data
Definition at line 214 of file voice.py.
def googlevoice::voice::Voice::__get_xml_page |
( |
|
self, |
|
|
|
page, |
|
|
|
data = None , |
|
|
|
headers = {} | |
|
) |
| | [private] |
Return XMLParser instance generated from given page
Definition at line 227 of file voice.py.
def googlevoice::voice::Voice::__init__ |
( |
|
self |
) |
|
def googlevoice::voice::Voice::__messages_post |
( |
|
self, |
|
|
|
page, |
|
|
|
msgs, |
|
|
|
kwargs | |
|
) |
| | [private] |
Performs message operations, eg deleting,staring,moving
Definition at line 233 of file voice.py.
def googlevoice::voice::Voice::__validate_special_page |
( |
|
self, |
|
|
|
page, |
|
|
|
data = {} , |
|
|
|
kwargs | |
|
) |
| | [private] |
Validates a given special page for an 'ok' response
Definition at line 205 of file voice.py.
def googlevoice::voice::Voice::call |
( |
|
self, |
|
|
|
outgoingNumber, |
|
|
|
forwardingNumber = None , |
|
|
|
phoneType = None , |
|
|
|
subscriberNumber = None | |
|
) |
| | |
Make a call to an ``outgoingNumber`` from your ``forwardingNumber`` (optional).
If you pass in your ``forwardingNumber``, please also pass in the correct ``phoneType``
Definition at line 91 of file voice.py.
def googlevoice::voice::Voice::cancel |
( |
|
self, |
|
|
|
outgoingNumber = None , |
|
|
|
forwardingNumber = None | |
|
) |
| | |
Cancels a call matching outgoing and forwarding numbers (if given).
Will raise an error if no matching call is being placed
Definition at line 111 of file voice.py.
def googlevoice::voice::Voice::contacts |
( |
|
self |
) |
|
Partial data of your Google Account Contacts related to your Voice account.
For a more comprehensive suite of APIs, check out http://code.google.com/apis/contacts/docs/1.0/developers_guide_python.html
Definition at line 173 of file voice.py.
def googlevoice::voice::Voice::download |
( |
|
self, |
|
|
|
msg, |
|
|
|
adir = None | |
|
) |
| | |
Download a voicemail or recorded call MP3 matching the given ``msg``
which can either be a ``Message`` instance, or a SHA1 identifier.
Saves files to ``adir`` (defaults to current directory).
Message hashes can be found in ``self.voicemail().messages`` for example.
Returns location of saved file.
Definition at line 149 of file voice.py.
def googlevoice::voice::Voice::login |
( |
|
self, |
|
|
|
email = None , |
|
|
|
passwd = None | |
|
) |
| | |
Login to the service using your Google Voice account
Credentials will be propmpted for if not given as args or in the ``~/.gvoice`` config file
Definition at line 49 of file voice.py.
def googlevoice::voice::Voice::logout |
( |
|
self |
) |
|
Logs out an instance and makes sure it does not still have a session
Definition at line 82 of file voice.py.
def googlevoice::voice::Voice::phones |
( |
|
self |
) |
|
Returns a list of ``Phone`` instances attached to your account.
Definition at line 122 of file voice.py.
def googlevoice::voice::Voice::search |
( |
|
self, |
|
|
|
query | |
|
) |
| | |
Search your Google Voice Account history for calls, voicemails, and sms
Returns ``Folder`` instance containting matching messages
Definition at line 142 of file voice.py.
def googlevoice::voice::Voice::send_sms |
( |
|
self, |
|
|
|
phoneNumber, |
|
|
|
text | |
|
) |
| | |
Send an SMS message to a given ``phoneNumber`` with the given ``text`` message
Definition at line 136 of file voice.py.
def googlevoice::voice::Voice::settings |
( |
|
self |
) |
|
Dict of current Google Voice settings
Definition at line 129 of file voice.py.
def googlevoice::voice::Voice::special |
( |
|
self |
) |
|
Returns special identifier for your session (if logged in)
Definition at line 28 of file voice.py.
Member Data Documentation
Property Documentation
googlevoice::voice::Voice::contacts = property(contacts) [static] |
googlevoice::voice::Voice::phones = property(phones) [static] |
googlevoice::voice::Voice::settings = property(settings) [static] |
googlevoice::voice::Voice::special = property(special) [static] |
The documentation for this class was generated from the following file: