create(Create a new contact and returns the contact. Currently only Person and Company contacts are supported.request
):Promise
<Contact
>
CreateContactRequest
the create request.
Promise
<Contact
>
get(Gets the contact associated to the specified contact id.contactId
):Promise
<Contact
>
string
the contact to retrieve.
Promise
<Contact
>
the specified contact.
observe(Creates a subscription for all contacts. Check against the contact you are interested in within your registered callback. To prevent doubling up of changes, notifications triggered by the contact update call will not be notified here. Only one subscription will be made per session. Regardless of how many times this function is called, the last registered callback will be used.callback
):void
contact
) => void
the function to execute when a change is made to contact(s) in Smokeball.
void
open(Opens the contact associated to the specified contact id.contactId
):void
string
void
update(Updates the contact associated to the specified contact id and returns the contact. Currently only Person and Company contacts are supported.request
):Promise
<Contact
>
UpdateContactRequest
the update request.
Promise
<Contact
>