我正在尝试通过应用程序更新谷歌联系人。我试图通过谷歌提供的OAuth 2.0 Playground实现这一目标,但每次我都继续获得Parse Error!
如https://developers.google.com/google-apps/contacts/v3/中所述,我正在使用标题If-Match:Etag和Etag进行HTTP PUT请求,并且#34; QncyejVSLit7I2A9XBZSFU4NQQw。"
我的XML看起来像:
<entry gd:etag="QncyejVSLit7I2A9XBZSFU4NQQw.">
<id>http://www.google.com/m8/feeds/contacts/default/base/302be498e51dd8e</id>
<updated>2008-02-28T18:47:02.303Z</updated>
<category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/contact/2008#contact"/>
<gd:name>
<gd:givenName>Queen</gd:givenName>
<gd:familyName>El</gd:familyName>
<gd:fullName>Queen El</gd:fullName>
</gd:name>
<gd:phoneNumber rel="http://schemas.google.com/g/2005#other"
primary="true">456-123-2133</gd:phoneNumber>
</entry>
</pre>
&#13;
现在我的标题是
PUT /m8/feeds/contacts/default/full/302be498e51dd8e HTTP/1.1
Host: www.google.com
Gdata-version: 3.0
Content-length: 561
Content-type: application/atom+xml
If-match: QncyejVSLit7I2A9XBZSFU4NQQw.
Authorization: Bearer
但我得到的只是一个解析错误!我错过了什么吗?