untitled notebook

node v10.15.3
version: 1.0.0
endpointsharetweet
var request = require('request'); var CronJob = require('cron').CronJob; var job = new CronJob({ cronTime: '*/15 * * * *', onTick: function() { request.post({ headers: {'content-type': 'application/json'}, url: 'https://wyzefind-api-dot-graph-intelligence.appspot.com/summary-related', json: { article_url: 'http://www.physiciansnewsnetwork.com/ximed/study-hospital-physician-vertical-integration-has-little-impact-on-quality/article_257c41a0-3a11-11e9-952b-97cc981efd76.html', user_id: 1} }, function (error, response, body) { if (!error && response.statusCode == 200) { console.log(body); } }); }, start: false, timeZone: 'America/Los_Angeles' }); job.start();
Loading…

no comments

    sign in to comment