Comparing version 1.3.1 to 1.4.0
@@ -142,2 +142,10 @@ var request = require('request'); | ||
verification_status: function(phone_number, country_code, callback) { | ||
options = { | ||
phone_number: phone_number, | ||
country_code: country_code, | ||
}; | ||
self._request("get", "/protected/json/phones/verification/status", options, callback); | ||
}, | ||
info: function(phone_number, country_code, callback) { | ||
@@ -144,0 +152,0 @@ options = { |
{ | ||
"name": "authy", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Authy.com API lib for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -151,6 +151,18 @@ # node-authy [![Dependency Status](https://david-dm.org/evilpacket/node-authy.png)](https://david-dm.org/evilpacket/node-authy) | ||
#### Status of Phone Verification | ||
Browse the [API docs](https://www.twilio.com/docs/verify/api/verification) for all available params. | ||
phones().verification_status(phone_number, country_code, callback); | ||
```javascript | ||
authy.phones().verification_status('111-111-1111', '1', function (err, res) { | ||
}); | ||
``` | ||
##### Contributors | ||
- [Daniel Barnes](https://github.com/DanielBarnes) | ||
- [Josh Staples](https://github.com/josh-authy) | ||
- [Josh Staples](https://github.com/josh-authy) | ||
- [Christian Muertz](https://github.com/christian-muertz) |
@@ -298,2 +298,12 @@ var apikey = "0cd08abec2e9b9641e40e9470a7fc336"; | ||
verification_status: function (test) { | ||
test.expect(1); | ||
authy.phones().verification_status("111-111-1111", "1", | ||
function (err, res) { | ||
test.ok(res); | ||
test.done(); | ||
} | ||
); | ||
}, | ||
info: function (test) { | ||
@@ -300,0 +310,0 @@ test.expect(1); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22525
474
167