POST api/User/Verify

api for validating the otp

Request Information

URI Parameters

None.

Body Parameters

RegReq
NameDescriptionTypeAdditional 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.

email

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

returns 0 for success 1 for error 2 for already present, 3 for invalid otp or timeout

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>