stackexchangeswarup

1.0.3 • Public • Published

stackexchange-node

NPM module for StackExchange API + Node.js (actively maintained version!)

Installation

npm i --save stackexchange-node

Usage

var stackexchange = require('stackexchange-node');
 
var apiOptions = { version: 2.2 };
var api = new stackexchange(apiOptions);
 
var filter = {
  key: 'YOUR_API_KEY',
  pagesize: 50,
  tagged: 'node.js',
  sort: 'activity',
  order: 'asc'
};
 
// Get all the questions (http://api.stackexchange.com/docs/questions)
api.questions.questions(filter, function(err, results){
  if (err) throw err;
  
  console.log(results.items);
  console.log(results.has_more);
});

/stackexchangeswarup/

    Package Sidebar

    Install

    npm i stackexchangeswarup

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    27.3 kB

    Total Files

    17

    Last publish

    Collaborators

    • swaup3275