RHP_API

<back to all web services

GetForumThread

Get forum thread, will return a thread consist of forum topic and its messages

Requires Authentication
The following routes are available for this service:
GET/Forum/Topic/{Id}/Thread
GetForumThread Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
Pagination Parameters:
NameParameterData TypeRequiredDescription
SizeformintNo
PageformintNo
ForumThread Parameters:
NameParameterData TypeRequiredDescription
TopicformForumTopicNo
MessagesformList<ForumMessage>No
PaginationInfoformPaginationInfoNo
PermissionformForumPermissionNo
IsOwnerformboolNo
ForumTopic Parameters:
NameParameterData TypeRequiredDescription
PosterformProfileSummaryNo
IDformintNo
TitleformstringNo
MessageformstringNo
DatePostedformDateTimeNo
ReplyCountformintNo
IsFollowingformboolNo
IsGlobalformboolNo
Keywordsformstring[]No
IsStickyformboolNo
IsClosedformboolNo
SEOUrlformstringNo
CommunityLikeAction Parameters:
NameParameterData TypeRequiredDescription
IsLikedformboolNo
LikeCountformintNo
ProfileSummary Parameters:
NameParameterData TypeRequiredDescription
MemberIDformlongNo
UserNameformstringNo
MemberTypeformshortNo
MemberTypeTitleformProfileMemberTypeNo
Age1formintNo
Age2formintNo
AgeTitleformstringNo
LocationformstringNo
MatchingInterestsformintNo
MainPhotoformProfilePhotoNo
IsOnlineformboolNo
MemberLevelformintNo
IsDiamondformboolNo
CountryIDformintNo
UserTypeformLoginUserTypeNo
MemberLevelTypeformstringNo
IsAdminformboolNo
MemberLevelUserProfileformMemberLevelUserProfileNo
IsViewableformboolNo
ProfileMemberType Parameters:
NameParameterData TypeRequiredDescription
AbbrformstringNo
SingularformstringNo
PluralformstringNo
ProfilePhoto Parameters:
NameParameterData TypeRequiredDescription
PhotoIDformintNo
HeightformintNo
WidthformintNo
ImageTypeformProfileImageTypeNo
IsPublicformboolNo
ClassificationformintNo
UserTypeformLoginUserType?No
ShowSafeModeformboolNo
ImageActionTypeformImageActionTypeNo
GalleryIDformintNo
IsAcceptedformbool?No
MemberLikeCountformintNo
IsLikedformboolNo
SortNumberformintNo
ProfilePhotoUrl Parameters:
NameParameterData TypeRequiredDescription
ThumbUrlformstringNo
FullUrlformstringNo
ForumMessage Parameters:
NameParameterData TypeRequiredDescription
ReplyCountformintNo
ForumMessageBase Parameters:
NameParameterData TypeRequiredDescription
PosterformProfileSummaryNo
IDformintNo
TitleformstringNo
MessageformstringNo
DatePostedformDateTimeNo
QuoteTitleformstringNo
QuoteMsgformstringNo
MessageContentTypeformMessageContentTypeNo
ImageContentformGenericPhotoNo
GiphyImageformGiphyImageNo
GenericPhoto Parameters:
NameParameterData TypeRequiredDescription
ThumbUrlformstringNo
FullUrlformstringNo
HeightformintNo
WidthformintNo
ClassificationformintNo
IsRestrictedformboolNo
ImageActionformImageActionTypeNo
GiphyImage Parameters:
NameParameterData TypeRequiredDescription
GiphyImageIDformstringNo
WidthformintNo
HeightformintNo
PaginationInfo Parameters:
NameParameterData TypeRequiredDescription
TotalItemsformintNo
TotalPagesformintNo
ForumPermission Parameters:
NameParameterData TypeRequiredDescription
CanPostTopicformboolNoDetermines if a user can create a topic on a forum
CanReplyToTopicformboolNoDetermines if a user can reply to topics (either message or comment) on a forum

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 /Forum/Topic/{Id}/Thread HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ForumThread xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <IsOwner>false</IsOwner>
  <Messages>
    <ForumMessage>
      <IsLiked xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">false</IsLiked>
      <LikeCount xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</LikeCount>
      <DatePosted>0001-01-01T00:00:00</DatePosted>
      <GiphyImage xmlns:d4p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
        <d4p1:GiphyImageID>String</d4p1:GiphyImageID>
        <d4p1:Height>0</d4p1:Height>
        <d4p1:Width>0</d4p1:Width>
      </GiphyImage>
      <ID>0</ID>
      <ImageContent xmlns:d4p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
        <d4p1:Classification>0</d4p1:Classification>
        <d4p1:FullUrl>String</d4p1:FullUrl>
        <d4p1:Height>0</d4p1:Height>
        <d4p1:ImageAction>ShowImage</d4p1:ImageAction>
        <d4p1:IsRestricted>false</d4p1:IsRestricted>
        <d4p1:ThumbUrl>String</d4p1:ThumbUrl>
        <d4p1:Width>0</d4p1:Width>
      </ImageContent>
      <Message>String</Message>
      <MessageContentType>Text</MessageContentType>
      <Poster xmlns:d4p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
        <d4p1:Age1>0</d4p1:Age1>
        <d4p1:Age2>0</d4p1:Age2>
        <d4p1:AgeTitle>String</d4p1:AgeTitle>
        <d4p1:CountryID>0</d4p1:CountryID>
        <d4p1:IsAdmin>false</d4p1:IsAdmin>
        <d4p1:IsDiamond>false</d4p1:IsDiamond>
        <d4p1:IsOnline>false</d4p1:IsOnline>
        <d4p1:IsViewable>false</d4p1:IsViewable>
        <d4p1:Location>String</d4p1:Location>
        <d4p1:MainPhoto>
          <d4p1:FullUrl>String</d4p1:FullUrl>
          <d4p1:ThumbUrl>String</d4p1:ThumbUrl>
          <d4p1:Classification>0</d4p1:Classification>
          <d4p1:GalleryID>0</d4p1:GalleryID>
          <d4p1:Height>0</d4p1:Height>
          <d4p1:ImageActionType>ShowImage</d4p1:ImageActionType>
          <d4p1:ImageType>None</d4p1:ImageType>
          <d4p1:IsAccepted>false</d4p1:IsAccepted>
          <d4p1:IsLiked>false</d4p1:IsLiked>
          <d4p1:IsPublic>false</d4p1:IsPublic>
          <d4p1:MemberLikeCount>0</d4p1:MemberLikeCount>
          <d4p1:PhotoID>0</d4p1:PhotoID>
          <d4p1:ShowSafeMode>false</d4p1:ShowSafeMode>
          <d4p1:SortNumber>0</d4p1:SortNumber>
          <d4p1:UserType>General</d4p1:UserType>
          <d4p1:Width>0</d4p1:Width>
        </d4p1:MainPhoto>
        <d4p1:MatchingInterests>0</d4p1:MatchingInterests>
        <d4p1:MemberID>0</d4p1:MemberID>
        <d4p1:MemberLevel>0</d4p1:MemberLevel>
        <d4p1:MemberLevelType>String</d4p1:MemberLevelType>
        <d4p1:MemberLevelUserProfile>Guest</d4p1:MemberLevelUserProfile>
        <d4p1:MemberType>0</d4p1:MemberType>
        <d4p1:MemberTypeTitle>
          <d4p1:Abbr>String</d4p1:Abbr>
          <d4p1:Plural>String</d4p1:Plural>
          <d4p1:Singular>String</d4p1:Singular>
        </d4p1:MemberTypeTitle>
        <d4p1:UserName>String</d4p1:UserName>
        <d4p1:UserType>General</d4p1:UserType>
      </Poster>
      <QuoteMsg>String</QuoteMsg>
      <QuoteTitle>String</QuoteTitle>
      <Title>String</Title>
      <ReplyCount>0</ReplyCount>
    </ForumMessage>
  </Messages>
  <PaginationInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
    <d2p1:Page>0</d2p1:Page>
    <d2p1:Size>0</d2p1:Size>
    <d2p1:TotalItems>0</d2p1:TotalItems>
  </PaginationInfo>
  <Permission>
    <CanPostTopic>false</CanPostTopic>
    <CanReplyToTopic>false</CanReplyToTopic>
  </Permission>
  <Topic>
    <IsLiked xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">false</IsLiked>
    <LikeCount xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</LikeCount>
    <DatePosted>0001-01-01T00:00:00</DatePosted>
    <ID>0</ID>
    <IsClosed>false</IsClosed>
    <IsFollowing>false</IsFollowing>
    <IsGlobal>false</IsGlobal>
    <IsSticky>false</IsSticky>
    <Keywords xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Keywords>
    <Message>String</Message>
    <Poster xmlns:d3p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
      <d3p1:Age1>0</d3p1:Age1>
      <d3p1:Age2>0</d3p1:Age2>
      <d3p1:AgeTitle>String</d3p1:AgeTitle>
      <d3p1:CountryID>0</d3p1:CountryID>
      <d3p1:IsAdmin>false</d3p1:IsAdmin>
      <d3p1:IsDiamond>false</d3p1:IsDiamond>
      <d3p1:IsOnline>false</d3p1:IsOnline>
      <d3p1:IsViewable>false</d3p1:IsViewable>
      <d3p1:Location>String</d3p1:Location>
      <d3p1:MainPhoto>
        <d3p1:FullUrl>String</d3p1:FullUrl>
        <d3p1:ThumbUrl>String</d3p1:ThumbUrl>
        <d3p1:Classification>0</d3p1:Classification>
        <d3p1:GalleryID>0</d3p1:GalleryID>
        <d3p1:Height>0</d3p1:Height>
        <d3p1:ImageActionType>ShowImage</d3p1:ImageActionType>
        <d3p1:ImageType>None</d3p1:ImageType>
        <d3p1:IsAccepted>false</d3p1:IsAccepted>
        <d3p1:IsLiked>false</d3p1:IsLiked>
        <d3p1:IsPublic>false</d3p1:IsPublic>
        <d3p1:MemberLikeCount>0</d3p1:MemberLikeCount>
        <d3p1:PhotoID>0</d3p1:PhotoID>
        <d3p1:ShowSafeMode>false</d3p1:ShowSafeMode>
        <d3p1:SortNumber>0</d3p1:SortNumber>
        <d3p1:UserType>General</d3p1:UserType>
        <d3p1:Width>0</d3p1:Width>
      </d3p1:MainPhoto>
      <d3p1:MatchingInterests>0</d3p1:MatchingInterests>
      <d3p1:MemberID>0</d3p1:MemberID>
      <d3p1:MemberLevel>0</d3p1:MemberLevel>
      <d3p1:MemberLevelType>String</d3p1:MemberLevelType>
      <d3p1:MemberLevelUserProfile>Guest</d3p1:MemberLevelUserProfile>
      <d3p1:MemberType>0</d3p1:MemberType>
      <d3p1:MemberTypeTitle>
        <d3p1:Abbr>String</d3p1:Abbr>
        <d3p1:Plural>String</d3p1:Plural>
        <d3p1:Singular>String</d3p1:Singular>
      </d3p1:MemberTypeTitle>
      <d3p1:UserName>String</d3p1:UserName>
      <d3p1:UserType>General</d3p1:UserType>
    </Poster>
    <ReplyCount>0</ReplyCount>
    <SEOUrl>String</SEOUrl>
    <Title>String</Title>
  </Topic>
</ForumThread>