我试着按照这个:教程——使用 klout api 计算我的追随者的 klout 分数。(在链接页面的底部)这里是说明:
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
我做了完全相同的事情,但返回“nameError:未初始化的常量 Klout”