Skip to content

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。

    PropertiesTypeDefault valueRequiredDescription
    successFunction-NoCallback function for successful interface call
    failFunction-NoCallback function for failed interface call
    completeFunction-NoCallback function for interface call completion (executed regardless of success or failure)
  • object.success callback function parameters: Object Object。

    PropertiesTypeDescription
    phoneNumberstringMobile phone number
    displayNamestringContact name
    phoneNumberListstringAll 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。
    PropertiesTypeDefault valueRequiredDescription
    firstNamestring-YesName
    photoFilePathstring-NoLocal file path of avatar
    nickNamestring-NoNickname
    lastNamestring-NoLast name
    middleNamestring-NoMiddle name
    remarkstring-NoRemarks
    mobilePhoneNumberstring-NoMobile number
    weChatNumberstring-NoLuffa number
    addressCountrystring-NoContact address country
    addressStatestring-NoContact address province
    addressCitystring-NoContact address city
    addressStreetstring-NoContact address street
    addressPostalCodestring-NoContact address postal code
    organizationstring-NoCompany
    titlestring-NoPosition
    workFaxNumberstring-NoWork Fax
    workPhoneNumberstring-NoWork Phone
    hostNumberstring-NoCompany Phone
    emailstring-NoEmail
    urlstring-NoWebsite
    workAddressCountrystring-NoWork Address Country
    workAddressStatestring-NoWork Address Province
    workAddressCitystring-NoWork Address City
    workAddressStreetstring-NoWork Address Street
    workAddressPostalCodestring-NoWork Address Postal Code
    homeFaxNumberstring-NoHome Fax
    homePhoneNumberstring-NoHome Phone
    homeAddressCountrystring-NoHome Address Country
    homeAddressStatestring-NoHome Address Province/State
    homeAddressCitystring-NoHome Address City
    homeAddressStreetstring-NoHome Address Street
    homeAddressPostalCodestring-NoHome Address Postal Code
    successFunction-NoCallback function for successful interface call
    failFunction-NoCallback function for failed interface call
    completeFunction-NoCallback function for interface call completion (executed regardless of success or failure)