From cd2c28bf66a843712e04a8e85958f24eb4f8ee72 Mon Sep 17 00:00:00 2001 From: iqbal rifai Date: Wed, 11 Sep 2019 07:29:44 +0700 Subject: [PATCH] Fix missing $url --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9c849c1..434938b 100644 --- a/index.php +++ b/index.php @@ -52,12 +52,12 @@ function my_simple_crypt($string, $action = 'e') $ori = my_simple_crypt($id, 'd'); $apikey = " "; //your api key //$url2 = "https://www.googleapis.com/drive/v2/files/$ori?alt=media&key=$apikey"; + $url = "https://www.googleapis.com/drive/v3/files/$ori?key=$apikey"; $redirect = "https://www.googleapis.com/drive/v3/files/$ori?alt=media&key=$apikey"; //$json2 = file_get_contents($url2); $json = file_get_contents($url); $data = json_decode($json, true); //$data2 = json_decode($json2, true); - $url = "https://www.googleapis.com/drive/v3/files/$ori?key=$apikey"; $get_http_response_code = get_http_response_code($redirect); //$size = $data2["fileSize"]; $name = $data["name"];