Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google api php client 更新谷歌应用程序用户详细信息_Google Api Php Client_Google Admin Sdk - Fatal编程技术网

Google api php client 更新谷歌应用程序用户详细信息

Google api php client 更新谷歌应用程序用户详细信息,google-api-php-client,google-admin-sdk,Google Api Php Client,Google Admin Sdk,我想创建一个带有表单的页面来更新用户帐户详细信息,如密码。 我已经为我的应用程序获取了客户端id和客户端机密,我还已经在管理仪表板上为我的谷歌应用程序激活了API <html> <head> <title>Change password page</title> </head> <body> <h1>Change Password</h1> <form method="P

我想创建一个带有表单的页面来更新用户帐户详细信息,如密码。 我已经为我的应用程序获取了客户端id和客户端机密,我还已经在管理仪表板上为我的谷歌应用程序激活了API

<html>
  <head>
    <title>Change password page</title>
  </head>
<body>
  <h1>Change Password</h1>
  <form method="POST" action="process.php">
    Username: <br />
    <input type="text" name="username" /> <br />
    Old Password: <br />
    <input type="password" name="password" /> <br />
    <br />
    New Password: <br />
    <input type="password" name="newpassword" /> <br />
    Confirm Password: <br />
    <input type="password" name="confirm_newpassword" /> <br />
    <br />
    <input type="submit" name="btn-submit" value="Change Password" />

  </form>
</body>
我不知道我应该添加什么来创建对谷歌的请求,我已经知道了,但这对我来说还不够清楚

//process.php
set_include_path("../src/" . PATH_SEPARATOR . get_include_path());
require_once 'Google/Client.php';
// authenticate
$client = new Google_Client();
$client->setClientId(my_client_id);
$client->setClientSecret(my_client_secret);
$client->setRedirectUri(urn:ietf:wg:oauth:2.0:oob);