libgmail.GmailContact

Module libgmail :: Class GmailContact |
[hide private]
[frames] | no frames]

# Class GmailContact

source code
Class for storing a Gmail Contacts list entry

Instance Methods | [hide private]
__init__(self, name, email, *extra_args) Returns a new GmailContact object... | source code
__str__(self) | source code
__eq__(self, other) | source code
getId(self) | source code
getName(self) | source code
getEmail(self) | source code
getNotes(self) | source code
setNotes(self, notes) Sets the notes field for this GmailContact Note that this does NOT change the note field on Gmail's end; only adding or removing contacts modifies them | source code
getMoreInfo(self) | source code
setMoreInfo(self, moreInfo) moreInfo format... | source code
getVCard(self) Returns a vCard 3.0 for this contact, as a string | source code

Method Details | [hide private]

### __init__(self, name, email, *extra_args) (Constructor) | source code
    Returns a new GmailContact object
    (you can then call addContact on this to commit
     it to the Gmail addressbook, for example)

    Consider calling setNotes() and setMoreInfo()
    to add extended information to this contact

### setMoreInfo(self, moreInfo) | source code
    moreInfo format
    ---------------
    Use special key values::
                    'i' =  IM
                    'p' =  Phone
                    'd' =  Company
                    'a' =  ADR
                    'e' =  Email
                    'm' =  Mobile
                    'b' =  Pager
                    'f' =  Fax
                    't' =  Title
                    'o' =  Other

    Simple example::

    moreInfo = {'Home': ( ('a','852 W Barry'),
                          ('p', '1-773-244-1980'),
                          ('i', 'aim:brianray34') ) }

    Complex example::

    moreInfo = {
        'Personal': (('e', 'Home Email'),
                     ('f', 'Home Fax')),
        'Work': (('d', 'Sample Company'),
                 ('t', 'Job Title'),
                 ('o', 'Department: Department1'),
                 ('o', 'Department: Department2'),
                 ('p', 'Work Phone'),
                 ('m', 'Mobile Phone'),
                 ('f', 'Work Fax'),
                 ('b', 'Pager')) }