基于Web的API可以告诉我号码是座机还是手机? [英] Web based API that can tell me if a number is a landline or cell phone?

查看:124
本文介绍了基于Web的API可以告诉我号码是座机还是手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序向人们发送SMS消息,但是作为他们的手机输入的号码有时是座机电话(这是用户错误或用户并不真正知道他们拥有的联系电话是手机还是座机.)

My application sends SMS messages to people, but the numbers entered in as their cell phone are sometimes land lines (this is user error or the user not really knowing if the contact number they have is a cell phone or landline.)

我找到了一些网站,可以告诉我电话号码是座机还是手机,但它们不提供程序化API.有人知道Web应用程序可以弄清楚号码是否可以接收SMS消息的方式吗?

I found a few websites that can tell me if a number is a landline or cell phone, but they do not offer programatic API's. Is anyone aware of a way a web application can figure out if a number can receive SMS messages?

我想测试SMS消息是一种方法,但是当我当前的SMS网关收到固定电话号码并且没有告诉我尝试将SMS发送到的固定电话号码时,它很难失败.我将与运营商联系,但我希望有一种简单的方法可以让用户输入电话号码(如果它们是座机或手机号码).

I guess a test SMS message is one way, but my current SMS gateway fails hard when it gets a landline number and doesn't tell me the landline number it tried to send the SMS to. I'll follow this up with my carrier, but I would love an easy way to let the user entering phone numbers in if they are a landline or cell number.

更新: 有多种方法可以解决此问题.看看 http://www.phonevalidator.com ,他们可以查询电话号码并确定是否是座机或手机.

Update: There are ways to figure this out. Take a look at http://www.phonevalidator.com, they can query a phone number and figure out if it is a landline or cell phone.

推荐答案

您可以让JavaScript使用以下网址打开弹出窗口: " http://www.phonevalidator.com/results.aspx?p= " + phoneNumber

You can have JavaScript open a popup with the url: "http://www.phonevalidator.com/results.aspx?p=" + phoneNumber

这篇关于基于Web的API可以告诉我号码是座机还是手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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