Hello,

There are extra restrictions on the contact's phone number (and other
elements) described in the reference guide:

http://code.google.com/apis/contacts/docs/3.0/reference.html#extraRestrictionsOnSomeElements

*Caution*: When you create or update a contact, if you supply both rel and
label (or neither) for any of those elements, then the server rejects the
entry.

Also, you should always catch the exception and check the response body of
the error returned by the API as it usually contains a more detailed error
message.

Best,
Alain

On Fri, Dec 16, 2011 at 12:18 AM, hudle soft <[email protected]> wrote:

> I am using .NET API 3.0. When I try to create a contact with email and
> phone, I get error 400 - Bad request.
> Creating of contact works fine, when I only add name and content to my new
> contact.
> Anybody help pls.
>
> --
> 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
>



-- 
Alain Vongsouvanh | Developer Programs Engineer

-- 
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