Last active
October 28, 2015 16:25
-
-
Save matthisk/67fdd597519155b8785c to your computer and use it in GitHub Desktop.
Stream JS example: Follow many
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 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