Skip to content
forked from ACPK/klout

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

Notifications You must be signed in to change notification settings

mpautasso/klout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update the lib file according to the new API of Klout, and handle requests of multiple users ( up to 5).
--------------------------------------------------------------------------------------------------------
Usage:
------
>> Klout.api_key = "yourkloutapikey"
>> Klout.klout_score('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres",
                              "kscore"=>33.95}]} 

>> Klout.show_user("jasontorres")
=> {"status"=>200, "users"=>[{"twitter_id"=>"406073",
                               "twitter_screen_name"=>"jasontorres",
                               "score"=>{"kscore"=>33.95,
                               "slope"=>0.05,
                               "description"=>"is effectively using social media to influence their network across a variety of topics",
                               "kclass_id"=>10,
                               "kclass"=>"Socializer",
                               "kclass_description"=>"You are the hub of social scenes and people count on you to find out what's happening. You are quick to connect people and readily share your social savvy. Your followers appreciate your network and generosity.",
                               "kscore_description"=>"is effectively using social media to influence their network across a variety of topics",
                               "network_score"=>42.03,
                               "amplification_score"=>14.24,
                               "true_reach"=>234,
                               "delta_1day"=>-0.43,
                               "delta_5day"=>0.38}}]}

>> Klout.topics('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres",
                              "topics"=>["blogging", "pinoy", "internet start-ups", "coffee"]}]}

>> Klout.influenced_by('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres", 
                              "influencers"=>[{"twitter_screen_name"=>"voidnothings", "kscore"=>35.61}, 
                                              {"twitter_screen_name"=>"marcopalinar", "kscore"=>49.43}]}]}

>> Klout.influencer_of('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres",
                   "influencees"=>[{"twitter_screen_name"=>"bridgeutopia", "kscore"=>44.76},
                                   {"twitter_screen_name"=>"ericzoo", "kscore"=>52.71},
                                   {"twitter_screen_name"=>"ubuntunero", "kscore"=>51.48}]}]} 

----------------------------------------------------------------------------------------------------------------


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 klout

Usage and Example

>> require 'rubygems'
>> require 'klout'
>> Klout.api_key = "yourkloutapikey"
>> Klout.klout_score('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres",
                              "kscore"=>33.95}]} 

>> Klout.show_user('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_id"=>"406073",
                               "twitter_screen_name"=>"jasontorres",
                               "score"=>{"kscore"=>33.95,
                               "slope"=>0.05,
                               "description"=>"is effectively using social media to influence their network across a variety of topics",
                               "kclass_id"=>10,
                               "kclass"=>"Socializer",
                               "kclass_description"=>"You are the hub of social scenes and people count on you to find out what's happening. You are quick to connect people and readily share your social savvy. Your followers appreciate your network and generosity.",
                               "kscore_description"=>"is effectively using social media to influence their network across a variety of topics",
                               "network_score"=>42.03,
                               "amplification_score"=>14.24,
                               "true_reach"=>234,
                               "delta_1day"=>-0.43,
                               "delta_5day"=>0.38}}]}

>> Klout.topics('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres",
                              "topics"=>["blogging", "pinoy", "internet start-ups", "coffee"]}]} 

>> Klout.influenced_by('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres", 
                              "influencers"=>[{"twitter_screen_name"=>"voidnothings", "kscore"=>35.61}, 
                                              {"twitter_screen_name"=>"marcopalinar", "kscore"=>49.43}]}]}

>> Klout.influencer_of('jasontorres')
=> {"status"=>200, "users"=>[{"twitter_screen_name"=>"jasontorres",
                   "influencees"=>[{"twitter_screen_name"=>"bridgeutopia", "kscore"=>44.76},
                                   {"twitter_screen_name"=>"ericzoo", "kscore"=>52.71},
                                   {"twitter_screen_name"=>"ubuntunero", "kscore"=>51.48}]}]} 


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

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%