如果我尝试其他API的API请求,它似乎工作正常,或者至少 - 返回有意义的错误响应。
但是对于Admin API,它总是返回" Bad request",例如:https://developers.google.com/apis-explorer/#search/customer/m/admin/directory_v1/directory.domains.list
我已经设置了所有API访问权限,但仍然没有运气。 例如。: 此请求(使用我正确的Google Apps域名)
始终返回:
400 OK
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "Bad Request"
}
],
"code": 400,
"message": "Bad Request"
}
}
答案 0 :(得分:0)
This is the place, where I finaly found a solution. Step-by-step instruction, I could not find anywhere else. The trick is in correct variable values:
How to Change Primary Domain in Google Apps
From The Source:
When the process is done, your secondary domain is converted to Primary Domain and vise versa.