Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.2 kB
3
Indexable
Never
Name : Marked all message as read
URL : https://development.virtualhomes.in/api/allMessageMarkAsRead
params : meeting_id , message_id (id of last message received)
Header : Accept : application/json , Authorization Bearer #ACCESS_TOKEN
Response :

{
    "error": false,
    "data": {},
    "message": "Messages has been marked as read successfully."
}


Name : Marked received message (one message) as read
URL : https://development.virtualhomes.in/api/messageMarkAsRead
params : message_id (id of message received)
Header : Accept : application/json , Authorization Bearer #ACCESS_TOKEN
Response :

{
    "error": false,
    "data": {
        "id": 409,
        "meeting_id": 80,
        "sender_id": 0,
        "customer_login_id": 0,
        "sender_unique_id": "0#ChatBot",
        "message": "Hello Mannan Kagdi! Welcome to Paradise Towers. I am Genio Chat Bot. How can I help you ?",
        "message_type": "text",
        "is_hidden_message": 1,
        "is_welcome_message": 1,
        "is_message_read": 1,
        "deleted_at": null,
        "created_at": "2022-12-15T05:48:16.000000Z",
        "updated_at": "2022-12-15T05:52:11.000000Z"
    },
    "message": "Message has been marked as read successfully."
}