Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to write Mini Program into the address book of mobile phone system

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

The editor of this article introduces in detail "how Mini Program is written into the address book of the mobile phone system". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to write Mini Program into the address book of the mobile phone system" can help you solve your doubts. Let's follow the editor's ideas slowly and deeply, together to learn new knowledge.

Wx.addPhoneContact (OBJECT)

The basic library 1.2.0 is supported, and the lower version needs to be compatible.

After calling, the user can choose to write the form into the mobile phone system address book as "new contact" or "add to existing contact", and complete the increase of contacts and contact information in the mobile phone address book.

OBJECT parameter description:

Parameter type required: photoFilePathString No profile Local File path nickNameString No nickname lastNameString No Last name middleNameString No Middle name remarkString No Note mobilePhoneNumberString No Mobile number weChatNumberString No WeChat addressCountryString No contact address country addressStateString No contact address City addressStreetString No contact address Street addressPostalCodeString No contact address Postal Code string No Company titleString No position workFaxNumberString No work Fax workPhoneNumberString No work telephone hostNumberString No Company telephone emailString No Submail urlStringNo website workAddressCountryStringNo work address State workAddressStateString No work address Province workAddressCityString No work address City workAddressStreetString No work address Street workAddressPostalCodeString No work address homeFaxNumberString No Residential Fax homePhoneNumberString No Residential telephone homeAddressCountryString No Residential address National homeAddressStateString No Residential address Province homeAddressStreetStringNo Residential address City HomeAddressStreetStringNo Residential address Street homeAddressPostalCodeString No Residential address successFunction No API call successful failFunction No failed API call Callback function completeFunction No API calls the finished callback function (successful call, All failures will be executed)

Callback result:

Callback type errMsg indicates that successok was added successfully failfail cancel user canceled operation failfail ${detail} failed to call, detail plus details read here, this article "how to write Mini Program to the address book of mobile system" has been introduced, to master the knowledge of this article, you still need to practice and use it to understand it. If you want to know more related articles, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report