Skip to content

Phone

makePhoneCall

TIP

The API usage is as follows: wx.makePhoneCall(Object object)

  • Functional description: Make a call

  • Parameters and descriptions: Object object。

    PropertiesTypeDefault valueRequiredDescription
    phoneNumberstring-YesThe phone number to be dialed
    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)
  • Sample code:

js
wx.makePhoneCall({
  phoneNumber: '1340000' // This is merely an example and not an actual phone number.
})