Hello, Has anyone successfully created a php app to get a list of all docs in the google drive? I have followed many documentations but none was clear and couldn't find an example for just getting the files list. Thanks for you help, Mona
May be something like this <?php session_start(); $url_array = explode('?', 'http://'.$_SERVER ['HTTP_HOST'].$_SERVER['REQUEST_URI']); $url = $url_array[0]; require_once 'google-api-php-client/src/Google_Client.php'; require_once 'google-api-php-client/src/contrib/Google_DriveService.php'; $client = new Google_Client(); $client->setClientId(''); // Kept my id $client->setClientSecret(''); //kept my key $client->setRedirectUri($url); $client->setScopes(array('https://www.googleapis.com/auth/drive')); if (isset($_GET['code'])) { $_SESSION['accessToken'] = $client->authenticate($_GET['code']); header('location:'.$url);exit; } elseif (!isset($_SESSION['accessToken'])) { $client->authenticate(); $client->setAccessToken($accessToken); } PHP: