使用谷歌联系人API推送和拉取联系人数据有困难,特别是与OrgName和OrgTitle相关的数据。
下面是我发送的内容的示例:
<atom:entry xmlns:atom='http://www.w3.org/2005/Atom'
xmlns:gd='http://schemas.google.com/g/2005'
xmlns:gContact='http://schemas.google.com/contact/2008'>
<atom:category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/>
<id>http://www.google.com/m8/feeds/contacts/devteam@zeppidy.com/base/795eba52880dd744</id>
<gd:name>
<gd:givenName>Amy</gd:givenName>
<gd:familyName>Larsson</gd:familyName>
<gd:fullName>Amy Larsson</gd:fullName>
</gd:name>
<atom:content type='text'></atom:content>
<gd:email rel='http://schemas.google.com/g/2005#work' address='email'/>
<gd:phoneNumber rel='http://schemas.google.com/g/2005#home'>0</gd:phoneNumber>
<gd:structuredPostalAddress rel='http://schemas.google.com/g/2005#work'>
<gd:city>Lake Oswego</gd:city>
<gd:formattedAddress>
330 Oak Lake Oswego, - State -
</gd:formattedAddress>
</gd:structuredPostalAddress>
<gd:organization label='Work' primary='true'/>
<gd:orgName>test c</gd:orgName>
<gd:orgTitle>test tt3</gd:orgTitle>
</gd:organization>
<gContact:groupMembershipInfo deleted='false' href='http://www.google.com/m8/feeds/groups/devteam@zeppidy.com/base/1e8391f408b028e1'/>
</atom:entry>当我删除以下组织信息时,一切正常:
<gd:organization label='Work' primary='true'/>
<gd:orgName>test c</gd:orgName>
<gd:orgTitle>test tt3</gd:orgTitle>
</gd:organization>有什么建议吗?谢谢!
发布于 2015-05-22 22:35:14
<gd:organization label='Work' primary='true'/>此标记本身是闭合的。最后不需要使用</gd:organization>。在您的示例中,您可能希望删除第一行中的/。
https://stackoverflow.com/questions/30330235
复制相似问题