Skip to content

Instantly share code, notes, and snippets.

@ckung
Created December 29, 2014 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckung/592bc61df201891f34ee to your computer and use it in GitHub Desktop.
Save ckung/592bc61df201891f34ee to your computer and use it in GitHub Desktop.
test.js
var _ = require('lodash');
var Promise = require('bluebird');
var request = Promise.promisify(require('request'));
request('http://ci.cnt.api.conde.io/articles/546989dff3cd9c7947d5c2b0')
.then(function (content) {
var data = JSON.parse(_.last(content));
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment