How to use javascript SDK Wix.contacts

I added the javascript tag below in BODY-END from tracking and tool analysis page.

I added the code below for on button click in one page.

export function button1_click(event, $w) {

Wix.Contacts.getContacts(options , onSuccess, onFailure)

}

But the Wix code does not understand the Wix keyword in this button handler. Can you give me step by step example of how to use Wix.contacts.

Thanks!

Hi,
These are the available API’s for Wix Code.

Roi.