summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottmotte <scott@scottmotte.com>2014-02-09 09:31:33 -0500
committerscottmotte <scott@scottmotte.com>2014-02-09 09:31:33 -0500
commitc3b3f6651aa25eb647908b087f8750e7d28ec520 (patch)
tree9f65fd51912073cde0cd3ba41b1a21ea57a37a00
parent800785a1e02062828d77e8ebc0c3fda01bdc1686 (diff)
downloadsendgrid-nodejs-c3b3f6651aa25eb647908b087f8750e7d28ec520.zip
sendgrid-nodejs-c3b3f6651aa25eb647908b087f8750e7d28ec520.tar.gz
sendgrid-nodejs-c3b3f6651aa25eb647908b087f8750e7d28ec520.tar.bz2
Change to using API url. Pull request #112
-rw-r--r--lib/sendgrid.js2
-rw-r--r--test/lib/sendgrid.test.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sendgrid.js b/lib/sendgrid.js
index 63c52e6..085085d 100644
--- a/lib/sendgrid.js
+++ b/lib/sendgrid.js
@@ -37,7 +37,7 @@ var Sendgrid = function(api_user, api_key, options) {
var _send = function(email, callback) {
var postOptions = {
method : 'POST',
- uri : "https://sendgrid.com/api/mail.send.json"
+ uri : "https://api.sendgrid.com/api/mail.send.json"
};
var options = _.merge(this.options, postOptions);
diff --git a/test/lib/sendgrid.test.js b/test/lib/sendgrid.test.js
index e4e416d..8e3e796 100644
--- a/test/lib/sendgrid.test.js
+++ b/test/lib/sendgrid.test.js
@@ -34,7 +34,7 @@ describe('SendGrid', function () {
beforeEach(function() {
payload = Object.create(default_payload);
- webApi = nock('https://sendgrid.com')
+ webApi = nock('https://api.sendgrid.com')
.filteringRequestBody(function(path) {
postParamsString = path;
return '*';