RHP_API

<back to all web services

GetStories

The following routes are available for this service:
GET/Story
GetStories Parameters:
NameParameterData TypeRequiredDescription
CategoryqueryintNo
Pagination Parameters:
NameParameterData TypeRequiredDescription
SizeformintNo
PageformintNo

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 /Story HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfStoryListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <StoryListItem>
    <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>
    <CommentCount xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</CommentCount>
    <Author>
      <Age1 xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</Age1>
      <Age2 xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</Age2>
      <AgeTitle xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</AgeTitle>
      <CountryID xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</CountryID>
      <IsAdmin xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">false</IsAdmin>
      <IsDiamond xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">false</IsDiamond>
      <IsOnline xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">false</IsOnline>
      <IsViewable xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">false</IsViewable>
      <Location xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</Location>
      <MainPhoto xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
        <FullUrl>String</FullUrl>
        <ThumbUrl>String</ThumbUrl>
        <Classification>0</Classification>
        <GalleryID>0</GalleryID>
        <Height>0</Height>
        <ImageActionType>ShowImage</ImageActionType>
        <ImageType>None</ImageType>
        <IsAccepted>false</IsAccepted>
        <IsLiked>false</IsLiked>
        <IsPublic>false</IsPublic>
        <MemberLikeCount>0</MemberLikeCount>
        <PhotoID>0</PhotoID>
        <ShowSafeMode>false</ShowSafeMode>
        <SortNumber>0</SortNumber>
        <UserType>General</UserType>
        <Width>0</Width>
      </MainPhoto>
      <MatchingInterests xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</MatchingInterests>
      <MemberID xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</MemberID>
      <MemberLevel xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</MemberLevel>
      <MemberLevelType xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</MemberLevelType>
      <MemberLevelUserProfile xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">Guest</MemberLevelUserProfile>
      <MemberType xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</MemberType>
      <MemberTypeTitle xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
        <Abbr>String</Abbr>
        <Plural>String</Plural>
        <Singular>String</Singular>
      </MemberTypeTitle>
      <UserName xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</UserName>
      <UserType xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">General</UserType>
      <StoryCount>0</StoryCount>
    </Author>
    <Categories>0</Categories>
    <CategoriesValues xmlns:d3p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
      <d3p1:LookupItem>
        <d3p1:ItemID>0</d3p1:ItemID>
        <d3p1:ItemName>String</d3p1:ItemName>
        <d3p1:ListID>0</d3p1:ListID>
      </d3p1:LookupItem>
    </CategoriesValues>
    <DateCreated>0001-01-01T00:00:00</DateCreated>
    <SEOUrl>String</SEOUrl>
    <StoryID>0</StoryID>
    <Summary>String</Summary>
    <Title>String</Title>
  </StoryListItem>
</ArrayOfStoryListItem>