Wix.Contacts

Important:
Wix.Contacts methods are only available from the Dashboard endpoint.
getContactById

getContactById(id, onSuccess, onFailure)

Gets a specific Contact that has interacted with the current site by its id.

Parameters:

NameTypeDescription

Example:

getContacts

getContacts(options, onSuccess, onFailure) 

Gets a list of all contacts that have interacted with a given site.

Parameters:

NameTypeDescription

Value passed to onSuccess callback:

A WixDataCursor object, with the results presented in descending order by date. The following methods are supported by the WixDataCursor:

  • getData() → {Contacts[]} – A list of all the Contacts in the current website.
  • getPageSize() → {Number} – The number of the cursor page size.
  • getTotal() → {Number} – The total number of object in the cursor.
  • hasNext() → {boolean} – If WixDataCursor has more data.
  • hasPrevious() → {boolean} – If WixDataCursor has previous data.
  • next(onSuccess, onFailure) → {boolean} – The next WixDataCursor object.
  • previous(onSuccess, onFailure) → {boolean} – The previous WixDataCursor object.
 

Example:

reconcileContact

reconcileContact(contactInfo, onSuccess, [onFailure])

Use this method to share contact information with the WixHive. Read more about how to do this here.

Parameters:

NameTypeDescription

Value passed to callback:

An object containing the contact information and the rejected data:

NameTypeDescription

Example:

Was this page helpful?

What can we do to improve it?

What did you like about it?