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/67fdd597519155b8785c to your computer and use it in GitHub Desktop.
Save matthisk/67fdd597519155b8785c to your computer and use it in GitHub Desktop.
Stream JS example: Follow many
var follows = [
{'source': 'flat:1', 'target': 'user:1'},
{'source': 'flat:1', 'target': 'user:2'},
{'source': 'flat:1', 'target': 'user:3'}
];
client.followMany(follows)
.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