我希望为我的一个项目实现短信身份验证,基本上在用户能够向我们注册帐户之前,我们希望通过向用户的手机发送包含代码的短信来对用户进行身份验证,并让他在我们的表格中输入代码,然后他才能继续。
我环顾四周,发现 onVerify 是一个很好的方法
http://www.onverify.com/
但我想知道是否还有其他选择与 onVerify 类似,因为它有点贵,所以如果我能选择更便宜的,那就太好了。
谢谢!
I'm looking to implement an SMS authentication for one of my projects, basically before a user is able to register an account with us, we would like to authenticate the user by sending sms containing a code to his mobile phone, and get him to put in the code in our form before he can proceed.
I've been looking around and found onVerify to be a pretty good way to go
http://www.onverify.com/
But I'd like to know if there're any other alternatives similar to onVerify as it is a bit expensive, so if I could go with cheaper one, that'd be great.
Thanks!
发布评论
评论(1)
如果您可以访问短信提供商,则可以轻松完成此操作。
通常,您通过发出 HTTP 请求来向用户发送包含验证码的 SMS。您可以将此代码和收件人号码存储在某个持久数据库中,当他们在表单上填写详细信息时,您可以与这些数据库进行比较。
您没有提及您希望用户位于哪些地理区域,考虑到某些市场的交付质量参差不齐,这一点可能很重要。
查看BulkSMS HTTP API,消息定价 和 覆盖范围。
请注意,如果您想以美元定价,您可以在不同地区注册。
披露:我在 BulkSMS 工作
You can do this easily enough if you have access to an SMS provider.
Typically you send an SMS to the user by making an HTTP request, containing the verification code. You'd store this code, and the recipient number, in some persistent database, against which you can compare when they fill in the details on the form.
You don't mention which geographic regions you expect your users to be in, which can be important given the variable delivery quality in some markets.
Have a look at the HTTP API for BulkSMS, message pricing and coverage.
Note that you can register in various regions, if you, for example, want to price in USD.
Disclosure: I work at BulkSMS