Hi,

Here are two examples, maybe you need to double check the line breaks.


<entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://
schemas.google.com/g/2005'>
<category scheme='http://schemas.google.com/g/2005#kind' term='http://
schemas.google.com/contact/2008#group' />
<title>testGroup</title>
<content>Test Group</content>
</entry>


<?xml version='1.0' encoding='utf-8'?>
<entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://
schemas.google.com/g/2005'>
    <category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/contact/2008#group' />
    <title>testGroup 2</title>
    <content>Test Group 2</content>
</entry>


--Julian

On May 14, 5:15 pm, letsgo <[email protected]> wrote:
> Using the Perl Http Post I am unable to Create New Contact Group, I am
> getting the error 400 complaining about the atom format. My XML is
> exact and I am able to create contacts but not Contact Group, I will
> appreciate any and all help.
> Thanks
>
> <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">USAS1</atom:title>
>   <gd:extendedProperty name="People Working">
>     <info>Why do you not work</info>
>   </gd:extendedProperty>
> </atom:entry>
>
> my $result = $userAgent->post($createurl,
>                 Content_Type => 'application/atom+xml',
>                 Authorization=> "GoogleLogin auth=$auth_token",
>                 Content => $request);
--~--~---------~--~----~------------~-------~--~----~
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