Skip to content

Instantly share code, notes, and snippets.

@matthisk
Last active October 28, 2015 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthisk/42d4f1349227062bb6a2 to your computer and use it in GitHub Desktop.
Save matthisk/42d4f1349227062bb6a2 to your computer and use it in GitHub Desktop.
Stream JS example: Add to many
var activity = {'actor': 'User:1', 'verb': 'tweet', 'object': 'Tweet:1'};
var feeds = ['flat:1','flat:2','aggregated:3'];
client.addToMany(activity, feeds)
.then(function(body) { /* fulfillment handler */ })
.catch(function(error) { /* rejection handler */ });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment