
Untitled
By: a guest on
Jul 31st, 2012 | syntax:
None | size: 0.61 KB | hits: 14 | expires: Never
Pingdom Credential Missing Even If Provided
function get_checks() {
var options = {
"hostname" : "api.pingdom.com",
"path" : "/api/2.0/checks?"+"userpwd=user@example.com"+":"+"password",
"method" : "GET",
"headers" : {
"userpwd" : "user@example.com"+":"+"password",
"App-Key" : "key"
},
"userpwd" : "user@example.com"+":"+"password"
};
var req = https.request(options, function(response){
response.on('data', function(response_data) {
console.log("Response: " + response_data);
});
});
req.end();
}