Featured Post

calling Google DDNS using - nodejs


Hi Friends,
this is the program which I use to update my DDNS using node.js

var request = require("request");
var schedule = require("node-schedule");
var options = { method: 'POST',
  url: 'https://user:password@domains.google.com/nic/update',
  qs: { hostname: 'example.com', myip: 'myip' },
  headers: 
   { 'postman-token': '61e928e4-a373-9d70-7f66-2b2f5f48a9e8',
     'cache-control': 'no-cache' } };



var j = schedule.scheduleJob('2 * * * * *', function(){
console.log("<------------calling ..="" google---------="">");
 request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

  console.log("<--------------end------------------>");
});

Comments

Popular posts from this blog

[Inside AdSense] Understanding your eCPM (effective cost per thousand impress...