示例#1
0
def private_tweet_func(account_name, password, text, r_mid):
    xnr = SinaLauncher(account_name, password)
    xnr.login()
    user = SinaOperateAPI(xnr.uid)
    user.text = text
    user.r_mid = r_mid
    mark = user.privmessage()

    return mark
示例#2
0
def private_tweet_func(account_name, password, text, uid):

    sina_operate_api = SinaOperateAPI(xnr.uid)
    mark = sina_operate_api.privmessage(uid=uid, content=text)

    return mark