Skip to content
node-topsy is a node.js module for interacting with the Topsy API.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
example
lib
.gitignore
README.md
main.js
package.json

README.md

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);
});
Something went wrong with that request. Please try again.