POST api/notifications/chat/v1/{id}
Send chat notifications to org member
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Logged in org member id. |
integer |
Required |
Body Parameters
object representing the details that need to send chat message notification to Lifetrons user.
ChatNotifyNewReq| Name | Description | Type | Additional information |
|---|---|---|---|
| lead_id |
lead id in case of lead chat |
integer |
None. |
| org_id |
org unique identification id |
integer |
Required |
| org_branch_id |
org member branch id |
integer |
None. |
| org_member_id |
org member id. Logged in person id |
integer |
Required |
| chatId |
chat id generated by firebase |
string |
None. |
| DisplayName |
name of sender |
string |
None. |
| message |
message from sender |
string |
None. |
| sender_unique_id |
sender uid. here it is org member uid |
string |
None. |
| type |
type of message from sender. here tyes are text,video etc |
string |
None. |
| multimedia_url |
multiMedia Url from sender |
string |
None. |
Request Formats
application/json, text/json
{
"lead_id": 1,
"org_id": 1,
"org_branch_id": 1,
"org_member_id": 2,
"chatId": "sample string 3",
"DisplayName": "sample string 4",
"message": "sample string 5",
"sender_unique_id ": "sample string 6",
"type": "sample string 7",
"multimedia_url": "sample string 8"
}
application/xml, text/xml
<chat_notify_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models.v5"> <DisplayName>sample string 4</DisplayName> <chatId>sample string 3</chatId> <lead_id>1</lead_id> <message>sample string 5</message> <multimedia_url>sample string 8</multimedia_url> <org_branch_id>1</org_branch_id> <org_id>1</org_id> <org_member_id>2</org_member_id> <sender_unique_id_x0020_>sample string 6</sender_unique_id_x0020_> <type>sample string 7</type> </chat_notify_req>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
On success, returns Lifetrons standard responses codes. On failure, return Lifetrons standard responses codes.
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| resp_code |
Lifetrons response code |
string |
None. |
| resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
{
"resp_code": "sample string 1",
"resp_msg": "sample string 2"
}
application/xml, text/xml
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models"> <resp_code>sample string 1</resp_code> <resp_msg>sample string 2</resp_msg> </Response>