Storify API client for node.js

npm install storify
1 downloads in the last day
59 downloads in the last week
116 downloads in the last month



var Storify = require('storify');

var s = new Storify({ api_key: 'fd5dfs54f6d54sf' });

// should we implement this using callbacks ...

s.authenticate('cpetzold', 'test', function(user) {
  // user is a lib/User objects (with a _token property set for authorized calls)

s.getUser('cpetzold', function(user) {
  user.getStories(function(stories) {
    // stories is a lib/Collection of lib/Story objects

// ... or promises?

var user = s.getUser('cpetzold'); // lib/User

var story = user.getStory('some-story'); // would be deferred until the user promise was fulfilled
npm loves you