On this page
Contact
chooseContact
TIP
The API usage is as follows: wx.chooseContact(Object object)
Functional description: Pull up the mobile phone address book and select a contact
Parameters and descriptions: Object object。
Properties Type Default value Required Description success Function - No Callback function for successful interface call fail Function - No Callback function for failed interface call complete Function - No Callback function for interface call completion (executed regardless of success or failure) object.success callback function parameters: Object Object。
Properties Type Description phoneNumber string Mobile phone number displayName string Contact name phoneNumberList string All mobile phone numbers of the selected contact (some Android systems can only select contacts but not specific mobile phone numbers)
addPhoneContact
TIP
The API usage is as follows: wx.addPhoneContact(Object object)
- Functional description: Add mobile phone address book contacts. The user can choose to write this form into the phone system address book by adding a new contact or adding it to an existing contact
- Parameters and descriptions: Object object。
Properties Type Default value Required Description firstName string - Yes Name photoFilePath string - No Local file path of avatar nickName string - No Nickname lastName string - No Last name middleName string - No Middle name remark string - No Remarks mobilePhoneNumber string - No Mobile number weChatNumber string - No Luffa number 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 Phone email string - No Email url string - No Website workAddressCountry string - No Work Address Country workAddressState string - No Work Address Province workAddressCity string - No Work Address City workAddressStreet string - No Work Address Street workAddressPostalCode string - No Work Address Postal Code homeFaxNumber string - No Home Fax homePhoneNumber string - No Home Phone homeAddressCountry string - No Home Address Country homeAddressState string - No Home Address Province/State homeAddressCity string - No Home Address City homeAddressStreet string - No Home Address Street homeAddressPostalCode string - No Home Address Postal Code success Function - No Callback function for successful interface call fail Function - No Callback function for failed interface call complete Function - No Callback function for interface call completion (executed regardless of success or failure)