Skip to content

Instantly share code, notes, and snippets.

@luqmaan
Created December 20, 2011 17:55
Show Gist options
  • Save luqmaan/1502509 to your computer and use it in GitHub Desktop.
Save luqmaan/1502509 to your computer and use it in GitHub Desktop.
Get's a users klout score
function getKloutScore($handle, $key) {
$url = "http://api.klout.com/1/klout.json?users=$handle&key=$key";
$response = file_get_contents($url);
$result = json_decode($response, true);
$score = $result[users][0][kscore];
return $score;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment