Skip to content

Instantly share code, notes, and snippets.

@rra3
Created April 17, 2014 20:03
Show Gist options
  • Select an option

  • Save rra3/11008391 to your computer and use it in GitHub Desktop.

Select an option

Save rra3/11008391 to your computer and use it in GitHub Desktop.
var putData = JSON.stringify({
bobby: "test",
date: new Date()
});
var buffData = new Buffer(putData).toString("base64");
kinesis.request('PutRecord',
{
StreamName: 'IntelJS',
PartitionKey: '12456',
Data: buffData
},
function(err,data) {
if (err) throw err;
console.dir(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment