域共享联系人API DELETE批处理出现问题

问题描述

我有以下XML文件,我通过OAuth 2.0 Http发送到此供稿批处理链接

https://www.google.com/m8/feeds/contacts/{my_domain}/full/batch

根据Batch Processing Google Data Protocol

使用DELETE方法

任何想法为什么我都会不断收到“找不到联系人ID”的信息。回应?

我确实读过this post,并尝试了其中讨论的所有内容,但还是没有运气。

<?xml version='1.0' encoding='UTF-8'?>
<Feed xmlns='http://www.w3.org/2005/Atom'
    xmlns:gContact='http://schemas.google.com/contact/2008'
    xmlns:gd='http://schemas.google.com/g/2005'
    xmlns:batch='http://schemas.google.com/gdata/batch'>
    <entry>
        <batch:id>1</batch:id>
        <batch:operation type="delete"/>
        <id>http://www.google.com/m8/Feeds/contacts/{my_domain}/base/{some_contact_kind_id}</id>
    </entry>
    <entry>
        <batch:id>2</batch:id>
        <batch:operation type="delete"/>
        <id>http://www.google.com/m8/Feeds/contacts/{my_domain}/base/{some_contact_kind_id}</id>
    </entry>
    <entry>
        <batch:id>3</batch:id>
        <batch:operation type="delete"/>
        <id>http://www.google.com/m8/Feeds/contacts/{my_domain}/base/{some_contact_kind_id}</id>
    </entry>
</Feed>

解决方法

有同样的错误。 检查 ID - 应该使用引用“self”而不是“edit”

正确的格式: https://www.google.com/m8/feeds/contacts/demo.com/full/551695609f4e13a

格式错误:https://www.google.com/m8/feeds/contacts/demo.com/full/551695609f4e13a/1622131054627000