Skip to content

Instantly share code, notes, and snippets.

@thinkphp
Created April 20, 2012 09:58
Show Gist options
  • Select an option

  • Save thinkphp/2427440 to your computer and use it in GitHub Desktop.

Select an option

Save thinkphp/2427440 to your computer and use it in GitHub Desktop.
Usage Twitter Service
<?php
$endpoint = 'http://thinkphp.ro/apps/ishackday/jsonservice/twitter.php/get?username=thinkphp';
$json = json_decode(file_get_contents($endpoint));
$response = $json->response;
print_r($response);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment