0
我一直在徘徊在这一个; PHP client library中的“apps”中提供的示例显示了如何使用apiHttpRequest类向Provisioning API发出HTTP请求。该示例显示如何列出和删除域中的用户(即启用了应用程序),但我已经了解如何POST到提供API(提要),因为我希望以编程方式使用apiHttpRequest创建组。任何帮助,将不胜感激!如何在Google PHP API客户端中使用apiHttpClient
我有包括代码示例删除用户
// Deleting a User Alias from a Domain (Experimental)
$domain = "example.com";
$user = rawurlencode("[email protected]");
$req = new apiHttpRequest("https://apps-apis.google.com/a/feeds/alias/2.0/$domain/$user", 'DELETE');
$resp = $client::getIo()->authenticatedRequest($req);
print "<h1>Deleting a User Alias from a Domain</h1>: <pre>" . $resp->getResponseBody() . "</pre>";