Exemplo n.º 1
0
def repost(mid, content, comment=False):
    """
    Reposting a Weibo.
    """
    data = handle_repost_request(mid, content, comment)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 2
0
def repost(mid, content, comment=False):
    """
    Reposting a Weibo.
    """
    data = handle_repost_request(mid, content, comment)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 3
0
def post(content):
    """
    Making a post.

    :param str content: the content of the post.
    """
    data = handle_post_request(content)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 4
0
def post(content):
    """
    Making a post.

    :param str content: the content of the post.
    """
    data = handle_post_request(content)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 5
0
def comment(mid, content):
    """
    Posting a comment.

    :param str mid: the id of the Weibo on which the is comment posted.

    :param str content: the content of the comment.
    """
    data = handle_comment_request(mid, content)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 6
0
def comment(mid, content):
    """
    Posting a comment.

    :param str mid: the id of the Weibo on which the is comment posted.

    :param str content: the content of the comment.
    """
    data = handle_comment_request(mid, content)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 7
0
def follow(uid, nick):
    data = handle_follow_request(uid, nick)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 8
0
def send_message(uid, content):
    data = handle_send_message_request(uid, content)
    if not data:
        return False

    return check_code(data)
Exemplo n.º 9
0
def like(mid):
    data = handle_like_request(mid)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 10
0
def reply_comment(mid, cid, ouid, nick, content):
    data = handle_reply_comment_request(mid, cid, ouid, nick, content)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 11
0
def follow(uid, nick):
    data = handle_follow_request(uid, nick)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 12
0
def send_message(uid, content):
    data = handle_send_message_request(uid, content)
    if not data:
        return False

    return check_code(data)
Exemplo n.º 13
0
def like(mid):
    data = handle_like_request(mid)
    if not data:
        return False
    return check_code(data)
Exemplo n.º 14
0
def reply_comment(mid, cid, ouid, nick, content):
    data = handle_reply_comment_request(mid, cid, ouid, nick, content)
    if not data:
        return False
    return check_code(data)