Skip to content
Browse files

documented that `apiCall` returns a readable stream

  • Loading branch information...
1 parent 4e41364 commit 285f881502bd24a2c158c010d4e01a896ae3c1e1 @masylum committed Jun 6, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 Readme.md
View
5 Readme.md
@@ -48,6 +48,11 @@ app.post('/message', function (req, res) {
);
});
+app.get('/messages', function (req, res) {
+ var stream = fb.apiCall('GET', '/me/feed', {access_token: req.param('access_token'), message: req.param('message')});
+ stream.pipe(fs.createWriteStream('backup_feed.txt'));
+});
+
app.listen(3000);
```

0 comments on commit 285f881

Please sign in to comment.
Something went wrong with that request. Please try again.