Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Interface to the TunkRank API.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 tunkrank.gemspec
README.markdown

TunkRank

Interface to the TunkRank API. TunkRank is a tool that measures a person's influence on Twitter by looking at how much attention your followers can actually give you. You can read more here.

Usage

The TunkRank API supports two main methods: score and refresh. The gem includes two convenience methods for returning just the raw score or just the ranking.

require 'tunkrank'
TunkRank.score('ealdent')
TunkRank.raw_score('ealdent')  # => 6.87
TunkRank.ranking('ealdent')    # => 21
TunkRank.refresh('ealdent')

The result of the score method is a Hash that looks like the following

{
  "twitter_user" => {
    "ranking" => 21,
    "raw_tunkrank_score" => 6.87,
    "tunkrank_computed_at" => "2010-03-25T00:20:13Z",
    "num_followers" => 575,
    "num_friends" => 219,
    "twitter_id" => 8454562,
    "screen_name" => "ealdent"
  }
}

Copyright

Copyright (c) 2010 Jason Adams. See LICENSE for details.

Something went wrong with that request. Please try again.