EMUN1 ASP.NET

<back to all web services

GetToken

The following routes are available for this service:
All Verbs/service/GetToken
GetToken Parameters:
NameParameterData TypeRequiredDescription
codequerystringNo
usernamequerystringNo
EmunUserAuth Parameters:
NameParameterData TypeRequiredDescription
ContactIdformstringNo
RetailerIdformstringNo
SalesRepIdformstringNo
AspMembershipIdformGuidNo
MetaformDictionary<string, string>No
TagsformDictionary<string, HashSet<String>>No
ShardedUserAuth Parameters:
NameParameterData TypeRequiredDescription
ShardformstringNo
EmailformstringNo
UserNameformstringNo
MetaformDictionary<string, string>No
UserAuth Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserNameformstringNo
EmailformstringNo
PrimaryEmailformstringNo
PhoneNumberformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
CompanyformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
FullNameformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
SaltformstringNo
PasswordHashformstringNo
DigestHa1HashformstringNo
RolesformList<string>No
PermissionsformList<string>No
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
InvalidLoginAttemptsformintNo
LastLoginAttemptformDateTime?No
LockedDateformDateTime?No
RecoveryTokenformstringNo
RefIdformint?No
RefIdStrformstringNo
MetaformDictionary<string, string>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.

POST /service/GetToken HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cronofy">
  <code>String</code>
  <username>String</username>
</GetToken>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EmunUserAuth xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun">
  <Address xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Address>
  <Address2 xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Address2>
  <BirthDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</BirthDate>
  <BirthDateRaw xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</BirthDateRaw>
  <City xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</City>
  <Company xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Company>
  <Country xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Country>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</CreatedDate>
  <Culture xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Culture>
  <DigestHa1Hash xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</DigestHa1Hash>
  <DisplayName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</DisplayName>
  <Email xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Email>
  <FirstName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</FirstName>
  <FullName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</FullName>
  <Gender xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Gender>
  <Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</Id>
  <InvalidLoginAttempts xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</InvalidLoginAttempts>
  <Language xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Language>
  <LastLoginAttempt xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</LastLoginAttempt>
  <LastName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</LastName>
  <LockedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</LockedDate>
  <MailAddress xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</MailAddress>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>Tags</d2p1:Key>
      <d2p1:Value>{String:[String]}</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0001-01-01T00:00:00</ModifiedDate>
  <Nickname xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Nickname>
  <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PasswordHash>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:string>String</d2p1:string>
  </Permissions>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PhoneNumber>
  <PostalCode xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PostalCode>
  <PrimaryEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</PrimaryEmail>
  <RecoveryToken xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</RecoveryToken>
  <RefId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">0</RefId>
  <RefIdStr xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</RefIdStr>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:string>String</d2p1:string>
  </Roles>
  <Salt xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Salt>
  <State xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</State>
  <TimeZone xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</TimeZone>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</UserName>
  <Shard xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">String</Shard>
  <AspMembershipId>00000000-0000-0000-0000-000000000000</AspMembershipId>
  <ContactId>String</ContactId>
  <RetailerId>String</RetailerId>
  <SalesRepId>String</SalesRepId>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>String</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
  </Tags>
</EmunUserAuth>