-
Notifications
You must be signed in to change notification settings - Fork 715
联系人Contact
HanSon edited this page Mar 20, 2017
·
3 revisions
Contact 是你微信所添加的联系人好友
可通过contact()
获取单例实例
-
getContactById($id):array
根据微信号获取联系人数组 -
getUsernameById($id):string
根据微信号获取联系人的username -
getUsernameByRemarkName($remarkName):string
根据备注获取联系人的username -
getUsernameByNickname($nickname, $blur = false):string
根据昵称获取联系人的username,blur设置为true可模糊匹配 -
setRemarkName($username, $remarkName):bool
设置联系人昵称(长度最多16字节) -
setStick($username, $isStick = true):bool
置顶聊天(群聊同样有效),setStick
为true时为置顶,false为取消置顶