# addToAbook
Description: Add a user to the address book.
Request example:
{
"method" : "addToAbook",
"requestId" : "1",
"peerId" : "user@some.server",
"peerDn" : "User 1"
}
Response example:
{
"method" : "addToAbook",
"requestId" : "1",
"result" : true
}
If peerId
is changed (converted as shown below), the response will contain an additional parameter callId
.
Response example:
{
"method" : "addToAbook",
"requestId" : "1",
"callId" : "user10@some.server",
"result" : true
}
Parameter description:
peerId
- unique identifier of a user (TrueConf ID) that needs to be added to the address book. Applicability:PeerId - supported. Automatically converted to CallId within the application and added by it.
CallId - supported. The specified identifier will be added to the address book.
InstanceId - supported. Automatically converted to CallId within the application and added based on it.
peerDn
— a user display name. This field is optional. If it is absent, a display name will be added automatically based on the server data.requestId
- unique request identifier. More details can be found herecallId
- unique identifier of the user after conversion
See also: