node-topsy

v1.1.0
A node.js module for interacting with the Topsy API.
topsy

Description

node-topsy is a node.js module for interacting with the Topsy API.

Examples

var Topsy = require('../lib/Topsy');

var topsy = new Topsy('API_KEY');

topsy.getAuthorInfo({"url": "http://twitter.com/barackobama"}, function(error, result) {
    console.log(result);
});

topsy.getExperts({"q": "nosql"}, function(error, result) {
    console.log(result);
});

topsy.getLinkPosts({"url": "http://twitter.com/barackobama"}, function(error, result) {
    console.log(result);
});

topsy.getLinkPostCount({"url": "http://twitter.com/topsy"}, function(error, result) {
    console.log(result);
});

topsy.getPopularTrackbacks({"url": "http://www.google.com"}, function(error, result) {
    console.log(result);
});

topsy.getSearch({"q": "Barack Obama"}, function(error, result) {
    console.log(result);
});

topsy.getSearchCount({"q": "Barack Obama"}, function(error, result) {
    console.log(result);
});

topsy.getSearchHistogram({"q": "kindle"}, function(error, result) {
    console.log(result);
});

topsy.getSearchDate({"q": "Barack Obama"}, function(error, result) {
    console.log(result);
});

topsy.getStats({"url": "http://topsy.com"}, function(error, result) {
    console.log(result);
});

topsy.getTags({"url": "http://twitter.com"}, function(error, result) {
    console.log(result);
});

topsy.getTop({"thresh": "top100"}, function(error, result) {
    console.log(result);
});

topsy.getTrackbacks({"url": "http://topsy.com"}, function(error, result) {
    console.log(result);
});

topsy.getTrending({}, function(error, result) {
    console.log(result);
});

topsy.getUrlInfo({"url": "http://twitter.com"}, function(error, result) {
    console.log(result);
});
npm i node-topsy

Metadata

  • Unknown
  • 0.6.x
  • Chris Verwymeren
  • released 5/10/2012

Downloads

Maintainers