Skip to content

Instantly share code, notes, and snippets.

@keranm
Created January 8, 2014 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keranm/8311160 to your computer and use it in GitHub Desktop.
Save keranm/8311160 to your computer and use it in GitHub Desktop.
Get the list of company files
// lets get a list of the company files - note we use the base API url from the functions file
$companyFileList = getURL( 'http://localhost:8080/accountright' );
// it returns as JSON so lets decode it into a PHP object
$companyFileList = json_decode( $companyFileList );
echo '<h1>Company File list - JSON</h1>';
echo '<pre>'; // simple html tag to roughly render the HTML
var_dump($companyFileList);
echo '</pre>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment