Skip to content

bgilreath/klout

 
 

Repository files navigation

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

See http://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={"users"=>[{"kscore"=>19.74, "twitter_screen_name"=>"jasontorres"}], "status"=>200}, @response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"x-powered-by"=>["PHP/5.3.2-1ubuntu4.5"], "connection"=>["close"], "content-type"=>["application/json"], "x-mashery-responder"=>["proxyworker-i-5366f33a.mashery.com"], "server"=>["Apache/2.2.14 (Ubuntu)"], "date"=>["Thu, 04 Nov 2010 21:07:41 GMT"], "content-length"=>["77"], "vary"=>["Accept-Encoding,User-Agent"], "accept-ranges"=>["bytes"]}>

>>puts response.parsed_response["users"][0]["kscore"]
=>19.74



Not supported in this Gem:
>> Kloutbg.score('jasontorres')
=> {"user"=>{"kscore"=>19.74, "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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%