Permalink
Browse files

Add account to the query string params

  • Loading branch information...
1 parent fa4cc96 commit 1b632646d93fa559706a86972757228adb0aed88 @micahwedemeyer micahwedemeyer committed Oct 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/server_density.coffee
@@ -3,6 +3,7 @@
username = "apiuser"
password = "c0d3c4rt3l"
apiKey = "x93mb6h8krccu75qzuwnnew5"
+account = "blinqmedia.serverdensity.com"
module.exports = (robot) ->
@@ -14,7 +15,7 @@ serverDensity = (msg, url, cb) ->
authUrl = url.replace(/https?:\/\//, "https://" + username + ":" + password + "@")
msg.http(authUrl)
- .query("apiKey" : apiKey)
+ .query("apiKey" : apiKey, "account" : account)
.get() (err, res, body) ->
parsedResponse = JSON.parse(body)
cb parsedResponse

0 comments on commit 1b63264

Please sign in to comment.