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>";