# wx.addPhoneContact(Object object)
Start from base library version 1.2.0. Please remaining backward compatible.
with Promise style call: Supported
Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6
Add cell phone contacts. Users can choose to add this form to theAdd a contactorAdd to existing contactsWrite the phone system address book.
# parameter
# Object object
| attribute | type | Default values | Required | Introductions |
|---|---|---|---|---|
| firstName | string | yes | name | |
| photoFilePath | string | no | Avatar local file path | |
| nickName | string | no | nickname | |
| lastName | string | no | Surname | |
| middleName | string | no | middle name | |
| remark | string | no | Remarks | |
| mobilePhoneNumber | string | no | Phone number. | |
| weChatNumber | string | no | WeChat account | |
| addressCountry | string | no | Contact address country | |
| addressState | string | no | Contact Address Province | |
| addressCity | string | no | Contact Address City | |
| addressStreet | string | no | Contact Address Street | |
| addressPostalCode | string | no | Contact address postal code | |
| organization | string | no | company | |
| title | string | no | position | |
| workFaxNumber | string | no | Work fax | |
| workPhoneNumber | string | no | Work phone | |
| hostNumber | string | no | Company telephone | |
| string | no | |||
| url | string | no | website | |
| workAddressCountry | string | no | Country of work address | |
| workAddressState | string | no | Work Address Province | |
| workAddressCity | string | no | Work Address City | |
| workAddressStreet | string | no | Work Address Street | |
| workAddressPostalCode | string | no | Address of work post code | |
| homeFaxNumber | string | no | Residential facsimile | |
| homePhoneNumber | string | no | Residential telephone | |
| homeAddressCountry | string | no | Residential address country | |
| homeAddressState | string | no | Residential address provinces | |
| homeAddressCity | string | no | Residential address city | |
| homeAddressStreet | string | no | Residential address street | |
| homeAddressPostalCode | string | no | Residential address postcode | |
| success | function | no | Interface calls the successful callback function | |
| fail | function | no | Interface calls failed callback functions | |
| complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |