2016-12-27 90 views
0

美好的一天。我提前道歉 - 我的英语很糟糕。 (这是翻译)。 我在使用Google通讯录API时遇到问题。不活跃的联系人谷歌联系人API

我尝试创建一个联系人:

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" 
xmlns:gd="http://schemas.google.com/g/2005"> 
<atom:category scheme="http://schemas.google.com/g/2005#kind" 
    term="http://schemas.google.com/contact/2008#contact"/> 
<gd:name> 
    <gd:givenName>Sergey</gd:givenName> 
    <gd:familyName>Serov</gd:familyName> 
    <gd:fullName>Sergey Serov</gd:fullName> 
</gd:name> 
<atom:content type="text">Notes</atom:content> 
<gd:phoneNumber rel="http://schemas.google.com/g/2005#work" 
    primary="true"> 
    +79130968888 
</gd:phoneNumber> 
</atom:entry> 

联系已成功创建。但我无法使用它。 联系人处于非活动状态。它不会与手机同步。 我没有看到它在我的联系人列表(Web Interface) 我发现它只能通过“搜索”。 如果我通过网络界面1个字母更改并保存 - 联系人变为活动状态。

我的查询出错了吗?

感谢

+0

您是否收到过任何类型的错误消息? – KENdi

回答

0

一切运作良好。 在查询中添加以下行:

<gContact:groupMembershipInfo deleted="false" href="http://www.google.com/m8/feeds/groups/[email protected]/base/6" />