RHP_API

<back to all web services

CreateNotificationGroupMessage

Requires Authentication
The following routes are available for this service:
POST/User/Notification/GroupMessage
CreateNotificationGroupMessage Parameters:
NameParameterData TypeRequiredDescription
RoomJIDbodystringNo
MessagebodystringNo
MediaIDbodyintNo
MediaTypebodyMediaTypeNo
MessageDetailbodyDetailNo
Detail Parameters:
NameParameterData TypeRequiredDescription
FromJidformstringNo
ToJidformstringNo
MsgIdformstringNo
MsgTypeformstringNo
DataformMsgBodyNo
TimeformlongNo
ChatTypeformstringNo
ConvIdformintNo
MsgBody Parameters:
NameParameterData TypeRequiredDescription
TextformstringNo
ImageformImageNo
VideoFileformVideoFileNo
GalleryformGalleryNo
GiftformGiftNo
GifformGifNo
VideoformVideoNo
ReactionsformReactionNo
ShareLocationformShareLocationNo
ShareDateformShareDateNo
ShareEventformShareEventNo
ShareEventTicketformShareEventNo
QuotedMessageformQuotedMessageNo
ExptsformlongNo
IsRecvMatchingformboolNo
IsSenderMatchingformboolNo
SenderMemberLevelformintNo
RecvMemberLevelformintNo
InviteGroupChatformInviteGroupChatNo
JoinGroupChatformJoinGroupChatNo
LeaveGroupChatformLeaveGroupChatNo
RemovedFromGroupformRemovedFromGroupNo
ProfilePhotoCommentformProfilePhotoCommentNo
InviteGroupformInviteGroupNo
Image Parameters:
NameParameterData TypeRequiredDescription
PhotoIdformintNo
ThumbUrlformstringNo
FullUrlformstringNo
VideoFile Parameters:
NameParameterData TypeRequiredDescription
VideoIdformintNo
ThumbUrlformstringNo
DurationformintNo
OwnerUserIdformlongNo
Gallery Parameters:
NameParameterData TypeRequiredDescription
GalleryIdformintNo
ImageCountformintNo
NameformstringNo
friendIdformlongNo
hasRestrictedformboolNo
isGrantedformboolNo
isPublicformboolNo
Gift Parameters:
NameParameterData TypeRequiredDescription
GiftIdformintNo
NameformstringNo
DescriptionformstringNo
DiamondsformintNo
LevelformintNo
PriceformintNo
DataformstringNo
ImageUrlformstringNo
Gif Parameters:
NameParameterData TypeRequiredDescription
FixedWidthformstringNo
OriginalformstringNo
Video Parameters:
NameParameterData TypeRequiredDescription
RequestTypeformstringNo
ValueformstringNo
Reaction Parameters:
NameParameterData TypeRequiredDescription
ToMsgIdformstringNo
UnicodeformstringNo
ClearformboolNo
ShareLocation Parameters:
NameParameterData TypeRequiredDescription
LatitudeformdoubleNo
LongitudeformdoubleNo
ShareDate Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ShareEvent Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
QuotedMessage Parameters:
NameParameterData TypeRequiredDescription
RefMsgIdformstringNo
RefUserIdformlongNo
RefMsgTypeformstringNo
RefMsgShortDescformstringNo
RefDisplayNameformstringNo
RefMsgExpTsformlongNo
RefMsgTitleformstringNo
InviteGroupChat Parameters:
NameParameterData TypeRequiredDescription
RoomJIDformstringNo
ValueformstringNo
JoinGroupChat Parameters:
NameParameterData TypeRequiredDescription
UserIdformlongNo
ValueformstringNo
LeaveGroupChat Parameters:
NameParameterData TypeRequiredDescription
UserIdformlongNo
ValueformstringNo
RemovedFromGroup Parameters:
NameParameterData TypeRequiredDescription
UserIdformlongNo
ValueformstringNo
ProfilePhotoComment Parameters:
NameParameterData TypeRequiredDescription
UserIDformlongNo
PhotoIDformstringNo
ThumbURLformstringNo
FullURLformstringNo
InviteGroup Parameters:
NameParameterData TypeRequiredDescription
GroupIDformintNo
ValueformstringNo
CreateGroupMessageResponse Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
ErrorCodeformstringNo
ErrorMsgformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /User/Notification/GroupMessage HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateNotificationGroupMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <MediaID>0</MediaID>
  <MediaType>Undefined</MediaType>
  <Message>String</Message>
  <MessageDetail xmlns:d2p1="http://schemas.datacontract.org/2004/07/RHP.External.Nexle.XMPP.Model.NotificationMessage">
    <d2p1:ChatType>String</d2p1:ChatType>
    <d2p1:ConvId>0</d2p1:ConvId>
    <d2p1:Data>
      <d2p1:Expts>0</d2p1:Expts>
      <d2p1:Gallery>
        <d2p1:GalleryId>0</d2p1:GalleryId>
        <d2p1:ImageCount>0</d2p1:ImageCount>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:friendId>0</d2p1:friendId>
        <d2p1:hasRestricted>false</d2p1:hasRestricted>
        <d2p1:isGranted>false</d2p1:isGranted>
        <d2p1:isPublic>false</d2p1:isPublic>
      </d2p1:Gallery>
      <d2p1:Gif>
        <d2p1:FixedWidth>String</d2p1:FixedWidth>
        <d2p1:Original>String</d2p1:Original>
      </d2p1:Gif>
      <d2p1:Gift>
        <d2p1:Data>String</d2p1:Data>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:Diamonds>0</d2p1:Diamonds>
        <d2p1:GiftId>0</d2p1:GiftId>
        <d2p1:ImageUrl>String</d2p1:ImageUrl>
        <d2p1:Level>0</d2p1:Level>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Price>0</d2p1:Price>
      </d2p1:Gift>
      <d2p1:Image>
        <d2p1:FullUrl>String</d2p1:FullUrl>
        <d2p1:PhotoId>0</d2p1:PhotoId>
        <d2p1:ThumbUrl>String</d2p1:ThumbUrl>
      </d2p1:Image>
      <d2p1:InviteGroup>
        <d2p1:GroupID>0</d2p1:GroupID>
        <d2p1:Value>String</d2p1:Value>
      </d2p1:InviteGroup>
      <d2p1:InviteGroupChat>
        <d2p1:RoomJID>String</d2p1:RoomJID>
        <d2p1:Value>String</d2p1:Value>
      </d2p1:InviteGroupChat>
      <d2p1:IsRecvMatching>false</d2p1:IsRecvMatching>
      <d2p1:IsSenderMatching>false</d2p1:IsSenderMatching>
      <d2p1:JoinGroupChat>
        <d2p1:UserId>0</d2p1:UserId>
        <d2p1:Value>String</d2p1:Value>
      </d2p1:JoinGroupChat>
      <d2p1:LeaveGroupChat>
        <d2p1:UserId>0</d2p1:UserId>
        <d2p1:Value>String</d2p1:Value>
      </d2p1:LeaveGroupChat>
      <d2p1:ProfilePhotoComment>
        <d2p1:FullURL>String</d2p1:FullURL>
        <d2p1:PhotoID>String</d2p1:PhotoID>
        <d2p1:ThumbURL>String</d2p1:ThumbURL>
        <d2p1:UserID>0</d2p1:UserID>
      </d2p1:ProfilePhotoComment>
      <d2p1:QuotedMessage>
        <d2p1:RefDisplayName>String</d2p1:RefDisplayName>
        <d2p1:RefMsgExpTs>0</d2p1:RefMsgExpTs>
        <d2p1:RefMsgId>String</d2p1:RefMsgId>
        <d2p1:RefMsgShortDesc>String</d2p1:RefMsgShortDesc>
        <d2p1:RefMsgTitle>String</d2p1:RefMsgTitle>
        <d2p1:RefMsgType>String</d2p1:RefMsgType>
        <d2p1:RefUserId>0</d2p1:RefUserId>
      </d2p1:QuotedMessage>
      <d2p1:Reactions>
        <d2p1:Clear>false</d2p1:Clear>
        <d2p1:ToMsgId>String</d2p1:ToMsgId>
        <d2p1:Unicode>String</d2p1:Unicode>
      </d2p1:Reactions>
      <d2p1:RecvMemberLevel>0</d2p1:RecvMemberLevel>
      <d2p1:RemovedFromGroup>
        <d2p1:UserId>0</d2p1:UserId>
        <d2p1:Value>String</d2p1:Value>
      </d2p1:RemovedFromGroup>
      <d2p1:SenderMemberLevel>0</d2p1:SenderMemberLevel>
      <d2p1:ShareDate>
        <d2p1:Id>0</d2p1:Id>
      </d2p1:ShareDate>
      <d2p1:ShareEvent>
        <d2p1:Id>0</d2p1:Id>
      </d2p1:ShareEvent>
      <d2p1:ShareEventTicket>
        <d2p1:Id>0</d2p1:Id>
      </d2p1:ShareEventTicket>
      <d2p1:ShareLocation>
        <d2p1:Latitude>0</d2p1:Latitude>
        <d2p1:Longitude>0</d2p1:Longitude>
      </d2p1:ShareLocation>
      <d2p1:Text>String</d2p1:Text>
      <d2p1:Video>
        <d2p1:RequestType>String</d2p1:RequestType>
        <d2p1:Value>String</d2p1:Value>
      </d2p1:Video>
      <d2p1:VideoFile>
        <d2p1:Duration>0</d2p1:Duration>
        <d2p1:OwnerUserId>0</d2p1:OwnerUserId>
        <d2p1:ThumbUrl>String</d2p1:ThumbUrl>
        <d2p1:VideoId>0</d2p1:VideoId>
      </d2p1:VideoFile>
    </d2p1:Data>
    <d2p1:FromJid>String</d2p1:FromJid>
    <d2p1:MsgId>String</d2p1:MsgId>
    <d2p1:MsgType>String</d2p1:MsgType>
    <d2p1:Time>0</d2p1:Time>
    <d2p1:ToJid>String</d2p1:ToJid>
  </MessageDetail>
  <RoomJID>String</RoomJID>
</CreateNotificationGroupMessage>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreateGroupMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <ErrorCode>String</ErrorCode>
  <ErrorMsg>String</ErrorMsg>
  <Success>false</Success>
</CreateGroupMessageResponse>