POST api/Account/GetUserName

دریافت نام کاربرای با استفاده از تلفن و پسورد

Request Information

URI Parameters

None.

Body Parameters

مدل ورود

Login
NameDescriptionTypeAdditional information
Mobile

string

Required

Matching regular expression pattern: ^(\+989|00989|989|09|\+۹۸۹|۰۰۹۸۹|۹۸۹|۰۹)[0,1,2,3,4,5,6,7,8,9,۰,١,۲,۳,۴,۵,۶,۷,۸,۹]{9,9}$

Password

string

Required

String length: inclusive between 4 and 20

Username

string

None.

FirstName

string

None.

LastName

string

None.

NationalCode

string

None.

Gender

integer

None.

TutorMobileNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Mobile": "sample string 1",
  "Password": "sample string 2",
  "Username": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "NationalCode": "sample string 6",
  "Gender": 7,
  "TutorMobileNumber": "sample string 8"
}

application/xml, text/xml

Sample:
<Login xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Arad.Aladiyat.Services.Models.ApiModels">
  <FirstName>sample string 4</FirstName>
  <Gender>7</Gender>
  <LastName>sample string 5</LastName>
  <Mobile>sample string 1</Mobile>
  <NationalCode>sample string 6</NationalCode>
  <Password>sample string 2</Password>
  <TutorMobileNumber>sample string 8</TutorMobileNumber>
  <Username>sample string 3</Username>
</Login>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

نتیجه که به صورت مدل OperationResult می باشد را بر می گرداند و در صورت موفقیت آمیز بودن مقدار یوزرنیم مدل را پر می کند

OperationResultOfLogin
NameDescriptionTypeAdditional information
Code

string

None.

Message

string

None.

Success

boolean

None.

Data

Login

None.

Response Formats

application/json, text/json

Sample:

Sample not available.