This API is used via wx.chooseContact(Object object).
Attribute | Type | Default value | Required | Description |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Attribute | Type | Description |
phoneNumber | string | Mobile number |
displayName | string | Contact name |
phoneNumberList | string | All mobile numbers of the selected contact (some Android systems only allow selecting contacts, not specific phone numbers) |
This API is used via wx.addPhoneContact(Object object).
Attribute | Type | Default value | Required | Description |
firstName | string | - | Yes | Name |
photoFilePath | string | - | No | Local file path of avatar |
nickName | string | - | No | Nickname |
lastName | string | - | No | Surname |
middleName | string | - | No | Middle Name |
remark | string | - | No | Remarks |
mobilePhoneNumber | string | - | No | Mobile number |
weChatNumber | string | - | No | WeChat ID |
addressCountry | string | - | No | Country of address |
addressState | string | - | No | Province of address |
addressCity | string | - | No | City of address |
addressStreet | string | - | No | Sub-district of address |
addressPostalCode | string | - | No | Postcode |
organization | string | - | No | Company |
title | string | - | No | Position |
workFaxNumber | string | - | No | Office fax number |
workPhoneNumber | string | - | No | Office telephone number |
hostNumber | string | - | No | Company phone number |
email | string | - | No | Email Address |
url | string | - | No | Website |
workAddressCountry | string | - | No | Country of office address |
workAddressState | string | - | No | Province of office address |
workAddressCity | string | - | No | City of office address |
workAddressStreet | string | - | No | Sub-district of office address |
workAddressPostalCode | string | - | No | Postcode of office address |
homeFaxNumber | string | - | No | Residential Fax |
homePhoneNumber | string | - | No | Residential phone number |
homeAddressCountry | string | - | No | Country of Residential Address |
homeAddressState | string | - | No | Province of Residential Address |
homeAddressCity | string | - | No | City of Residential Address |
homeAddressStreet | string | - | No | Sub-district of residential address |
homeAddressPostalCode | string | - | No | Postcode of residential address |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Was this page helpful?