POST | /User/Notification/Message |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Receiver | body | long | No | |
Message | body | string | No | |
NotificationType | body | NotificationMessageType | No | |
ConversationKey | body | string | No | |
OriginalMessageID | body | int | No | |
MediaID | body | int | No | |
MediaType | body | MediaType | No | |
MessageDetail | body | Detail | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
FromJid | form | string | No | |
ToJid | form | string | No | |
MsgId | form | string | No | |
MsgType | form | string | No | |
Data | form | MsgBody | No | |
Time | form | long | No | |
ChatType | form | string | No | |
ConvId | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Text | form | string | No | |
Image | form | Image | No | |
VideoFile | form | VideoFile | No | |
Gallery | form | Gallery | No | |
Gift | form | Gift | No | |
Gif | form | Gif | No | |
Video | form | Video | No | |
Reactions | form | Reaction | No | |
ShareLocation | form | ShareLocation | No | |
ShareDate | form | ShareDate | No | |
ShareEvent | form | ShareEvent | No | |
ShareEventTicket | form | ShareEvent | No | |
QuotedMessage | form | QuotedMessage | No | |
Expts | form | long | No | |
IsRecvMatching | form | bool | No | |
IsSenderMatching | form | bool | No | |
SenderMemberLevel | form | int | No | |
RecvMemberLevel | form | int | No | |
InviteGroupChat | form | InviteGroupChat | No | |
JoinGroupChat | form | JoinGroupChat | No | |
LeaveGroupChat | form | LeaveGroupChat | No | |
RemovedFromGroup | form | RemovedFromGroup | No | |
ProfilePhotoComment | form | ProfilePhotoComment | No | |
InviteGroup | form | InviteGroup | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
PhotoId | form | int | No | |
ThumbUrl | form | string | No | |
FullUrl | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
VideoId | form | int | No | |
ThumbUrl | form | string | No | |
Duration | form | int | No | |
OwnerUserId | form | long | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
GalleryId | form | int | No | |
ImageCount | form | int | No | |
Name | form | string | No | |
friendId | form | long | No | |
hasRestricted | form | bool | No | |
isGranted | form | bool | No | |
isPublic | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
GiftId | form | int | No | |
Name | form | string | No | |
Description | form | string | No | |
Diamonds | form | int | No | |
Level | form | int | No | |
Price | form | int | No | |
Data | form | string | No | |
ImageUrl | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
FixedWidth | form | string | No | |
Original | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RequestType | form | string | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ToMsgId | form | string | No | |
Unicode | form | string | No | |
Clear | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Latitude | form | double | No | |
Longitude | form | double | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RefMsgId | form | string | No | |
RefUserId | form | long | No | |
RefMsgType | form | string | No | |
RefMsgShortDesc | form | string | No | |
RefDisplayName | form | string | No | |
RefMsgExpTs | form | long | No | |
RefMsgTitle | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RoomJID | form | string | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserId | form | long | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserId | form | long | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserId | form | long | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserID | form | long | No | |
PhotoID | form | string | No | |
ThumbURL | form | string | No | |
FullURL | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
GroupID | form | int | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Success | form | bool | No | |
ErrorCode | form | string | No | |
ErrorMsg | form | string | No | |
Authorisation | form | UserNotificationMessageAuthorisation | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Reason | form | UserNotificationReason | No | The descriptor for CanSend, used to provide additional information to the client. |
CanSend | form | bool | No | If true the current user can send. |
Remaining | form | int | No | Number of conversations remaining for the Sender. |
RemainingCredits | form | int | No | Number of conversations credit remaining for the Sender. |
Detail | form | string | No | Detail of permissions. DEBUG ONLY |
CanVideoCall | form | bool | No | If true the Sender can use Video with the Receiver |
CanSendPhotos | form | bool | No | If true the Sender can send Photos to the Receiver |
CanSendGifts | form | bool | No | If true the Sender can send Gifts to the Receiver |
SenderIsDiamond | form | bool | No | If true the Sender is a Diamond Club member |
ReceiverIsDiamond | form | bool | No | If true the Sender is a Diamond Club member |
SenderProfileMatching | form | bool | No | Is the Sender a profile match with the Receiver. If true, the message should display in the Sender's Matching filter. |
ReceiverProfileMatching | form | bool | No | Is the Receiver a profile match with the Sender. If true, the message should display in the Receiver's Matching filter. |
ReceiverMemberLevel | form | LookupValueBase | No | The Memberlevel of the Receiver |
SenderMemberLevel | form | LookupValueBase | No | The Memberlevel of the Sender |
TimeToReset | form | double | No | Time remaining until reset. |
ConversationKey | form | string | No | Unique key for a user's conversation. |
DefEn | form | string | No | For Debug purpose only. |
UpgradeAction | form | MessageUpgradeType | No | If a user can not send a message, this is the upgrade path. |
IsCreditSend | form | bool | No | If true the user will be charged a credit. |
MessageBanExpiry | form | DateTime? | No | |
SendPhotosBanExpiry | form | DateTime? | No | |
TimeStamp | form | DateTime | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Value | form | int | No | |
Text | form | string | No | |
TextAbbr | form | string | No | |
ListID | form | int? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /User/Notification/Message HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Receiver":0,"Message":"String","NotificationType":"Message","ConversationKey":"String","OriginalMessageID":0,"MediaID":0,"MediaType":"Undefined","MessageDetail":{"fromJid":"String","toJid":"String","msgId":"String","msgType":"String","data":{"text":"String","image":{"photoId":0,"thumbUrl":"String","fullUrl":"String"},"videoFile":{"videoId":0,"thumbUrl":"String","duration":0,"ownerUserId":0},"gallery":{"galleryId":0,"imageCount":0,"name":"String","friendId":0,"hasRestricted":false,"isGranted":false,"isPublic":false},"gift":{"giftId":0,"name":"String","description":"String","diamonds":0,"level":0,"price":0,"data":"String","imageUrl":"String"},"gif":{"fixedWidth":"String","original":"String"},"video":{"requestType":"String","value":"String"},"reactions":{"toMsgId":"String","unicode":"String","clear":false},"shareLocation":{"latitude":0,"longitude":0},"shareDate":{"id":0},"shareEvent":{"id":0},"shareEventTicket":{"id":0},"quotedMessage":{"refMsgId":"String","refUserId":0,"refMsgType":"String","refMsgShortDesc":"String","refDisplayName":"String","refMsgExpTs":0,"refMsgTitle":"String"},"expts":0,"isRecvMatching":false,"isSenderMatching":false,"senderMemberLevel":0,"recvMemberLevel":0,"inviteGroupChat":{"roomJid":"String","value":"String"},"joinGroupChat":{"userId":0,"value":"String"},"leaveGroupChat":{"userId":0,"value":"String"},"removedFromGroup":{"userId":0,"value":"String"},"profilePhotoComment":{"userId":0,"photoId":"String","thumbUrl":"String","fullUrl":"String"},"inviteGroup":{"groupId":0,"value":"String"}},"time":0,"chatType":"String","convId":0}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Success":false,"ErrorCode":"String","ErrorMsg":"String","Authorisation":{"Reason":"Authorised","CanSend":false,"Remaining":0,"RemainingCredits":0,"Detail":"String","CanVideoCall":false,"CanSendPhotos":false,"CanSendGifts":false,"SenderIsDiamond":false,"ReceiverIsDiamond":false,"SenderProfileMatching":false,"ReceiverProfileMatching":false,"ReceiverMemberLevel":{"Value":0,"Text":"String","TextAbbr":"String","ListID":0},"SenderMemberLevel":{"Value":0,"Text":"String","TextAbbr":"String","ListID":0},"TimeToReset":0,"ConversationKey":"String","DefEn":"String","UpgradeAction":"None","IsCreditSend":false,"MessageBanExpiry":"\/Date(-62135596800000-0000)\/","SendPhotosBanExpiry":"\/Date(-62135596800000-0000)\/","TimeStamp":"\/Date(-62135596800000-0000)\/"}}