RHP_API

<back to all web services

CreateStory

Requires Authentication
CreateStory Parameters:
NameParameterData TypeRequiredDescription
Keywordsbodystring[]No
StatusbodyStoryStatusNo
StoryPost Parameters:
NameParameterData TypeRequiredDescription
TitleformstringNo
ContentformstringNo
CategoriesformintNo
UserStoryListItem Parameters:
NameParameterData TypeRequiredDescription
ApprovalStatusformApprovalStatusNo
StatusformStoryStatusNo
StoryListItem Parameters:
NameParameterData TypeRequiredDescription
SEOUrlformstringNo
StoryIDformintNo
TitleformstringNo
SummaryformstringNo
CategoriesformintNo
CategoriesValuesformList<LookupItem>No
DateCreatedformDateTimeNo
AuthorformProfileSummaryAuthorNo
CommunityAction Parameters:
NameParameterData TypeRequiredDescription
CommentCountformintNo
CommunityLikeAction Parameters:
NameParameterData TypeRequiredDescription
IsLikedformboolNo
LikeCountformintNo
LookupItem Parameters:
NameParameterData TypeRequiredDescription
ItemIDformintNo
ItemNameformstringNo
ListIDformintNo
ProfileSummaryAuthor Parameters:
NameParameterData TypeRequiredDescription
StoryCountformintNo
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

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

HTTP + SOAP12

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

POST /soap12 HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<CreateStory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <Categories>0</Categories>
  <Content>String</Content>
  <Title>String</Title>
  <Keywords xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Keywords>
  <Status>Draft</Status>
</CreateStory>

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<UserStoryListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
  <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:d2p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
    <d2p1:LookupItem>
      <d2p1:ItemID>0</d2p1:ItemID>
      <d2p1:ItemName>String</d2p1:ItemName>
      <d2p1:ListID>0</d2p1:ListID>
    </d2p1:LookupItem>
  </CategoriesValues>
  <DateCreated>0001-01-01T00:00:00</DateCreated>
  <SEOUrl>String</SEOUrl>
  <StoryID>0</StoryID>
  <Summary>String</Summary>
  <Title>String</Title>
  <ApprovalStatus>Approved</ApprovalStatus>
  <Status>Draft</Status>
</UserStoryListItem>

    </soap12:Body>
</soap12:Envelope>