[TOC]
kickout(uid, ce = None, callback = None, timeout = 0)
- uid: (Required | int) the user id
- ce: (Optional | string ) the rtm endpoint of the user, used for multi-user login
- callback: (Optional | a sub-class of BasicCallback ) used in async implementation
class BasicCallback(object):
def callback(self, error_code):
pass- in async implementation, return None
- in sync implementation:
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
get_online_users(uids, callback = None, timeout = 0)
- uids: (Required | [int]) uid list
- callback: (Optional | a sub-class of GetOnlineUsersCallback ) used in async implementation
class GetOnlineUsersCallback(object):
def callback(self, uids, error_code):
pass- in async implementation, return None
- in sync implementation:
- uids: ([int]) online uids result
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
add_project_black(uid, btime, callback = None, timeout = 0)
- uid: (Required | int) user id
- btime: (Required | int) ban time in seconds
- callback: (Optional | a sub-class of BasicCallback ) used in async implementation
class BasicCallback(object):
def callback(self, error_code):
pass- in async implementation, return None
- in sync implementation:
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
remove_project_black(uid, callback = None, timeout = 0)
- uid: (Required | int) user id
- callback: (Optional | a sub-class of BasicCallback ) used in async implementation
class BasicCallback(object):
def callback(self, error_code):
pass- in async implementation, return None
- in sync implementation:
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
is_project_black(uid, callback = None, timeout = 0)- uid: (Required | int) user id
- callback: (Optional | a sub-class of IsProjectBlackCallback ) used in async implementation
class IsProjectBlackCallback(object):
def callback(self, ok, error_code):
pass- in async implementation, return None
- in sync implementation:
- ok: (bool) is in peoject black
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
set_user_info(uid, oinfo = None, pinfo = None, callback = None, timeout = 0)
- uid: (Required | int) user id
- oinfo: (Optional | str) public info
- pinfo: (Optional | str) private info
- callback: (Optional | a sub-class of BasicCallback ) used in async implementation
class BasicCallback(object):
def callback(self, error_code):
pass- in async implementation, return None
- in sync implementation:
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
get_user_info(uid, callback = None, timeout = 0)
- uid: (Required | int) user id
- callback: (Optional | a sub-class of GetUserInfoCallback ) used in async implementation
class GetUserInfoCallback(object):
def callback(self, oinfo, pinfo, error_code):
pass- in async implementation, return None
- in sync implementation:
- oinfo: (int) public info
- pinfo: (int) private info
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
get_user_open_info(uids, callback = None, timeout = 0)
- uids: (Required | [int]) user id list
- callback: (Optional | a sub-class of GetUserOpenInfoCallback ) used in async implementation
class GetUserOpenInfoCallback(object):
def callback(self, info, error_code):
pass- in async implementation, return None
- in sync implementation:
- info: (dict) public info
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success
clear_user_message(uid, callback = None, timeout = 0)
- uid: (Required | int) user id
- callback: (Optional | a sub-class of GetUserOpenInfoCallback ) used in async implementation
class BasicCallback(object):
def callback(self, error_code):
pass- in async implementation, return None
- in sync implementation:
- error_code: (int) the error code when quest is fail, or FPNN_ERROR.FPNN_EC_OK when success