MyChat Integration API: MCIAPI_CS_GetUINByEmail, get a user UIN by his email address

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;

Email

string

main email address of a user;

Domain

string

user's domain name. This parameter is used when a user uses domain authorization;

AuthType

integer

user authentication type, number.

 

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);

UIN

integer

unique identifier of the found user (UIN).

 

Possible errors

#5, MCIAPI_Error_WrongIntegrationKey

#20, MCIAPI_Error_EmailNotFound

#23: MCIAPI_Error_EmailIsNotDefined

 

See also

MCIAPI_CS_GetUINByNick