1.0.1 • Published 7 years ago
gatewaylookup v1.0.1
#Overview This module is for looking up carrier specific email to SMS gateway addresses associated with each phone number. You need to have a valid Numverify API key for it to work. ##Installing
npm install gatewaylookup
##Including
var gateway = require("gatewaylookup");
##Running Queries
gateway.getPhoneDetails(numVerifyKey, CountryCode, Number, function(res){
console.log(res.Gateway);
});
Returns following JSON
{"Number":"","Carrier":"","Gateway":""}
Number
: The entered number
Carrier
: Full carrier name
Gateway
: Email to SMS gateway address
If the carrier does not have a gateway or if it is not included in the module yet, Gateway
will have a value of NoSupport
##Limitations Currently only supports the 4 major US carriers, AT&T, T-Mobile, Sprint, and Verizon, more will be added in the future.