Skip to content

xonecas/disqus-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disqus node.js api client

Usage:

  var DISQUS  = require('disqus-node'),
     api;

  api = DISQUS(key, format, version, isSecure);

  api.call(endpoint, method, options, callback);

Example

  var disqus = require('../lib/disqus-node.js'),
     dq;

  dq = disqus(
     "PjBusPP4mtOe9VQDuDLe5DetbdLLLqjrhqosGnHrKS8JlBDpFrZg6yDnedBeL65E",
     'json',
     '3.0',
     false
  );

  dq.call('threads', 'list', {"forum": "xonecas"}, function (response) {
     console.log(response.toString());

     response.iter(function (value, key) {
        console.log("\n"+ key +": "+ value.toString()); 
     });

     console.log(response.len());

     console.log(response.getSlice(0, 1));

     console.log(response.getItem(0));

     console.log(response.contains(0));
     
  });

About

Disqus API node.js client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published