我使用下面的代码来让谷歌用户授权一个应用程序,以便他们可以在谷歌驱动器上创建一个文件。我可以从PHP服务器授权Google Drive吗?
$client = new Google_Client();
$client->setClientId($client_id);
$client->setClientSecret($client_secret);
$client->setRedirectUri($redirect_uri);
$client->addScope("https://www.googleapis.com/auth/drive");
$service = new Google_Service_Drive($client);
反正对我来说,授权从服务器上我自己的谷歌账户,所以最终用户则从来没有授权的应用程序?
我想在iframe中显示google presenation文档。