node.js connecting to s3 and youtube
Clash Royale CLAN TAG #URR8PPP .everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 2 down vote favorite I have a task to connect to S3 get a JSON file with the names of artists, use the youtube-data-api and search for the top 10 songs. Then send it back in a given format to S3 back. console.log("Loading up the best code ever!!!"); //packagess import var fs = require('fs'); var AWS = require('aws-sdk'); var Singer = require('./Singer') //prepare all the AWS S3 data AWS.config.update( region: "us-west-1" ); var credentials = new AWS.SharedIniFileCredentials(); AWS.config.credentials = credentials; // Create S3 service object s3 = new AWS.S3( apiVersion: '2006-03-01' ); // Create the parameters for calling createBucket var bucketParams = Bucket: 'pc-backend-exercises', Key: 'toSearch.json', ResponseContentType: 'application/json' ; /// prepare the y...