예제 #1
0
파일: api.py 프로젝트: ishida83/weiboapi
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)
예제 #2
0
파일: api.py 프로젝트: lawRossi/weiboapi
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)
예제 #3
0
파일: api.py 프로젝트: ishida83/weiboapi
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)
예제 #4
0
파일: api.py 프로젝트: lawRossi/weiboapi
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)
예제 #5
0
파일: api.py 프로젝트: ishida83/weiboapi
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)
예제 #6
0
파일: api.py 프로젝트: lawRossi/weiboapi
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)
예제 #7
0
파일: api.py 프로젝트: ishida83/weiboapi
def follow(uid, nick):
    data = handle_follow_request(uid, nick)
    if not data:
        return False
    return check_code(data)
예제 #8
0
파일: api.py 프로젝트: ishida83/weiboapi
def send_message(uid, content):
    data = handle_send_message_request(uid, content)
    if not data:
        return False

    return check_code(data)
예제 #9
0
파일: api.py 프로젝트: ishida83/weiboapi
def like(mid):
    data = handle_like_request(mid)
    if not data:
        return False
    return check_code(data)
예제 #10
0
파일: api.py 프로젝트: ishida83/weiboapi
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)
예제 #11
0
파일: api.py 프로젝트: lawRossi/weiboapi
def follow(uid, nick):
    data = handle_follow_request(uid, nick)
    if not data:
        return False
    return check_code(data)
예제 #12
0
파일: api.py 프로젝트: lawRossi/weiboapi
def send_message(uid, content):
    data = handle_send_message_request(uid, content)
    if not data:
        return False

    return check_code(data)
예제 #13
0
파일: api.py 프로젝트: lawRossi/weiboapi
def like(mid):
    data = handle_like_request(mid)
    if not data:
        return False
    return check_code(data)
예제 #14
0
파일: api.py 프로젝트: lawRossi/weiboapi
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)