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

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

Get a list of your blogs

Returns: list of dictionaries
    [{"blogid": ID_of_this_blog,
      "blogName": "name_of_this_blog",
      "url": "URL_of_this_blog"}, ...]

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

Example:
>>> blogList = blogger.listBlogs("my_blogger_username", "my_secret_password")
>>> for blog in blogList:
...     print "ID:", blog["blogid"]
...     print "Name:, blog["blogName"]
...     print "URL:", blog["url"]
...     print

Manila notes:
- Manila does not support this method, because it does not keep a centralized
  database of a user's blogs.

Definition at line 101 of file blogger.py.

00101                                                  :
    """Get a list of your blogs
    
    Returns: list of dictionaries
        [{"blogid": ID_of_this_blog,
          "blogName": "name_of_this_blog",
          "url": "URL_of_this_blog"}, ...]
    
    Arguments:
    - username: your weblog username
    - password: your weblog password
    - serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)
    
    Example:
    >>> blogList = blogger.listBlogs("my_blogger_username", "my_secret_password")
    >>> for blog in blogList:
    ...     print "ID:", blog["blogid"]
    ...     print "Name:, blog["blogName"]
    ...     print "URL:", blog["url"]
    ...     print
    
    Manila notes:
    - Manila does not support this method, because it does not keep a centralized
      database of a user's blogs.
    """
    server = xmlrpclib.Server(serverURL or constants.xmlrpcServer, constants.transport)
    response = server.blogger.getUsersBlogs(constants.applicationKey,
        username,
        password)
    return response
getUsersBlogs = listBlogs


Generated by  Doxygen 1.6.0   Back to index