Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $klout_api_key = "";
- $screenName = $argv[1];
- $klout_id = json_decode(file_get_contents("http://api.klout.com/v2/identity.json/twitter?screenName=$screenName&key=$klout_api_key"))->{'id'};
- $score = json_decode(file_get_contents("http://api.klout.com/v2/user.json/$klout_id/score?key=$klout_api_key"))->{'score'};
- echo "Klout score for $screenName is $score!\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment