POST api/account/login
This method will allow site user to login into the site using provided user name (email) and password. ClientId header is required for this request
Request Information
URI Parameters
None.
Body Parameters
Instance of LoginBindingModel
LoginBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserName | string |
Required |
|
| Password | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"userName": "sample string 1",
"password": "sample string 2"
}
text/html
Sample:
{"userName":"sample string 1","password":"sample string 2"}
application/xml, text/xml
Sample:
<LoginBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.AccountBinding"> <Password>sample string 2</Password> <UserName>sample string 1</UserName> </LoginBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Instance of JObject(authentication token)
Collection of ObjectNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.