tencent cloud

Tencent Cloud Super App as a Service

Phone Call

PDF
Focus Mode
Font Size
Last updated: 2025-02-25 16:53:06

makePhonecall

This API is used via wx.makePhoneCall(Object object).
Feature Description: Initiates a phone call.
Parameter: Object.
Attribute
Type
Default value
Required
Description
phoneNumber
string
-
Yes
The phone number that needs to be dialed
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)
Sample Code
wx.makePhoneCall({
phoneNumber: '1340000' // This is merely an example and not an actual phone number.
})


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback