Request for information by phone number
Request for information by phone number
POST
http://lk.mysmpp.ru/xml/def.php
Headers
Name
Type
Description
Content-type*
String
text/xml; charset=utf-8;
Request Body
Name
Type
Description
login.value*
String
Your login in the system
phones.phone*
Int
Phone number
token.value*
String
You can use a secret key instead of login and password. To obtain it, please contact your manager
password.value*
String
Your password in the system
<?xml version="1.0" encoding="utf-8" ?>
<response>
<phone operator="Vimpeltelecom" region="Novosibirsk region" time_zone="3">79612242243</phone>
<phone operator="Vimpeltelecom" region="Kaliningrad" time_zone="-1">7961224222244</phone>
...
</response>
Deciphering parameters in query responses
Parameter
Data type
Description
phone
Int
Phone number
phone.operator
String
Operator
phone.region
String
Region
phone.time_zone
Int
Time offset in hours relative to the time in Moscow
error
String
The error text can take the following values:
Incorrect XML document format
Incorrect login or password
POST data is missing
Example XML request
<?xml version="1.0" encoding="utf-8" ?>
<request>
<security>
<login value="login" />
<password value="password" />
</security>
<phones>
<phone>79612242243</phone>
<phone>79612242244</phone>
</phones>
</request>
Last updated