RHP_API

<back to all web services

GetProfileMessageAuthorisation

Requires Authentication
The following routes are available for this service:
GET/Profile/{ID}/MessageAuthorised
GetProfileMessageAuthorisation Parameters:
NameParameterData TypeRequiredDescription
IDpathlongNo
UserNotificationMessageAuthorisation Parameters:
NameParameterData TypeRequiredDescription
ReasonformUserNotificationReasonNoThe descriptor for CanSend, used to provide additional information to the client.
CanSendformboolNoIf true the current user can send.
RemainingformintNoNumber of conversations remaining for the Sender.
RemainingCreditsformintNoNumber of conversations credit remaining for the Sender.
DetailformstringNoDetail of permissions. DEBUG ONLY
CanVideoCallformboolNoIf true the Sender can use Video with the Receiver
CanSendPhotosformboolNoIf true the Sender can send Photos to the Receiver
CanSendGiftsformboolNoIf true the Sender can send Gifts to the Receiver
SenderIsDiamondformboolNoIf true the Sender is a Diamond Club member
ReceiverIsDiamondformboolNoIf true the Sender is a Diamond Club member
SenderProfileMatchingformboolNoIs the Sender a profile match with the Receiver. If true, the message should display in the Sender's Matching filter.
ReceiverProfileMatchingformboolNoIs the Receiver a profile match with the Sender. If true, the message should display in the Receiver's Matching filter.
ReceiverMemberLevelformLookupValueBaseNoThe Memberlevel of the Receiver
SenderMemberLevelformLookupValueBaseNoThe Memberlevel of the Sender
TimeToResetformdoubleNoTime remaining until reset.
ConversationKeyformstringNoUnique key for a user's conversation.
DefEnformstringNoFor Debug purpose only.
UpgradeActionformMessageUpgradeTypeNoIf a user can not send a message, this is the upgrade path.
IsCreditSendformboolNoIf true the user will be charged a credit.
MessageBanExpiryformDateTime?No
SendPhotosBanExpiryformDateTime?No
TimeStampformDateTimeNo
LookupValueBase Parameters:
NameParameterData TypeRequiredDescription
ValueformintNo
TextformstringNo
TextAbbrformstringNo
ListIDformint?No

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.

GET /Profile/{ID}/MessageAuthorised HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UserNotificationMessageAuthorisation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <CanSend>false</CanSend>
  <CanSendGifts>false</CanSendGifts>
  <CanSendPhotos>false</CanSendPhotos>
  <CanVideoCall>false</CanVideoCall>
  <ConversationKey>String</ConversationKey>
  <DefEn>String</DefEn>
  <Detail>String</Detail>
  <IsCreditSend>false</IsCreditSend>
  <MessageBanExpiry>0001-01-01T00:00:00</MessageBanExpiry>
  <Reason>Authorised</Reason>
  <ReceiverIsDiamond>false</ReceiverIsDiamond>
  <ReceiverMemberLevel xmlns:d2p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
    <d2p1:ListID>0</d2p1:ListID>
    <d2p1:Text>String</d2p1:Text>
    <d2p1:TextAbbr>String</d2p1:TextAbbr>
    <d2p1:Value>0</d2p1:Value>
  </ReceiverMemberLevel>
  <ReceiverProfileMatching>false</ReceiverProfileMatching>
  <Remaining>0</Remaining>
  <RemainingCredits>0</RemainingCredits>
  <SendPhotosBanExpiry>0001-01-01T00:00:00</SendPhotosBanExpiry>
  <SenderIsDiamond>false</SenderIsDiamond>
  <SenderMemberLevel xmlns:d2p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
    <d2p1:ListID>0</d2p1:ListID>
    <d2p1:Text>String</d2p1:Text>
    <d2p1:TextAbbr>String</d2p1:TextAbbr>
    <d2p1:Value>0</d2p1:Value>
  </SenderMemberLevel>
  <SenderProfileMatching>false</SenderProfileMatching>
  <TimeStamp>0001-01-01T00:00:00</TimeStamp>
  <TimeToReset>0</TimeToReset>
  <UpgradeAction>None</UpgradeAction>
</UserNotificationMessageAuthorisation>