```javascript
WXAPI.userImList({
token: '0000',
uid: 'There is also a user number'
})
```
+ token Current login user credentials
+ page gets the data on which page, this parameter is not passed, the default is 1
+ pageSize How many pieces of data are obtained per page? This parameter is not passed. The default is 50 pieces.
+ uid friend user number
+ beginId starts recording ID, the top record Id, returns the records with id < beginId, and sorts them in reverse order by id
+ endId End record ID, the id of the bottom record, return the records with id > endId, and sort them in positive order
```json
{
"code": 0,
"data": {
"result": [
{
"dateAdd": "2021-12-07 14:25:42",
"id": 56,
"txt": "Miss you",
"uidReceive": 2425742,
"uidSend": 2428101
},
{
"dateAdd": "2021-12-07 14:25:38",
"id": 55,
"txt": "Yes, what can I do?",
"uidReceive": 2428101,
"uidSend": 2425742
},
{
"dateAdd": "2021-12-07 14:25:21",
"id": 54,
"txt": "Hello, are you there?",
"uidReceive": 2425742,
"uidSend": 2428101
}
],
"totalRow": 3,
"totalPage": 1
},
"msg": "success"
}
```
+ uidSend is the sender number of the message
+ uidReceive is the recipient number of the message