🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

storify

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storify

Storify API client for node.js

0.0.35
latest
npm
Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

node-storify

Usage

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

FAQs

Package last updated on 23 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts