Skip to content

empika/rocky-klout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rocky-klout

DESCRIPTION:

Quick, easy access to the Klout.com API. Loosely based on the Klout gem by Jason Torres (github.com/jasontorres/klout) but using HTTParty and updating API methods.

REQUIREMENTS:

HTTParty

INSTALL:

sudo gem install rocky-klout

Usage:

> rk = RockyKlout.new(your_api_key_here)

> rk.user_show(“empika”) # returns a hash, remember to check the status of the returned object

> rk.user_show([“empika”, “kibokoapp”, “darthvader”]) # returns a hash, remember to check the status of the returned object

Available methods:

score_klout(“username_or_id”), score_klout([“array” “of”, “usernames”, “or”, “ids”])

user_show(“username_or_id”), user_show([“array” “of”, “usernames”, “or”, “ids”])

user_topics(“username_or_id”), user_topics([“array” “of”, “usernames”, “or”, “ids”])

user_stats(“username_or_id”), user_stats([“array” “of”, “usernames”, “or”, “ids”])

user_history(“username_or_id”, “measure”, “start_date”, “end_date”), user_history([“array” “of”, “usernames”, “or”, “ids”], “measure”, “start_date”, “end_date”)

I have no idea what some of the options for user_history are as its not very well documented. if you know, please let me know.

relationship_influenced_by(“username_or_id”), relationship_influenced_by([“array” “of”, “usernames”, “or”, “ids”])

relationship_influencer_of(“username_or_id”), relationship_influencer_of([“array” “of”, “usernames”, “or”, “ids”])

topic_search(“topic_string”)

topic_verify(“topic_string”)

Enjoy!

LICENSE:

(The MIT License)

Copyright © 2010 Eddy Parris

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A wrapper to interface with the Klout.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages