thisiswei
thisiswei

Reputation: 531

Klout API not working

i try to follow this: tutorial --use klout api to calculate my follower's klout score.(at the bottom of the link page )here is the instruction:

First, hop into Terminal and run this line:

1. gem install klout

Next, open irb so you can experiment with the Klout API. Run the following lines:
API_KEY="your-api-key"
k = Klout::API.new(API_KEY)
k.klout("jack")["users"][0]["kscore"]
=> 74.61

i did exactly the same, but return "nameError:uninitialized constant Klout"

Upvotes: -1

Views: 325

Answers (1)

harmophone
harmophone

Reputation: 178

It's also bad form to post API keys publicly. They are licensed to you and you alone.

That said, it looks like either the gem didn't install properly, or you need to require Klout first.

Upvotes: 1

Related Questions