Skip to content

Instantly share code, notes, and snippets.

@mikeolivieri
Created November 5, 2015 19:22
Show Gist options
  • Save mikeolivieri/eb0979aa646d7d4b959a to your computer and use it in GitHub Desktop.
Save mikeolivieri/eb0979aa646d7d4b959a to your computer and use it in GitHub Desktop.
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