SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | $klout_api_key = ""; | |
| 3 | - | $screenName = $argv[1]; |
| 3 | + | $klout_id = json_decode(file_get_contents("http://api.klout.com/v2/identity.json/twitter?screenName=".$argv[1]."&key=$klout_api_key"))->{'id'};
|
| 4 | - | $klout_id = json_decode(file_get_contents("http://api.klout.com/v2/identity.json/twitter?screenName=$screenName&key=$klout_api_key"))->{'id'};
|
| 4 | + | |
| 5 | echo "Klout score for ".$argv[1]." is $score!\n"; | |
| 6 | - | |
| 6 | + |