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

def blogger::getPost (   postID,
  username,
  password,
  serverURL = None 
)

Get a single post by ID

Returns: dictionary
    {"dateCreated": date/time of this post in tuple format (see http://python.org/doc/lib/module-time.html)
     "userid": user who posted this entry,
     "postid": ID of this post,
     "content": text of this post}
    
Arguments:
- postID: the ID of the post to get
- username: your weblog username
- password: your weblog password
- serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)

Example:
>>> blogger.getPost(postID, "my_blogger_username", "my_blogger_password")

Definition at line 173 of file blogger.py.

00173                                                        :
    """Get a single post by ID
    
    Returns: dictionary
        {"dateCreated": date/time of this post in tuple format (see http://python.org/doc/lib/module-time.html)
         "userid": user who posted this entry,
         "postid": ID of this post,
         "content": text of this post}
        
    Arguments:
    - postID: the ID of the post to get
    - username: your weblog username
    - password: your weblog password
    - serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)
    
    Example:
    >>> blogger.getPost(postID, "my_blogger_username", "my_blogger_password")
    """
    server = xmlrpclib.Server(serverURL or constants.xmlrpcServer, constants.transport)
    response = server.blogger.getPost(constants.applicationKey,
        str(postID),
        str(username),
        str(password))
    v = response["dateCreated"].value
    response["dateCreated"] = (int(v[:4]), int(v[4:6]), int(v[6:8]), int(v[9:11]), int(v[12:14]), int(v[15:17]), 0, 0, 0)
    return response

def newPost(blogID, username, password, text, publish=0, serverURL=None):


Generated by  Doxygen 1.6.0   Back to index