new Contact(Creates a new Contact instance.params
):Contact
string
= undefined
• params.name.formatted_name: string
= undefined
• params.name.last_name?: string
= undefined
• params.name.middle_name?: string
= undefined
• params.name.prefix?: string
= undefined
• params.name.suffix?: string
= undefined
Contact
optional
addresses:object
[]
optional
birthday:string
optional
emails:object
[]
name: object
optional
first_name:string
formatted_name: string
optional
last_name:string
optional
middle_name:string
optional
prefix:string
optional
suffix:string
optional
org:object
optional
company:string
optional
department:string
optional
title:string
optional
phones:object
[]
optional
urls:object
[]
addAddress(Adds an address to the contact.address
):void
string
= undefined
• address.country?: string
= undefined
• address.country_code?: string
= undefined
• address.state?: string
= undefined
• address.street?: string
= undefined
• address.type: "HOME"
| "WORK"
= undefined
void
addEmail(Adds an email to the contact.void
string
= undefined
• email.type: "HOME"
| "WORK"
= undefined
void
addPhone(Adds a phone number to the contact.phone
):void
string
= undefined
• phone.type?: "HOME"
| "WORK"
| "CELL"
| "MAIN"
| "IPHONE"
= undefined
• phone.wa_id?: string
= undefined
void
addUrl(Adds a URL to the contact.url
):void
"HOME"
| "WORK"
= undefined
• url.url: string
= undefined
void
setBirthday(Sets the birthday of the contact.date
):void
string
The birthday of the contact.
void
setFirstName(Sets the first name of the contact.firstName
):void
string
The first name of the contact.
void
setLastName(Sets the last name of the contact.lastName
):void
string
The last name of the contact.
void
setMiddleName(Sets the middle name of the contact.middleName
):void
string
The middle name of the contact.
void
setNamePrefix(Sets the prefix of the contact’s name.prefix
):void
string
The prefix of the contact’s name.
void
setNameSuffix(Sets the suffix of the contact’s name.suffix
):void
string
The suffix of the contact’s name.
void
setOrg(Sets the organization of the contact.org
):void
string
= undefined
• org.department?: string
= undefined
• org.title?: string
= undefined
void