aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--active911.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/active911.js b/active911.js
index 577e47e..df2e2c6 100644
--- a/active911.js
+++ b/active911.js
@@ -1,4 +1,4 @@
-var http = require('http');
+var http = require('https');
var querystring = require('querystring');
module.exports = function (app_key, api_key) {
@@ -15,12 +15,12 @@ module.exports = function (app_key, api_key) {
// HTTP request configuration
var options = {
- host: 'localhost',
- port: '5000',
- path: '/api',
+ host: 'access.active911.com',
+ port: '443',
+ path: '/interface/open_api.php',
method: 'POST',
headers: {
- 'Content-Length': post.length;
+ 'Content-Length': post.length
}
};