2013-04-01 46 views
0

我的Google Apps for Business帳戶擁有數百個羣組。我想批量更新一堆設置,所以我下載了PHP客戶端。我無法弄清楚如何提供信息來查詢和更新設置。似乎所有內容都是圍繞用戶使用Web瀏覽器登錄的概念而設計的。我使用「服務器應用程序密鑰(帶IP鎖定)」在「簡單API訪問」下的API控制檯上註冊了該應用程序。我似乎無法做出任何疑問,但我獲得了許可。Google Groups Settings API without user auth?

實例網址: https://www.googleapis.com/groups/v1/groups/[email protected]?key=MY_KEY_HERE

給我:

<?xml version="1.0" encoding="UTF-8"?> 
<errors xmlns="http://schemas.google.com/g/2005"> 
<error> 
    <domain>GData</domain> 
    <code>required</code> 
    <location type="header">Authorization</location> 
    <internalReason>Login Required</internalReason> 
</error> 
</errors> 

難道這可能嗎?

回答

0

您需要執行OAuth 2.0身份驗證作爲Google Apps超級管理員進行羣組設置API調用。

您可能只想在bulk中使用Dito GAMupdate the group settings而不是重新發明輪子。