I just used the .NET API. So, is there a bug in that ?



________________________________
From: Julian (Google) <[email protected]>
To: Google Contacts API <[email protected]>
Sent: Wednesday, September 30, 2009 5:02:35 PM
Subject: [Contacts API] Re: Internal server error


Hi,

You are missing the <gContact:event> opening element. Here is an
example:

http://www.w3.org/2005/Atom'
    xmlns:gd='http://schemas.google.com/g/2005'
    xmlns:gContact="http://schemas.google.com/contact/2008";>
  http://schemas.google.com/g/2005#kind'
    term='http://schemas.google.com/contact/2008#contact' />
  <gContact:event label=''>
    <gd:when startTime="2009-09-28" />
  </gContact:event>
  <gd:extendedProperty name="-2139123622"
value="000000001123BB8417D3924C89AC863AA2D15AEF04935D00" />
</atom:entry>

Cheers,
Julian.

On Sep 29, 12:17 pm, Kulvinder Singh <[email protected]> wrote:
> Hi,
>
> I am getting an internal server error when trying to update a contact with 
> the following XML (trying to create an anniversary date in a contact through 
> Events) :
>
> POST /m8/feeds/contacts/testuser%40a.com/full HTTP/1.1
> Content-Type: application/atom+xml; charset=UTF-8
> User-Agent: G-Technologies/GDataGAuthRequestFactory-CS-Version=1.5.0.0
> Authorization: GoogleLogin 
> auth=DQAAAJkAAADb3KdfxKqdGmU8E7Tpou15ujox_ePy0QZO-zzBj-NBOKiRUexSgxOhqxB3AILniJ
> GData-Version: 3.0
> Host:www.google.com
> Content-Length: 799
> Expect: 100-continue
> Connection: Keep-Alive
>
> <?xml version="1.0" encoding="utf-8"?>
>
>   <gd:name>
>     <gd:fullName>t</gd:fullName>
>   </gd:name>
>
>     <gd:when startTime="2009-09-28" />
>   </gContact:event>
>   <gd:extendedProperty name="-2139123622" 
> value="000000001123BB8417D3924C89AC863AA2D15AEF04935D00" />
>
>   <content type="text" />
> </entry>


      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to