Created
November 5, 2015 19:22
-
-
Save mikeolivieri/eb0979aa646d7d4b959a 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 ts = azure.createTableService(accountName, accountKey); | |
var query = new azure.TableQuery().top(500).where('PartitionKey eq ?', 'elearning'); | |
var nextContinuationToken = null; | |
var count = 0; | |
function getScreencasts(token) { | |
ts.queryEntities('Screencasts',query, nextContinuationToken, function(error, result, response) { | |
if (error) console.log(error); | |
result['entries'].forEach(function(d){ | |
console.log(d.VideoUrl._); | |
}); | |
if (result.continuationToken) { | |
nextContinuationToken = result.continuationToken; | |
getScreencasts(nextContinuationToken); | |
} | |
}); | |
} | |
getScreencasts(nextContinuationToken); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment