MyChat Integration API: MCIAPI_CS_GetUINByEmail, get a user UIN by his email address
Get a user UIN by his main email address.
Syntax
{
"cmd" : "0006",
"ServerKey" : "iddqd",
"APIStype" : "mydata",
"Email" : "John@mail.com",
"Domain" : "",
"AuthType" : 0
}
Parameters
Parameter |
Type |
Value |
cmd |
string |
"0006", the number of the command MCIAPI_CS_GetUINByEmail; |
ServerKey |
string |
IntegrationAPI key, can be set in the server settings; |
APIStype |
string |
integration type. You can set any string; |
context |
string |
optional parameter, any text that returns in a response command; |
|
string |
main email address of a user; |
Work result
{
"cmd" : "0006",
"UIN" : 17
}
Field |
Type |
Value |
cmd |
integer |
HEX number of a command that was successfully executed, equal to 6 (HEX 0006); |
context |
integer |
any text sent to the server in a query command; |
UIN |
integer |
unique identifier of the found user (UIN). |
Possible errors
#5: MCIAPI_Error_WrongIntegrationKey
#10, MCIAPI_Error_ParameterAbsent
#23, MCIAPI_Error_EmailIsNotDefined
#43, MCIAPI_Error_UnknownDomainUser