Greetings, I'm trying to create a contact group using a .Net POST HttpWebRequest as explained here: http://code.google.com/apis/contacts/docs/1.0/developers_guide_protocol.html#CreatingGroups
I'm using the following code: string atomEntry = "<atom:entry 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#group'/><atom:title type='text'>Salsa group</atom:title><gd:extendedProperty name='more info about the group'><info>Nice people.</info></gd:extendedProperty></ atom:entry>"; byte[] bytes = Encoding.UTF8.GetBytes(atomEntry); HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http:// www.google.com/m8/feeds/groups/[email protected]/full"); request.Headers.Add("Authorization", "GoogleLogin " + "auth="+authToken); request.Method = "POST"; request.ContentLength = bytes.Length; request.ContentType = "application/atom+xml"; using (Stream requestStream = request.GetRequestStream()) { requestStream.Write(bytes, 0, bytes.Length); } _______________________________ But no group is created. I tried different encoding types but still it doesn't work. Any help would be appreciated. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
