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;

Email

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

#9, MCIAPI_Error_API_Disabled

#10, MCIAPI_Error_ParameterAbsent

#21, MCIAPI_Error_WrongData

#23, MCIAPI_Error_EmailIsNotDefined

#42, MCIAPI_Error_UnknownUser

#43, MCIAPI_Error_UnknownDomainUser

 

See also

MCIAPI_CS_GetUINByNick