My VB/Winform app is having credentials problems when trying to
retrieve a contact...

Dim g_Settings As New
Google.GData.Client.RequestSettings(Application.ProductName,
"[email protected]", "mypassword")
Dim g_request As New Google.Contacts.ContactsRequest(g_Settings)

Try
' the string in the next statement is the Google ID of the contact I
want to .Retrieve
Dim g_contact As Google.Contacts.Contact = g_request.Retrieve(Of
Google.Contacts.Contact)(New Uri("http://www.google.com/m8/feeds/
contacts/my.username%40gmail.com/base/a"))

Catch exi As Google.GData.Client.InvalidCredentialsException
' handle the Invalid Credentials exception
' exi.message is "Credentials Error: Invalid credentials"

Catch exc As Google.GData.Client.CaptchaRequiredException
' handle the captcha exception
...
End Try

Thanks in advance for any help...

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