短信服务
短信服务
发送短信验证码
参数
类型
必填
说明
curl -X POST \
-H "Authorization: Bearer cfb5912724dd7ff0b0c17683cc3074bb548bc7f4" \
-H "Content-Type: application/json" \
-d '{"phone": "12345678910", "user_id": 66879698, "signature_id": 1}' \
https://cloud.minapp.com/oserve/v2.1/sms-verification-code/var request = require('request')
var opt = {
uri: 'https://cloud.minapp.com/oserve/v2.1/sms-verification-code/',
method: 'POST',
headers: {
Authorization: `Bearer ${token}`
},
json: { // 指定 data 以 "Content-Type": 'application/json' 传送
phone: '12345678910',
signature_id: 1,
user_id: 66879698
}
}
request(opt, function (error, response, body) {
if (error) throw new Error(error);
console.log(response);
});验证短信验证码
参数
类型
必填
说明
Last updated
Was this helpful?