rocky-klout 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/README.rdoc +15 -5
  3. data/lib/rocky-klout.rb +3 -3
  4. metadata +4 -4
@@ -2,3 +2,8 @@
2
2
 
3
3
  * 1 major enhancement:
4
4
  * Initial release
5
+
6
+ === 0.0.2 2010-10-16
7
+
8
+ * 1 minor enhancement:
9
+ * Fixed spelling mistake of relationship_influencer_of
@@ -17,25 +17,35 @@ sudo gem install rocky-klout
17
17
  == Usage:
18
18
 
19
19
  > rk = RockyKlout.new(your_api_key_here)
20
- > rk.user_show("empika")
21
- => Hash
22
- > rk.user_show(["empika", "kibokoapp", "darthvader"])
23
- => Hash
20
+
21
+ > rk.user_show("empika") # returns a hash, remember to check the status of the returned object
22
+
23
+ > rk.user_show(["empika", "kibokoapp", "darthvader"]) # returns a hash, remember to check the status of the returned object
24
+
24
25
 
25
26
  Available methods:
26
27
 
27
28
  score_klout("username_or_id"), score_klout(["array" "of", "usernames", "or", "ids"])
28
29
 
30
+
29
31
  user_show("username_or_id"), user_show(["array" "of", "usernames", "or", "ids"])
32
+
30
33
  user_topics("username_or_id"), user_topics(["array" "of", "usernames", "or", "ids"])
34
+
31
35
  user_stats("username_or_id"), user_stats(["array" "of", "usernames", "or", "ids"])
36
+
32
37
  user_history("username_or_id", "measure", "start_date", "end_date"), user_history(["array" "of", "usernames", "or", "ids"], "measure", "start_date", "end_date")
38
+
33
39
  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.
34
40
 
41
+
35
42
  relationship_influenced_by("username_or_id"), relationship_influenced_by(["array" "of", "usernames", "or", "ids"])
36
- relationship_influcencer_of("username_or_id"), relationship_influcencer_of(["array" "of", "usernames", "or", "ids"])
43
+
44
+ relationship_influencer_of("username_or_id"), relationship_influencer_of(["array" "of", "usernames", "or", "ids"])
45
+
37
46
 
38
47
  topic_search("topic_string")
48
+
39
49
  topic_verify("topic_string")
40
50
 
41
51
  Enjoy!
@@ -9,12 +9,12 @@ $:.unshift(File.dirname(__FILE__)) unless
9
9
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
10
10
 
11
11
  # module RockyKlout
12
- # VERSION = '0.0.1'
12
+ # VERSION = '0.0.2'
13
13
  # end
14
14
 
15
15
  class RockyKlout
16
16
  include HTTParty
17
- VERSION = '0.0.1'
17
+ VERSION = '0.0.2'
18
18
 
19
19
  @@base_uri = "http://api.klout.com"
20
20
  @@api_version = "1"
@@ -66,7 +66,7 @@ class RockyKlout
66
66
  self.class.get(@@base_uri + request_uri)
67
67
  end
68
68
 
69
- def relationship_influcencer_of(usernames)
69
+ def relationship_influencer_of(usernames)
70
70
  request_uri = "/#{@@api_version}/soi/influencer_of.json?key=#{@@api_key}&users=" + usernames.collect{|name| CGI.escape(name)}.join(",")
71
71
  self.class.get(@@base_uri + request_uri)
72
72
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocky-klout
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eddy Parris
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-19 00:00:00 +01:00
18
+ date: 2010-11-02 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency