# wx.makePhoneCall(Object object)
with Promise style call: Supported
Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6
Make a call
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
phoneNumber | string | yes | The number you need to dial | |
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |
# sample code
wx.makePhoneCall({
phoneNumber: '1340000' //Just an example, not a real phone number
})