Skip to content

Instantly share code, notes, and snippets.

@lajlev
Created October 6, 2011 07:13
Show Gist options
  • Save lajlev/1266730 to your computer and use it in GitHub Desktop.
Save lajlev/1266730 to your computer and use it in GitHub Desktop.
<?php
// The JSON feed is gzipped. This is needed to unpack it before using
require('inc/gzdecode.php');
// Get the JSON feed and gzunpack
$file = gzdecode( file_get_contents("http://s.trustpilot.com/tpelements/917278/f.json.gz") );
// JSON decode the string
$json = json_decode($file);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment