有什么方法可以绕过PeopleAPI中的Etag检查?

Google 通讯录允许我们通过传递 * 而不是联系人当前的 Etag 来绕过 Etag 验证以进行编辑/删除请求。

Google 通讯录 API 文档

注意:特殊的 Etag 值 * 可用于绕过此验证并处理更新,而不管来自其他客户端的更新如何。

有没有类似的方法可以绕过People API 中编辑/删除的 Etag 验证?

如果在更新期间没有在 Person 对象中发送 etag 值,则会面临以下错误。值“ * ”在 People API 中也不起作用。

要求:

{
  "emailAddresses": [
    {
      "displayName": "test1@gmail.com",
      "value": "test1@gmail.com",
      "type": "home"
    }
  ]
}

回复:

{
  "error": {
    "code": 400,
    "message": "Request must set person.etag or person.metadata.sources.etag for the source that is being updated.",
    "status": "INVALID_ARGUMENT"
  }
}

以上是有什么方法可以绕过PeopleAPI中的Etag检查?的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>