lib/klout/identity.rb in klout-3.0.1 vs lib/klout/identity.rb in klout-3.0.2

- old
+ new

@@ -17,8 +17,18 @@ def find_by_klout_id(klout_id) response = Klout.get "/identity.json/klout/#{klout_id}/tw", :query => {key: Klout.api_key} Hashie::Mash.new(response) end + + def find_by_facebook_id(third_party_id) + response = Klout.get "/identity.json/fb/#{third_party_id}", :query => {key: Klout.api_key} + Hashie::Mash.new(response) + end + + def find_by_google_plus_id(google_plus_id) + response = Klout.get "/identity.json/gp/#{google_plus_id}", :query => {key: Klout.api_key} + Hashie::Mash.new(response) + end end end end \ No newline at end of file