LicenseAssignments.get api返回200 OK
请求:
GET https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/sku/Google-Apps-For-Business/user/<email>
响应:
200 OK
- Show headers -
{
"kind": "licensing#licenseAssignment",
"selfLink": "https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/sku/Google-Apps-For-Business/user/<email>",
"userId": "<email>",
"productId": "Google-Apps",
"skuId": "Google-Apps-For-Business"
}
然而,LicenseAssignments.listForProduct返回"403禁忌“
请求:
GET https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/users?customerId=my_customer
响应:
403 Forbidden
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Unauthorized operation for the given domain."
}
],
"code": 403,
"message": "Unauthorized operation for the given domain."
}
}
知道为什么我第二次请求被禁止使用403吗?
发布于 2014-11-24 15:32:30
当我使用‘域名’(例如something.com)作为'customerId‘时,这个问题就解决了。这与其他Google中“customerId”是“my_customer”的行为不同。
https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/users?customerId=<domain name>
https://stackoverflow.com/questions/26998293
复制相似问题