-
-
Save amcintyre99/b52cc36a8b062c79eb0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var recursive = function (stmt) { | |
var req = request.post({url:url,oauth:oauth,timeout:10000},function(err,resp,body) { | |
if(err) { | |
console.log(err) | |
setTimeout(function() { | |
recursive(stmt) | |
},500) | |
} | |
}) | |
req.on('data',function(data) { | |
....insert row in database - uses stmt.... | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment