Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Created December 27, 2012 23:20
Show Gist options
  • Save sandrinodimattia/4393073 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/4393073 to your computer and use it in GitHub Desktop.
function callwebsite() {
console.info("Executing job: callwebsite");
var req = require('request');
req.post({
headers: { 'Content-Type': 'application/json' },
url: "http://tempsdm.azurewebsites.net/scheduler/executetask",
body: JSON.stringify({ name: "cleanUpData" })
},
function(error, result, body) {
console.info("Job executed executed.");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment