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