A command for adding a user to a common contact list. After multiple adding or editing call MCIAPI_CS_CommonContactsRebuild to update cache for online users' contacts, or wait until the system does it automatically.
{
"cmd" : "001B",
"ServerKey" : "iddqd",
"APIStype" : "mydata",
"UIN" : 17,
"GroupID" : 24
}
Parameter |
Type |
Value |
---|---|---|
ServerKey |
string |
IntegrationAPI key; you can set it in the server settings; |
APIStype |
string |
integration type. You can set any string. |
UIN |
integer |
user's ID, >0; |
GroupID |
integer |
department ID in the common contact list. |
{
"Cmd" : 27
}
Field |
Type |
Value |
---|---|---|
Cmd |
integer |
command name that was executed successfully; equal to 24 (HEX 0018). |
MCIAPI_Error_WrongIntegrationKey
#5: MCIAPI_Error_WrongIntegrationKey
#28: MCIAPI_Error_CannotWorkWithRobot
#31: MCIAPI_Error_WrongDepartmentID
#34 MCIAPI_Error_CommonContactsIsEmpty
#35 MCIAPI_Error_UINIsAlreadyInCommonContactList
MCIAPI_CS_CommonContactsRebuild