Upload address book contacts.
Delete contact
1. Use a `contacts` parameter to set an array of contact hashes
2. Set a name of the contact
3. Set a phone of the contact
4. Specify if you want to delete a contact
destroy
parameter as 1
to delete a contact.5. Set a device identifier
udid
parameter to specify a user’s device. If specified, a contact will be deleted for a specified device only.6. As a result, the API returns a response specifying that a contact was deleted.
Upload address book with incorrect data
1. Use a `contacts` parameter to set an array of contact hashes
2. Set a `name` and `phone` of the contact as separate arrays
name
separately from a phone
.3. Set a `name` as an empty string
4. Set an incorrect phone length
5. As a result, the API returns a `200` status response specifying that the data were set incorreclty.
Replace contacts
1. Use a `contacts` parameter to set an array of contact hashes
2. Set a name of a contact
name
is limited to a number of signs. Min: 1. Max: 255.3. Set a phone of a contact
phone
is limited to a number of signs. Min: 10. Max: 15.4. Specify if you want to replace existing contacts with the one specified
force
as 1
to replace the contacts.5. Set a device identifier
udid
parameter to specify a user’s device. If specified, contacts will be replaced for a specified device only.6. As a result, the API returns a responce specifying that `1` contact was created and `3` deleted.
Upload address book
1. Use a `contacts` parameter to set an array of contact hashes
2. Set a name of the contact
name
parameter to set the name of the contact.3. Set a phone of the contact
phone
parameter to set a phone of the contact.4. As a result, the API returns a `200` status response specifying that the contacts were uploaded.
phone
, name
, and destroy
.force=1
to apply, then all previous contacts for the device context
will be replaced by new ones.