使用传出语音通话发送一次密码(otp) [英] sending one time password(otp) using outgoing voicecall

查看:267
本文介绍了使用传出语音通话发送一次密码(otp)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用短信和语音发送otp代码给我的用户.我已经使用clickatell提供程序完成了短信的otp发送.

我想通过使用拨出用户电话的方式来做同样的事情. 就像whatsapp具有sendms并给我打电话的功能一样.

您能推荐一个好的提供者吗?它便宜且在Java中实现.

谢谢

解决方案

此处是Twilio开发人员的福音.

您可以使用Twilio API创建此功能,以进行调用然后将号码读出给用户.

您需要购买一个Twilio号码才能拨打电话.然后,使用REST API创建从您的电话号码到用户号码.在API调用中,您将提供一个URL,以便当调用连接 Twilio时,它将发出HTTP请求转到URL,以了解下一步的操作.您的URL需要使用 TwiML 进行响应,该XML是描述Twilio应该做什么的XML下一个.要读出OTP代码,您可以使用 <Say>动词.

这里没有完整的教程,但是本教程向您展示如何从Java拨打电话.

您还可以查看如何使用Authy 是功能齐全的两要素身份验证API,可让您发送SMS消息,拨打电话并使用基于应用的OTP.

让我知道这是否有帮助.

I would like to send the otp code to my users using sms and voice. I already completed sending of otp by sms using clickatell provider.

I would like to do the same by using a outgoing call to the user's phone. Just like, whatsapp has the sendsms and call me features.

Can you suggest a good provider and which is cheap as well as implementation in java.

Thanks

解决方案

Twilio developer evangelist here.

You can create this feature using the Twilio API to make calls and then read out the number to user.

You would need to purchase yourself a Twilio number with which to make a call. Then, use the REST API to create the call from your number to the user's number. In the API call you would supply a URL so that when the call connects Twilio would make an HTTP request to the URL to find out what to do next. Your URL would need to respond with TwiML, which is some XML that describes what Twilio should do next. To read out the OTP code you could use the <Say> verb.

There isn't a full tutorial on this, but this tutorial shows you how to make calls from Java.

You could also check out how to accomplish this with Authy, which is a fully featured two factor authentication API that allows you to send SMS messages, make calls and use app based OTPs.

Let me know if this helps at all.

这篇关于使用传出语音通话发送一次密码(otp)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆