MyChat Integration API: MCIAPI_CS_IsUINExists, check if a specified user exists

MyChat Integration API: MCIAPI_CS_IsUINExists, check if a specified user exists

Check if a user with a specified UIN exists on the server.

 

Syntax

{

 "cmd"        : "0007",

 "ServerKey"  : "iddqd",

 "APIStype"   : "mydata",

 

 "UIN"        : 157

}

 

Parameters

Parameter

Type

Value

cmd

string

"0007", the number of the command MCIAPI_CS_IsUINExists;

ServerKey

string

IntegrationAPI key, configured in the server's settings;

APIStype

string

integration type. You can set any string;

UIN

integer

a user unique numeric identifier of a user.

 

Work result

{

 "cmd"     : "0007",

 "UIN"     : 157,

 "Present" : true

}

 

Field

Type

Value

cmd

string

HEX number of the command that run successfully;

UIN

integer

user's unique identifier (UIN);

Present

boolean

"true", if a user exists on the server, "false" if not

 

Possible errors

#5, MCIAPI_Error_WrongIntegrationKey

#24, MCIAPI_Error_UINIsNotDefined

 

See also

MCIAPI_CS_GetUINByNick