Get Chat Node

This API is used to get the chat node for two users or between a buyer and a seller for a particular gig.

Endpoint #

The Voomerr Get Chat Node endpoint is GET https://admin.voomerr.com/api/get_chat_node.php

Request Parameters #

Parameter Name Data Type Required Description
user_id1 Integer Yes The user ID of the first user in the chat.
user_id2 Integer Yes The user ID of the second user in the chat.
gig_id Integer Yes The gig ID for which the chat node is being retrieved.

Response Parameters #

Parameter Name Data Type Description
chat_node_id Integer The ID of the chat node for the two users.
user_id1 Integer The user ID of the first user in the chat.
user_id2 Integer The user ID of the second user in the chat.
gig_id Integer The gig ID for which the chat node is being retrieved.
last_message String The last message in the chat.
unread_count Integer The number of unread messages in the chat.
created_at Datetime The date and time at which the chat node was created.
updated_at Datetime The date and time at which the chat node was last updated.
user1_username String The username of the first user in the chat.
user2_username String The username of the second user in the chat.
user1_image String The profile image URL of the first user in the chat.
user2_image String The profile image URL of the second user in the chat.

Request Example #

javascript
https://admin.voomerr.com/get_chat_node.php?user_id1=123&user_id2=456&gig_id=789

Response Example #

json
{
"chat_node_id": 1234,
"user_id1": 123,
"user_id2": 456,
"gig_id": 789,
"last_message": "Hi there!",
"unread_count": 2,
"created_at": "2022-02-25 10:25:30",
"updated_at": "2022-02-28 14:20:15",
"user1_username": "john123",
"user2_username": "jane456",
"user1_image": "https://example.com/images/john123.jpg",
"user2_image": "https://example.com/images/jane456.jpg"
}

Powered by BetterDocs