Skip to content

Commit

Permalink
Fix missing $url
Browse files Browse the repository at this point in the history
  • Loading branch information
py7hon authored Sep 11, 2019
1 parent d2842e6 commit cd2c28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit cd2c28b

Please sign in to comment.