如何解决无法将 Twilio 短信与 azure 功能绑定,
无法成功将 twilio 短信与 azure 函数绑定,出现错误,提示无法识别 twilio..
如果有人知道这里需要做什么,请发布带有工作代码的解决方案,否则 请让我知道如何在触发时在 azure 函数中显示弹出消息。
使用系统; 使用 Twilio;
public static void Run(TimerInfo myTimer,TraceWriter log) { log.Info($"C# 定时器触发函数执行时间:{DateTime.Now}");
string accountSid = "SID";
string authToken = "token";
var client = new TwilioRestClient(accountSid,authToken);
client.SendMessage(
"+from",// Insert your Twilio from SMS number here
"+to",// Insert your verified (trial) to SMS number here
"hello from Azure Functions!" + DateTime.Now
);
}
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。