Loading…

Read friends list

```javascript WXAPI.friendList({ token: '0000', page: 1 }) ``` + page reads which page of data. If this parameter is not passed, the default value is 1. + pageSize How many records are displayed on each page of data? If this parameter is not passed, the default is 50 + token current user login credentials + dateAddBegin Add time, format 2018-05-16 + dateAddEnd Add time, format 2018-05-16 + uids friend user ID + unreadMsg Filter friends whose IM messages have not been read ```json { "code": 0, "data": { "result": [ { "avatarUrls": "https://thirdwx.qlogo.cn/mmopen/vi_32/kzdcnianU6KESRCDv46BNia75rqtGVIH3ib1wrzD9zszRSGia2aicfb5mS4bpPbb8M4ic8DzQ4iaK8W0bgju1qTneJNDA/132", "dateAdd": "2021-12-07 14:13:49", "mobileMasks": "198****8507", "nicks": "apifm", "uids": 1940840, lastMsg: 'Last chat message', lastMsgDate: '2021-11-13 19:21:46' } ], "totalRow": 1, "totalPage": 1 }, "msg": "success" } ``` + result friend list - avatarUrls friend avatars - dateAdd Add friend time - mobileMasks Friend’s mobile phone number - nicks friend nicknames - uids friend user ID - lastMsg The chat content of the last chat history with friends - lastMsgDate The last time you chatted with your friend + unreadMsg unread message statistics - count_id How many friends’ messages are unread in total? - sum_unread_msg_number How many messages are unread in total? + totalRow total number of friends + totalPage The total number of pages calculated based on the number of displayed items per page passed in