Chat history
To retreive the topic based all chats in a conversation you can use the below API.
info
{api-base-url} can be obtained from the MirrorFly console.
HTTP request#
Request Params#
| Param | DataType | Required | Description |
|---|---|---|---|
| chatType | String | Yes | Chat type. Possible value singlechat |
| topicId | String | Yes | TopicId to fetch records associated with topicId |
| userOne | String | Yes | userOne userid of the chat |
| userTwo | String | Yes | userTwo userid of the chat |
| page | Number | No | Page number to get the particular page data default value is 1 |
| size | Number | No | Number of chats per page default value is 10 |
Note : If it is a media message, use the
fileUrlfrom the media object to download the media by using this Download Media API. Topics can be created from here createTopic.
Responses#
If successful, this action returns chats list in a conversation, in the response body.
Error#
In the case of an error, an error object like below is returned.
When the token passed in Headers is expired
In the case of a Bad Request, an error message is returned