我想知道,如果启用了“字母数字发送者ID”,SMS-Api的"From“参数是否可以输入任何我想要的ID?除了一些国家,如沙特阿拉伯,它需要我们填写这张表格。(https://twiliodoer.secure.force.com/SenderId)
我不确定DOC的确切用法。
发布于 2021-07-05 21:47:22
Twilio开发者的布道者在这里。
the countries listed on this page中的Twilio支持字母数字发件人ID。您也可以选择use a Twilio Messaging service which allows you to add an alphanumeric sender ID and a long code number pool to fallback to in countries where alphanumeric sender IDs aren't supported。
要使用字母数字发件人ID,您必须使用upgrade your account first。完成此操作后,您可以使用字母数字发件人ID作为From参数发送邮件,如JavaScript中的示例所示:
const client = require("twilio")(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);
function sendMessage(to, body) {
return client.messages.create({
from: "MYSENDERID",
to: to,
body: body
});
}https://stackoverflow.com/questions/68219884
复制相似问题