POST api/User/CheckLogin
This api is used to check the login credentials whether it is correct or not for messaging app
Request Information
URI Parameters
None.
Body Parameters
RegReq| Name | Description | Type | Additional information |
|---|---|---|---|
| NameOfUser |
This is the name of the user that is shown in the app |
string |
None. |
| mobno |
This is the user id (mobile no) of the user |
string |
None. |
| password | string |
None. |
|
| imei | string |
None. |
|
| string |
None. |
||
| otp | string |
None. |
|
| schoolusername |
schoolusername is the user name of the school in online-sms.in portal |
string |
None. |
| usertype | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"NameOfUser": "sample string 1",
"mobno": "sample string 2",
"password": "sample string 3",
"imei": "sample string 4",
"email": "sample string 5",
"otp": "sample string 6",
"schoolusername": "sample string 7",
"usertype": "sample string 8"
}
text/html
Sample:
{"NameOfUser":"sample string 1","mobno":"sample string 2","password":"sample string 3","imei":"sample string 4","email":"sample string 5","otp":"sample string 6","schoolusername":"sample string 7","usertype":"sample string 8"}
application/xml, text/xml
Sample:
<RegReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi.Models"> <NameOfUser>sample string 1</NameOfUser> <email>sample string 5</email> <imei>sample string 4</imei> <mobno>sample string 2</mobno> <otp>sample string 6</otp> <password>sample string 3</password> <schoolusername>sample string 7</schoolusername> <usertype>sample string 8</usertype> </RegReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
0=success, 1=user not found, 2=password not correct, 10=data access error
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| resultcode | integer |
None. |
|
| resultstring | string |
None. |
|
| token | string |
None. |
|
| schoolid | integer |
None. |
|
| sessionid | integer |
None. |
|
| userid | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"resultcode": 1,
"resultstring": "sample string 2",
"token": "sample string 3",
"schoolid": 4,
"sessionid": 5,
"userid": 6
}
text/html
Sample:
{"resultcode":1,"resultstring":"sample string 2","token":"sample string 3","schoolid":4,"sessionid":5,"userid":6}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi.Models"> <resultcode>1</resultcode> <resultstring>sample string 2</resultstring> <schoolid>4</schoolid> <sessionid>5</sessionid> <token>sample string 3</token> <userid>6</userid> </ResultModel>