RHPAuth

<back to all web services

AccountLookupRequest

The following routes are available for this service:
All Verbs/User/AccountLookup
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class AccountLookupRequest implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Username=null,
        /** @var string|null */
        public ?string $Password=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Username'])) $this->Username = $o['Username'];
        if (isset($o['Password'])) $this->Password = $o['Password'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Username)) $o['Username'] = $this->Username;
        if (isset($this->Password)) $o['Password'] = $this->Password;
        return empty($o) ? new class(){} : $o;
    }
}

PHP AccountLookupRequest DTOs

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

<AccountLookupRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHPAuth.ServiceModel">
  <Password>String</Password>
  <Username>String</Username>
</AccountLookupRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfUserSummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHPAuth.ServiceModel">
  <UserSummary>
    <Details 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:IsRestricted>false</d3p1:IsRestricted>
        <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>
    </Details>
    <LoginToken>String</LoginToken>
    <MainPhoto xmlns:d3p1="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
      <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:IsRestricted>false</d3p1:IsRestricted>
      <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>
    </MainPhoto>
  </UserSummary>
</ArrayOfUserSummary>