Callback URL

This callback URL invokes the ping method of the weblogs.com API. The essential JavaScript code is shown below.
function (data) {
    if (data.type !== 'Story' && data.type !== 'Comment') {
      return;
    }
    var remote = new Remote('http://rpc.weblogs.com/RPC2');
    var call = remote.weblogUpdates.ping(data.site, data.origin);
    if (call.error || call.result.flerror) {
      console.error('Error invoking weblogs.com ping() method for ' + data.site + ': ' + call.error || call.result.message);
    } else {
      console.info(call.result);
    }
    return;
  }