Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def blogger::getUserInfo (   username,
  password,
  serverURL = None 
)

Get information about a user

Returns: dictionary
    {"nickname": "user's nickname",
     "userid": "user ID",
     "url": "user's URL",
     "email": "user's email",
     "lastname": "user's last name",
     "firstname": "user's first name"}

Arguments:
- username: your weblog username
- password: your weblog password
- serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)

Example:
>>> info = blogger.getUserInfo("my_blogger_username", "my_secret_password")
>>> for k, v in info.iteritems():
...     print k, v

Definition at line 74 of file blogger.py.

00074                                                    :
    """Get information about a user
    
    Returns: dictionary
        {"nickname": "user's nickname",
         "userid": "user ID",
         "url": "user's URL",
         "email": "user's email",
         "lastname": "user's last name",
         "firstname": "user's first name"}
    
    Arguments:
    - username: your weblog username
    - password: your weblog password
    - serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)
    
    Example:
    >>> info = blogger.getUserInfo("my_blogger_username", "my_secret_password")
    >>> for k, v in info.iteritems():
    ...     print k, v
    """
    server = xmlrpclib.Server(serverURL or constants.xmlrpcServer, constants.transport)
    info = server.blogger.getUserInfo(constants.applicationKey,
        username,
        password)
    return info

def listBlogs(username, password, serverURL=None):


Generated by  Doxygen 1.6.0   Back to index