2016-02-10 120 views
0

我需要使用旧版Google for Business帐户的Google Groups API修改群组设置。我使用的Web请求:带旧帐户的Google Gropus API

PUT 
https://www.googleapis.com/groups/v1/groups/<group_id> 
request body: { 
    "whoCanPostMessage": "ALL_MEMBERS_CAN_POST" 
} 
headers: { 
    'Content-type': 'application/json; charset=UTF-8', 
    'Authorization': 'Bearer <access_token> 
} 

但服务器返回:

<Response [401]> 
{ 
    "error": { 
    "errors": [ 
     { 
     "domain": "global", 
     "reason": "authError", 
     "message": "Domain cannot use Api, Groups service is not installed.", 
     "locationType": "header", 
     "location": "Authorization" 
     } 
    ], 
    "code": 401, 
    "message": "Domain cannot use Api, Groups service is not installed." 
    } 
} 

即使我启用了组,我可以从管理控制台使用此服务。 (但是,目录API确实有效)
当我创建一个新的虚拟帐户进行测试时,一切都无缝工作。
我该如何解决这个问题并使用API​​与我的旧帐户?

回答