Created
December 20, 2011 17:55
-
-
Save luqmaan/1502509 to your computer and use it in GitHub Desktop.
Get's a users klout score
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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