Saturday 27 May 2017

node js request multiple urls same time

I want to request multiple urls with npm s request library and return results in on json

my code is that but not working.

request({
    url: "https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId="+item+"&key=AIzaSyCPv-dasd&maxResults=100&",
   url: "https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId="+item+"&key=AIzaSyCPv-dasd&maxResults=100&",
    json: true
}, 



via user8026867

No comments:

Post a Comment