Ejemplo n.º 1
0
 public static function FetchGoogleJSON($url)
 {
     $response = file_get_contents($url);
     $response = GoogleUtil::CleanGoogleJSON($response);
     usleep(20000);
     //be nice. let's sleep for 20ms
     return json_decode($response, true);
 }
Ejemplo n.º 2
0
 public static function FetchGoogleJSON($url)
 {
     $response = file_get_contents($url);
     $response = GoogleUtil::CleanGoogleJSON($response);
     return json_decode($response, true);
 }