Klout measures influence on topics across the social web to find the people the world listens to

See klout.com for more information about their service

Install:

sudo gem install kloutbg

Usage and Example

>> require ‘rubygems’ >> require ‘klout’

>> klout_client = Kloutbg.new(“yourkloutapikey”)

> #<Kloutbg:0x100c4e4>

>> response = klout_client.klout(“jasontorres”)

> #<HTTParty::Response:0x531dd0 @parsed_response=“twitter_screen_name”=>“jasontorres”], “status”=>200}, @response=#<Net::HTTPOK 200 OK readbody=true>, @headers=href=""PHP/5.3.2-1ubuntu4.5"">x-powered-by”=>, “connection”=>, “content-type”=>, “x-mashery-responder”=>, “server”=>[“Apache/2.2.14 (Ubuntu)”], “date”=>[“Thu, 04 Nov 2010 21:07:41 GMT”], “content-length”=>, “vary”=>, “accept-ranges”=>>

>>puts response.parsed_response[0]

>19.74

Not supported in this Gem: >> Kloutbg.score(‘jasontorres’)

> “status”=>200, “status_message”=>“OK”}

>> Kloutbg.profile(‘jasontorres’)

{"user"=>{"score"=>{"slope"=>0, "kscore"=>"19.7429", "kclass"=>"connector", "true_reach"=>"195", "amplification_score"=>"0", "kscore_description"=>"", "network_score"=>"0", "kclass_description"=>"You are a constant source of information to your friends and co-workers. There is a good chance that you probably introduced several of your friends to Twitter. Your taste and opinion is respected and your judgment is trusted.", "date_updated"=>"2009-07-09 00:59:08"}, "twitter_screen_name"=>"jasontorres", "status"=>200, "twitter_id"=>"406073", "status_message"=>"OK"}}

Disclaimer: Author is not anyway involved w/ Klout.com

This is becoming a ripoff of all klout gems.…

Klout is a copyright trademark of Klout.com

MIT License