node-topsy

A node.js module for interacting with the Topsy API.

npm install node-topsy
2 downloads in the last week
13 downloads in the last month

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 loves you