Contacts

Contacts

Contacts API object

Constructor

new Contacts(…contact)

Source:
Properties:
Name Type Description
contacts Array.<Object> The contacts of the message
_ String The type of the object, for internal use only
Create a Contacts object for the API
Parameters:
Name Type Attributes Description
contact Array.<(Address|Birthday|Email|Name|Organization|Phone|Url)> <repeatable>
Array of contact's components
Throws:
  • If contact is not provided
    Type
    Error
  • If contact contains more than one name component
    Type
    Error
  • If contact contains more than one birthday component
    Type
    Error
  • If contact contains more than one organization component
    Type
    Error