dongrong5189 2015-05-19 15:43
浏览 58

苦苦挣扎于gd:organization,特别是gd:orgName? 和gd:orgTitle?

Having difficulty pushing and pulling Contact data using Google Contacts API, specifically as it relates to OrgName and OrgTitle.

Here is example of what i sent:

<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>

When i remove the following organization info, everything works fine:

<gd:organization label='Work' primary='true'/>
<gd:orgName>test c</gd:orgName>
<gd:orgTitle>test tt3</gd:orgTitle>                            
</gd:organization>

Any recommendations? Thank you!

  • 写回答

1条回答 默认 最新

  • duanbimo7212 2015-05-22 14:35
    关注
    <gd:organization label='Work' primary='true'/>
    

    This tag is closed itself. No need for </gd:organization> at the end. In your case you probably want to remove / at the first line.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?