stream-node
stream-node is a Node/Javascript client for Stream.
var stream = require('getstream');
client = stream.connect('YOUR_API_KEY', 'API_KEY_SECRET')
client = stream.connect('YOUR_API_KEY')
user1 = client.feed('user:1');
user1 = client.feed('user:1', 'FEED_SECRET');
user1.get({limit:5, offset:5}, callback);
user1.get({limit:5, id_lt:112334}, callback);
activity = {'actor': 1, 'verb': 'tweet', 'object': 1};
user1.addActivity(activity, callback);
user1.removeActivity('12345678910');
user1.follow('flat:42');
user1.unfollow('flat:42');
Docs are available on GetStream.io.
Installation
Install from NPM
npm install getstream
Install using bower
bower install getstream
Contributing
First, make sure you can run the test suite. Tests are run via Mocha
mocha test/integration/index.js
test/browser/test.html
mocha test/integration/cov.js -R html-cov > cov.html
To release a new version
gulp bump
gulp publish