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)
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)
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)
def follow(uid, nick): data = handle_follow_request(uid, nick) if not data: return False return check_code(data)
def send_message(uid, content): data = handle_send_message_request(uid, content) if not data: return False return check_code(data)
def like(mid): data = handle_like_request(mid) if not data: return False return check_code(data)
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)