Cemberle

<back to all web services

UserLoginRequest

The following routes are available for this service:
All Verbs/users
UserLoginRequest Parameters:
NameParameterData TypeRequiredDescription
UsernamequerystringNo
PasswordquerystringNo
UserLoginResponse Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
UserformUserModelNo
UserModel Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UsernameformstringNo
PasswordformstringNo
EmailformstringNo
NameformstringNo
SurnameformstringNo
PhotoformstringNo
ImageidformintNo

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 /users HTTP/1.1 
Host: service.cemberle.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<UserLoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WSCemberle.ServiceModel">
  <Success>false</Success>
  <User>
    <Email>String</Email>
    <Id>0</Id>
    <Imageid>0</Imageid>
    <Name>String</Name>
    <Password>String</Password>
    <Photo>String</Photo>
    <Surname>String</Surname>
    <Username>String</Username>
  </User>
</UserLoginResponse>