Skip to content

Instantly share code, notes, and snippets.

View azat-co's full-sized avatar
🎯
Focusing

Professor Azat Mardan azat-co

🎯
Focusing
View GitHub Profile
@azat-co
azat-co / StorifyAPI_GET_stories
Created April 17, 2013 21:37
Example response to a **GET** `v1/stories/storifydev/node-js-news` request.
{ content:
{ sid: '516f1018384ca80000000011',
title: 'node.js news',
slug: 'node-js-news',
status: 'working',
version: 1,
permalink: 'http://storify.com/storify/node-js-news',
description: null,
thumbnail: 'http://storify.com/public/img/default-thumb.gif',
date:
var async = require('async');
var ProgressBar = require('progress');
var monk = require('monk');
var ObjectId=require('mongodb').ObjectID;
var dest = monk('localhost:27017/storify_localhost');
var backup = monk('localhost:27017/storify_backup');
var userId = ObjectId(YOUR-OBJECT-ID); // monk should have auto casting but we need it for queries