Address Book API
AddressBook API allows to store the address book contacts on server and notify that someone from the address book is registered in ConnectyCube.
Upload address book
Upload contacts from the address book on server and / or update list of contacts if it was changed.
With ‘Upload address book’ request, 3 different actions can be performed:
- create contact(s)
- updated contact(s)
- delete contact(s)
Endpoint
Parameters
Parameter | Data type | Description |
---|---|---|
contacts | hash | Array of contacts hashes generated as ‘contact name’ and ‘phone’: |
force | integer | Re-write the whole address book on server. Should be set to ‘1’ |
udid | string | User’s device identifier. If specified - all operations will be performed for the specified device only. If not specified - all operations will be performed across all devices. Validation: length up to 64 symbols |
Request example
Response
Retrieve address book
Retrieve the contacts from uploaded address book.
Endpoint
Parameters
Parameter | Description |
---|---|
udid | User’s device identifier. If specified - contacts from that device will be retrieved. If not specified - contacts from the global address book will be retrieved |
Request example
Response
Retrieve already registered contacts/users
Retrieve users who are in the address book and are registered in ConnectyCube.
Endpoint
Parameters
Parameter | Description |
---|---|
udid | User’s device identifier. If specified - only contacts from the device will be checked. If not specified - global address book will be checked |
compact | Defines information retrieved for each contact: compact =1 - only user’s ID, phone and name (with which the user was saved in the Address book) will be retrieved compact =0 - all fields from user’s profile will be returned |