Hello,

I am trying to add contact in gmail account using Api V3 but i am getting 
same *400 *response.

<entry><id>1</id><updated>2012-10-22T13:34:07.047Z</updated><title>Error</title><content>Supposed
 
groupUri '/groups/[email protected]/base/' doesn't match 
template</content><batch:id>1</batch:id><batch:status *code='400' 
*reason='Supposed 
groupUri &apos;/groups/[email protected]/base/&apos; 
doesn&apos;t match template' content-type='text/plain'>Supposed groupUri 
'/groups/[email protected]/base/' doesn't match 
template</batch:status><batch:operation type='insert'/></entry>

Will you please help me to find the exact problem?
Thanks in advance.

Regards,
Chintan


On Wednesday, 11 January 2012 16:57:54 UTC+5:30, Rubén Sánchez wrote:
>
> Hi people
>
> Why do I get this error? I do the following code:
>
> // add org name element
> $group = $doc->createElement('gContact:groupMembershipInfo');
> $group->setAttribute('deleted' ,'false');
> $group->setAttribute('href' ,'http://www.google.com/m8/feeds/groups/*
> default*/base/6');
> $entry->appendChild($group);
>
> but I get this error:
> ERROR:Expected response code 200, got 400 Referenced group doesn't belong 
> to the same user. Should be: '[email protected] <javascript:>'. Is: 'default'
>
> If I change default for an email, it works. According to the documentation 
> setting as userEmail => default is totally valid.
>
> I hope you can help me with this.
>
> Thanks in advance!
> Ruben
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html

Reply via email to